AS AgentScopeAPI 手册 / API Reference
包package agentscope.app.rag.knowledge_base_manager

agentscope.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:KnowledgeBaseRecord rows,
  • allocation / drop of the matching vector store storage,
  • construction of :class:~agentscope.rag.KnowledgeBase runtime 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.
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.