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.
Method 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.
Method 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.
Static
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
Method that adds documents to AstraDB.