MongoDBAtlasVectorDB
Initialize the vector database.
Parameters:
Class Attributes
active_collection
embedding_function
type
Instance Methods
create_collection
Parameters:
create_index_if_not_exists
Parameters:
create_vector_search_index
Parameters:
delete_collection
Parameters:
delete_docs
Parameters:
get_collection
Parameters:
Returns:
get_docs_by_ids
Parameters:
Returns:
insert_docs
For large numbers of Documents, insertion is performed in batches.
Parameters:
list_collections
Returns:
List[str] | The list of collections.
retrieve_docs
Parameters:
Returns:
update_docs
Optionally allow upsert as kwarg.
Uses deepcopy to avoid changing docs.
Parameters: