Skip to content

VectorIndexRetriever

Defined in: .build/typescript/packages/llamaindex/src/indices/vectorStore/index.ts:452

  • BaseRetriever

new VectorIndexRetriever(options): VectorIndexRetriever

Defined in: .build/typescript/packages/llamaindex/src/indices/vectorStore/index.ts:459

VectorIndexRetrieverOptions

VectorIndexRetriever

BaseRetriever.constructor

index: VectorStoreIndex

Defined in: .build/typescript/packages/llamaindex/src/indices/vectorStore/index.ts:453


topK: TopKMap

Defined in: .build/typescript/packages/llamaindex/src/indices/vectorStore/index.ts:454


optional filters: MetadataFilters

Defined in: .build/typescript/packages/llamaindex/src/indices/vectorStore/index.ts:456


optional queryMode: VectorStoreQueryMode

Defined in: .build/typescript/packages/llamaindex/src/indices/vectorStore/index.ts:457


optional customParams: unknown

Defined in: .build/typescript/packages/llamaindex/src/indices/vectorStore/index.ts:458

set similarityTopK(similarityTopK): void

Defined in: .build/typescript/packages/llamaindex/src/indices/vectorStore/index.ts:482

@deprecated, pass similarityTopK or topK in constructor instead or directly modify topK

number

void

_retrieve(params): Promise<NodeWithScore<Metadata>[]>

Defined in: .build/typescript/packages/llamaindex/src/indices/vectorStore/index.ts:486

QueryBundle

Promise<NodeWithScore<Metadata>[]>

BaseRetriever._retrieve


protected retrieveQuery(query, type, vectorStore, filters?, customParams?): Promise<NodeWithScore<Metadata>[]>

Defined in: .build/typescript/packages/llamaindex/src/indices/vectorStore/index.ts:500

MessageContent

ModalityType

BaseVectorStore

MetadataFilters

unknown

Promise<NodeWithScore<Metadata>[]>


protected buildNodeListFromQueryResult(result): NodeWithScore<Metadata>[]

Defined in: .build/typescript/packages/llamaindex/src/indices/vectorStore/index.ts:537

VectorStoreQueryResult

NodeWithScore<Metadata>[]