Class: VectorIndexRetriever
VectorIndexRetriever retrieves nodes from a VectorIndex.
Implements
Constructors
constructor
• new VectorIndexRetriever(«destructured»
)
Parameters
Name | Type |
---|---|
«destructured» | Object |
› index | VectorStoreIndex |
› similarityTopK? | number |
Defined in
packages/core/src/indices/vectorStore/VectorIndexRetriever.ts:24
Properties
index
• index: VectorStoreIndex
Defined in
packages/core/src/indices/vectorStore/VectorIndexRetriever.ts:20
serviceContext
• Private
serviceContext: ServiceContext
Defined in
packages/core/src/indices/vectorStore/VectorIndexRetriever.ts:22
similarityTopK
• similarityTopK: number
Defined in
packages/core/src/indices/vectorStore/VectorIndexRetriever.ts:21
Methods
buildNodeListFromQueryResult
▸ Protected
buildNodeListFromQueryResult(result
): NodeWithScore
<Metadata
>[]
Parameters
Name | Type |
---|---|
result | VectorStoreQueryResult |
Returns
Defined in
packages/core/src/indices/vectorStore/VectorIndexRetriever.ts:102