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

VectorSearchResult

class VectorSearchResult(BaseModel)
源码Source agentscope/rag/_vdb/_vector_store.py:53–75

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

Pairs the matched :class:Chunk with its similarity score. Chunk is intentionally not extended with a score field so its semantics stay stable; instead the score lives in this wrapper whose only purpose is "I am a query hit."

属性摘要Attribute Summary

属性Attribute类型Type说明Description值Value
scorefloat
分数字段。
—
document_idstr
文档标识字段。
—
chunkChunk
分块字段。
—

属性详情Attribute Detail

score

float

分数字段。声明为 float。

The score field.

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

document_id

str

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

The document id field.

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

chunk

Chunk

分块字段。声明为 Chunk。

The chunk field.

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