类class
agentscope.ragVectorSearchResult
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 |
|---|---|---|---|
score | float | 分数字段。 | — |
document_id | str | 文档标识字段。 | — |
chunk | Chunk | 分块字段。 | — |
属性详情Attribute Detail
score
float分数字段。声明为 float。
The score field.
源码Source
agentscope/rag/_vdb/_vector_store.py:62document_id
str文档标识字段。声明为 str。
The document id field.
源码Source
agentscope/rag/_vdb/_vector_store.py:68chunk
Chunk分块字段。声明为 Chunk。
The chunk field.
源码Source
agentscope/rag/_vdb/_vector_store.py:74