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

VectorRecord

class VectorRecord(BaseModel)
源码Source agentscope/rag/_vdb/_vector_store.py:28–50

向量记录,把私有文档转化为可检索的知识。位于 agentscope.rag 包。

Pairs a :class:Chunk (the business payload — content, source, structural metadata) with its dense embedding vector. Chunk is intentionally not extended with an embedding field so its semantics stay stable across the indexing pipeline; instead the vector lives in this wrapper whose only purpose is "I am about to be inserted into a vector database."

属性摘要Attribute Summary

属性Attribute类型Type说明Description值Value
vectorlist[float]
向量字段。
—
document_idstr
文档标识字段。
—
chunkChunk
分块字段。
—

属性详情Attribute Detail

vector

list[float]

向量字段。声明为 list[float]。

The vector field.

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

document_id

str

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

The document id field.

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

chunk

Chunk

分块字段。声明为 Chunk。

The chunk field.

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