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.
Documents to be added to the vector store.
Optionaloptions: AddVectorOptionsOptional parameters for adding documents.
Method to add vectors and documents to the vector store.
Vectors to be added to the vector store.
Documents to be added to the vector store.
Optionaloptions: AddVectorOptionsOptional parameters for adding vectors.
Create a new vector index for the Query vector store.
Configuration options for creating the index
Interface for create_index method parameters
OptionaldistanceMetric?: DistanceStrategyOptionalfields?: string[]OptionalindexName?: stringOptionalindexScanNprobes?: numberOptionalindexTrainlist?: numberOptionalvectorDimension?: numberOptionalvectorField?: stringOptionalwhereClause?: stringMethod to delete documents from the vector store.
Return documents that are most similar to the query.
Query to look up for similar documents
The number of similar documents to return. Defaults to 4.
Optional search filter that are passed to Couchbase query. Defaults to empty object.
where: Optional WHERE clause conditions for the SQL++ queryfields: Optional list of fields to include in the resultsReturn documents that are most similar to the vector embedding.
Embedding to look up documents similar to.
The number of similar documents to return. Defaults to 4.
Optional search filter that are passed to Couchbase query. Defaults to empty object.
where: Optional WHERE clause conditions for the SQL++ queryfields: Optional list of fields to include in the resultsReturn documents that are most similar to the vector embedding using SQL++ query.
Embedding vector to look up documents similar to.
Number of documents to return. Defaults to 4.
Optional search filter that are passed to Couchbase query. Defaults to empty object.
where: Optional WHERE clause conditions for the SQL++ queryfields: Optional list of fields to include in the resultsReturn documents that are most similar to the query with their scores.
Query to look up for similar documents
The number of similar documents to return. Defaults to 4.
Optional search filter that are passed to Couchbase query. Defaults to empty object.
where: Optional WHERE clause conditions for the SQL++ queryfields: Optional list of fields to include in the resultsStaticfromStatic 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.
Array of documents to be converted to vectors.
Embeddings to be used for converting documents to vectors.
Configuration for the vector store.
StaticfromStatic 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.
Array of texts to be converted to vectors.
Array of metadata objects corresponding to the texts.
Embeddings to be used for converting texts to vectors.
Configuration for the vector store.
Staticinitializeinitialize 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
object to generate embedding
the fields required to initialize a vector store
Class 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.