Skip to main content

Class: VectorIndexRetriever<OBJECT, VALUE, INDEX, FILTER>

Type parameters

Name
OBJECT
VALUE
INDEX
FILTER

Implements

Constructors

constructor

new VectorIndexRetriever<OBJECT, VALUE, INDEX, FILTER>(«destructured»): VectorIndexRetriever<OBJECT, VALUE, INDEX, FILTER>

Type parameters

Name
OBJECT
VALUE
INDEX
FILTER

Parameters

NameType
«destructured»{ embeddingModel: EmbeddingModel<VALUE, EmbeddingModelSettings> ; vectorIndex: VectorIndex<OBJECT, INDEX, FILTER> } & VectorIndexRetrieverSettings<FILTER>

Returns

VectorIndexRetriever<OBJECT, VALUE, INDEX, FILTER>

Defined in

packages/modelfusion/src/vector-index/VectorIndexRetriever.ts:26

Methods

retrieve

retrieve(query, options?): Promise<OBJECT[]>

Parameters

NameType
queryVALUE
options?FunctionOptions

Returns

Promise<OBJECT[]>

Implementation of

Retriever.retrieve

Defined in

packages/modelfusion/src/vector-index/VectorIndexRetriever.ts:45


withSettings

withSettings(additionalSettings): this

Parameters

NameType
additionalSettingsPartial<VectorIndexRetrieverSettings<FILTER>>

Returns

this

Defined in

packages/modelfusion/src/vector-index/VectorIndexRetriever.ts:62