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.
Method that deletes documents from AstraDB.
AstraDeleteParameters for the delete.
Promise that resolves when the documents have been deleted.
Create a new collection in your Astra DB vector database and then connects to it. If the collection already exists, it will connect to it as well.
Promise that resolves if connected to the collection.
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.
Number of documents to return.
Number of documents to fetch before passing to the MMR algorithm.
Number between 0 and 1 that determines the degree of diversity among the results, where 0 corresponds to maximum diversity and 1 to minimum diversity.
Optional filter
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.
Method that adds documents to AstraDB.