包package
agentscope.app.rag.knowledge_base_manageragentscope.app.rag.knowledge_base_manager
module agentscope.app.rag.knowledge_base_manager
agentscope.app.rag.knowledge_base_manager 属于RAG 与知识库,切分、向量化、存储与检索。 该包共收录 7 个公开类型。
The manager owns the lifecycle of knowledge bases:
- creation / deletion / listing of :class:
KnowledgeBaseRecordrows, - allocation / drop of the matching vector store storage,
- construction of :class:
~agentscope.rag.KnowledgeBaseruntime handles used by both the HTTP service and the agent runtime.
The MVP ships a single isolation strategy
(:class:CollectionPerKbManager); future strategies will live
alongside it.
源码Source
agentscope/app/rag/knowledge_base_manager/__init__.py:1类Classes
CollectionPerKbManager类class | 集合每个知识库管理器,把私有文档转化为可检索的知识。 One-collection-per-KB knowledge base manager. |
DimensionPolicy类class | 维度策略,把私有文档转化为可检索的知识。 The dimension policy a manager exposes to the front-end. |
DimensionPolicyError类class | 维度策略错误,把私有文档转化为可检索的知识。 Raised when a create-time embedding model violates the manager's dimension policy. |
DimensionPolicyKind类class | 维度策略种类,把私有文档转化为可检索的知识。 The kind of dimension policy the manager publishes. |
KnowledgeBaseError类class | 知识库基类管理器错误的基类。 Base class for knowledge base manager errors. |
KnowledgeBaseManagerBase类class | 知识库管理器基类,把私有文档转化为可检索的知识。 Abstract base for knowledge base managers. |
KnowledgeBaseNotFoundError类class | 知识库未找到错误,把私有文档转化为可检索的知识。 Raised when a knowledge base record cannot be located. |