ChromaDBQueryEngine
It expects a Chromadb server to be running and accessible at the specified host and port.
Refer to this link for running Chromadb in a Docker container.
If the host and port are not provided, the engine will create an in-memory ChromaDB client.
Initializes the ChromaDBQueryEngine with db_path, metadata, and embedding function and llm.
Parameters:
Instance Methods
add_docs
Parameters:
connect_db
It does not overwrite the existing collection in the database.
It takes the following steps,
- Set up ChromaDB and LlamaIndex storage.
2. Create the llamaIndex vector store index for querying or inserting docs later
Returns:
get_collection_name
Returns:
The name of the collection. Returns:
init_db
It overwrites the existing collection in the database.
It takes the following steps,
- Set up ChromaDB and LlamaIndex storage.
2. insert documents and build indexes upon them.
Returns:
query
Parameters:
Returns: