AS AgentScopeAPI 手册 / API Reference
类class agentscope.rag

DocumentSummary

class DocumentSummary(BaseModel)
源码Source agentscope/rag/_vdb/_vector_store.py:78–101

文档摘要,把私有文档转化为可检索的知识。位于 agentscope.rag 包。

Aggregated by :meth:VectorStoreBase.list_documents from the records of each document_id — the vector store is the single source of truth for "what documents exist in a knowledge base".

属性摘要Attribute Summary

属性Attribute类型Type说明Description值Value
document_idstr
文档标识字段。
—
sourcestr
来源字段。
—
chunk_countint
分块数量字段。
—
metadatadict[str, Any]
元数据字段。
Field(default_factory=dict)

属性详情Attribute Detail

document_id

str

文档标识字段。声明为 str。

The document id field.

源码Source agentscope/rag/_vdb/_vector_store.py:86

source

str

来源字段。声明为 str。

The source field.

源码Source agentscope/rag/_vdb/_vector_store.py:90

chunk_count

int

分块数量字段。声明为 int。

The chunk count field.

源码Source agentscope/rag/_vdb/_vector_store.py:95

metadata

dict[str, Any] = Field(default_factory=dict)

元数据字段。声明为 dict[str, Any]。

The metadata field.

源码Source agentscope/rag/_vdb/_vector_store.py:98
基于官方固定版本源码静态生成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.