chromadb
langroid/vector_store/chromadb.py
ChromaDB(config=ChromaDBConfig())
¶
Bases: VectorStore
Source code in langroid/vector_store/chromadb.py
clear_all_collections(really=False, prefix='')
¶
Clear all collections in the vector store with the given prefix.
Source code in langroid/vector_store/chromadb.py
list_collections(empty=False)
¶
List non-empty collections in the vector store. Args: empty (bool, optional): Whether to list empty collections. Returns: List[str]: List of non-empty collection names.
Source code in langroid/vector_store/chromadb.py
create_collection(collection_name, replace=False)
¶
Create a collection in the vector store, optionally replacing an existing
collection if replace
is True.
Args:
collection_name (str): Name of the collection to create or replace.
replace (bool, optional): Whether to replace an existing collection.
Defaults to False.