Skip to main content

CouchbaseVectorDB

A vector database implementation that uses Couchbase as the backend.
Initialize the vector database.
Parameters:

Class Attributes

active_collection



embedding_function



type



Instance Methods

create_collection

Create a collection in the vector database and create a vector search index in the collection.
Parameters:

create_index_if_not_exists

Creates a vector search index on the specified collection in Couchbase.
Parameters:

create_vector_search_index

Create a vector search index in the collection. Parameters:

delete_collection

Delete the collection from the vector database.
Parameters:

delete_docs

Delete documents from the collection of the vector database. Parameters:

get_collection

Get the collection from the vector database.
Parameters: Returns:

get_docs_by_ids

Retrieve documents from the collection of the vector database based on the ids. Parameters:

insert_docs

Insert Documents and Vector Embeddings into the collection of the vector database. Documents are upserted in all cases. Parameters:

retrieve_docs

Retrieve documents from the collection of the vector database based on the queries.
Note: Distance threshold is not supported in Couchbase FTS.
Parameters:

search_index_exists

Check if the specified index is ready Parameters:

update_docs

Update documents, including their embeddings, in the Collection. Parameters:

upsert_docs

Parameters: