Class that extends the VectorStore class and provides methods to interact with the Cloudflare Vectorize vector database.
class CloudflareVectorizeStoreEmbeddings interface for generating vector embeddings from text queries, enabling vector-based similarity searches.
Returns a string representing the type of vector store, which subclasses must implement to identify their specific vector storage type.
Method that adds documents to the Vectorize database.
Method that adds vectors to the Vectorize database.
Creates a VectorStoreRetriever instance with flexible configuration options.
Method that deletes vectors from the Vectorize database.
Return documents selected using the maximal marginal relevance. Maximal marginal relevance optimizes for similarity to the query AND diversity among selected documents.
Searches for documents similar to a text query by embedding the query and performing a similarity search on the resulting vector.
Method that performs a similarity search in the Vectorize database and returns the results along with their scores.
Searches for documents similar to a text query by embedding the query, and returns results with similarity scores.
Static method that creates a new instance of the CloudflareVectorizeStore class from documents.
Static method that creates a new instance of the CloudflareVectorizeStore class from an existing index.
Static method that creates a new instance of the CloudflareVectorizeStore class from texts.
The name of the serializable. Override to provide an alias or to preserve the serialized module name in minified environments.
Implemented as a static method to support loading logic.