class CouchbaseQueryVectorStoreClass for interacting with the Couchbase database using Query service for vector search. It extends the VectorStore class and provides methods for adding vectors and documents, and searching for similar vectors using SQL++ queries. Initiate the class using initialize() method.
Embeddings 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 to add documents to the vector store. It first converts the documents to vectors using the embeddings and then adds them to the vector store.
Method to add vectors and documents to the vector store.
Creates a VectorStoreRetriever instance with flexible configuration options.
Create a new vector index for the Query vector store.
Method to delete documents from the vector store.
Return documents selected using the maximal marginal relevance. Maximal marginal relevance optimizes for similarity to the query AND diversity among selected documents.
Return documents that are most similar to the query.
Return documents that are most similar to the vector embedding.
Return documents that are most similar to the vector embedding using SQL++ query.
Return documents that are most similar to the query with their scores.
Static method to create a new CouchbaseQueryVectorStore from an array of documents. It first converts the documents to vectors using the embeddings and then creates a new vector store.
Static method to create a new CouchbaseQueryVectorStore from an array of texts. It first converts the texts to vectors using the embeddings and then creates a new vector store.
initialize class for interacting with the Couchbase database using Query service. It extends the VectorStore class and provides methods for adding vectors and documents, and searching for similar vectors. This also verifies the params
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.