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
Optional[chromadb.Client]
default:"None"
Chroma client instance. If not provided, a new client will be created.
Union[str, Literal['random']]
default:"random"
Name of the collection to use. If ārandomā, a random name will be generated.
Union[str, BaseEmbeddings]
default:"minishlab/potion-retrieval-32M"
Embedding model to use.
Optional[str]
default:"None"
If provided, creates a persistent Chroma client at the specified path.
