Class: VectorIndexRetriever
Retrievers retrieve the nodes that most closely match our query in similarity.
Implements
Constructors
constructor
• new VectorIndexRetriever(«destructured»
): VectorIndexRetriever
Parameters
Name | Type |
---|---|
«destructured» | VectorIndexRetrieverOptions |
Returns
Defined in
packages/core/src/indices/vectorStore/index.ts:428
Properties
imageSimilarityTopK
• imageSimilarityTopK: number
Defined in
packages/core/src/indices/vectorStore/index.ts:424
index
• index: VectorStoreIndex
Defined in
packages/core/src/indices/vectorStore/index.ts:422
serviceContext
• Optional
serviceContext: ServiceContext
Implementation of
Defined in
packages/core/src/indices/vectorStore/index.ts:426
similarityTopK
• similarityTopK: number
Defined in
packages/core/src/indices/vectorStore/index.ts:423
Methods
buildNodeListFromQueryResult
▸ buildNodeListFromQueryResult(result
): NodeWithScore
<Metadata
>[]
Parameters
Name | Type |
---|---|
result | VectorStoreQueryResult |