ChromaHandshake class provides seamless integration between Chonkie’s chunking system and ChromaDB, a popular vector database.
Embed and store your Chonkie chunks in ChromaDB without ever leaving the Chonkie SDK.
Installation
Before using the Chroma handshake, make sure to install the required dependencies:Basic Usage
Initialization
Writing Chunks to ChromaDB
Searching Chunks in ChromaDB
You can retrieve the most similar chunks from your ChromaDB collection using thesearch method:
Parameters
Chroma client instance. If not provided, a new client will be created.
Name of the collection to use. If “random”, a random name will be generated.
Embedding model to use.
If provided, creates a persistent Chroma client at the specified path.
