BaseVectorStore
Defined in: packages/core/src/vector-store/index.ts:127
Extended by
Section titled “Extended by”SimpleVectorStoreAstraDBVectorStoreAzureAISearchVectorStoreAzureCosmosDBMongoDBVectorStoreAzureCosmosDBNoSqlVectorStoreChromaVectorStoreElasticSearchVectorStoreFirestoreVectorStoreMilvusVectorStoreMongoDBAtlasVectorSearchPineconeVectorStorePGVectorStoreQdrantVectorStoreSupabaseVectorStoreUpstashVectorStoreWeaviateVectorStore
Type Parameters
Section titled “Type Parameters”Client
Section titled “Client”Client = unknown
T = unknown
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”
protectednew BaseVectorStore<Client,T>(params?):BaseVectorStore<Client,T>
Defined in: packages/core/src/vector-store/index.ts:147
Parameters
Section titled “Parameters”params?
Section titled “params?”Returns
Section titled “Returns”BaseVectorStore<Client, T>
Properties
Section titled “Properties”embedModel
Section titled “embedModel”embedModel:
BaseEmbedding
Defined in: packages/core/src/vector-store/index.ts:128
storesText
Section titled “storesText”
abstractstoresText:boolean
Defined in: packages/core/src/vector-store/index.ts:129
isEmbeddingQuery?
Section titled “isEmbeddingQuery?”
optionalisEmbeddingQuery:boolean
Defined in: packages/core/src/vector-store/index.ts:130
Methods
Section titled “Methods”client()
Section titled “client()”
abstractclient():Client
Defined in: packages/core/src/vector-store/index.ts:131
Returns
Section titled “Returns”Client
abstractadd(embeddingResults):Promise<string[]>
Defined in: packages/core/src/vector-store/index.ts:132
Parameters
Section titled “Parameters”embeddingResults
Section titled “embeddingResults”Returns
Section titled “Returns”Promise<string[]>
delete()
Section titled “delete()”
abstractdelete(refDocId,deleteOptions?):Promise<void>
Defined in: packages/core/src/vector-store/index.ts:133
Parameters
Section titled “Parameters”refDocId
Section titled “refDocId”string
deleteOptions?
Section titled “deleteOptions?”object
Returns
Section titled “Returns”Promise<void>
query()
Section titled “query()”
abstractquery(query,options?):Promise<VectorStoreQueryResult>
Defined in: packages/core/src/vector-store/index.ts:134
Parameters
Section titled “Parameters”options?
Section titled “options?”object
Returns
Section titled “Returns”Promise<VectorStoreQueryResult>
exists()
Section titled “exists()”
abstractexists(refDocId):Promise<boolean>
Defined in: packages/core/src/vector-store/index.ts:145
Check if any nodes exist for the given document reference ID. Used for de-duplication during ingestion.
Parameters
Section titled “Parameters”refDocId
Section titled “refDocId”string
The reference document ID to check
Returns
Section titled “Returns”Promise<boolean>
true if any nodes with this ref_doc_id exist