类class
agentscope.ragDocumentSummary
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_id | str | 文档标识字段。 | — |
source | str | 来源字段。 | — |
chunk_count | int | 分块数量字段。 | — |
metadata | dict[str, Any] | 元数据字段。 | Field(default_factory=dict) |
属性详情Attribute Detail
document_id
str文档标识字段。声明为 str。
The document id field.
源码Source
agentscope/rag/_vdb/_vector_store.py:86source
str来源字段。声明为 str。
The source field.
源码Source
agentscope/rag/_vdb/_vector_store.py:90chunk_count
int分块数量字段。声明为 int。
The chunk count field.
源码Source
agentscope/rag/_vdb/_vector_store.py:95metadata
dict[str, Any] = Field(default_factory=dict)元数据字段。声明为 dict[str, Any]。
The metadata field.
源码Source
agentscope/rag/_vdb/_vector_store.py:98