Skip to main content

Class: abstract BaseVectorStore<Client>

Extended by

Type Parameters

Client = unknown

Constructors

new BaseVectorStore()

protected new BaseVectorStore<Client>(params?): BaseVectorStore<Client>

Parameters

params?: VectorStoreBaseParams

Returns

BaseVectorStore<Client>

Defined in

packages/llamaindex/src/vector-store/types.ts:100

Properties

embedModel

embedModel: BaseEmbedding

Defined in

packages/llamaindex/src/vector-store/types.ts:89


isEmbeddingQuery?

optional isEmbeddingQuery: boolean

Defined in

packages/llamaindex/src/vector-store/types.ts:91


storesText

abstract storesText: boolean

Defined in

packages/llamaindex/src/vector-store/types.ts:90

Methods

add()

abstract add(embeddingResults): Promise<string[]>

Parameters

embeddingResults: BaseNode<Metadata>[]

Returns

Promise<string[]>

Defined in

packages/llamaindex/src/vector-store/types.ts:93


client()

abstract client(): Client

Returns

Client

Defined in

packages/llamaindex/src/vector-store/types.ts:92


delete()

abstract delete(refDocId, deleteOptions?): Promise<void>

Parameters

refDocId: string

deleteOptions?: object

Returns

Promise<void>

Defined in

packages/llamaindex/src/vector-store/types.ts:94


query()

abstract query(query, options?): Promise<VectorStoreQueryResult>

Parameters

query: VectorStoreQuery

options?: object

Returns

Promise<VectorStoreQueryResult>

Defined in

packages/llamaindex/src/vector-store/types.ts:95