Method that adds documents to AstraDB.
Array of documents to add to AstraDB.
Optional
options: string[]Optional ids for the documents.
Promise that resolves the documents have been added.
Method to save vectors to AstraDB.
Vectors to save.
The documents associated with the vectors.
Optional
options: string[]Promise that resolves when the vectors have been added.
Optional
kOrFields: number | Partial<VectorStoreRetrieverInput<AstraDBVectorStore>>Optional
filter: CollectionFilterOptional
callbacks: CallbacksOptional
tags: string[]Optional
metadata: Record<string, unknown>Optional
verbose: booleanMethod that deletes documents from AstraDB.
AstraDeleteParameters for the delete.
Promise that resolves when the documents have been deleted.
Return documents selected using the maximal marginal relevance. Maximal marginal relevance optimizes for similarity to the query AND diversity among selected documents.
Text to look up documents similar to.
Optional
k: numberOptional
filter: CollectionFilterOptional
_callbacks: CallbacksMethod that performs a similarity search in AstraDB and returns and similarity scores.
Query vector for the similarity search.
Number of top results to return.
Optional
filter: CollectionFilterOptional filter to apply to the search.
Promise that resolves with an array of documents and their scores.
Optional
k: numberOptional
filter: CollectionFilterOptional
_callbacks: CallbacksStatic
fromStatic method to create an instance of AstraDBVectorStore from documents.
The Documents to use.
The embeddings to use.
The arguments for the AstraDBVectorStore.
Promise that resolves with a new instance of AstraDBVectorStore.
Static
fromStatic method to create an instance of AstraDBVectorStore from an existing index.
The embeddings to use.
The arguments for the AstraDBVectorStore.
Promise that resolves with a new instance of AstraDBVectorStore.
Static
fromStatic method to create an instance of AstraDBVectorStore from texts.
The texts to use.
The metadata associated with the texts.
The embeddings to use.
The arguments for the AstraDBVectorStore.
Promise that resolves with a new instance of AstraDBVectorStore.
Generated using TypeDoc
Abstract class representing a store of vectors. Provides methods for adding vectors and documents, deleting from the store, and searching the store.