跳到主要内容

Interface: VectorStore

Implemented by

Properties

isEmbeddingQuery

Optional isEmbeddingQuery: boolean

Defined in

packages/core/src/storage/vectorStore/types.ts:61


storesText

storesText: boolean

Defined in

packages/core/src/storage/vectorStore/types.ts:60

Methods

add

add(embeddingResults): Promise<string[]>

Parameters

NameType
embeddingResultsBaseNode<Metadata>[]

Returns

Promise<string[]>

Defined in

packages/core/src/storage/vectorStore/types.ts:63


client

client(): any

Returns

any

Defined in

packages/core/src/storage/vectorStore/types.ts:62


delete

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

Parameters

NameType
refDocIdstring
deleteOptions?any

Returns

Promise<void>

Defined in

packages/core/src/storage/vectorStore/types.ts:64


query

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

Parameters

NameType
queryVectorStoreQuery
options?any

Returns

Promise<VectorStoreQueryResult>

Defined in

packages/core/src/storage/vectorStore/types.ts:65