WeaviateHandshake class provides seamless integration between Chonkie’s chunking system and Weaviate, a powerful vector database.
Embed and store your Chonkie chunks in Weaviate without ever leaving the Chonkie SDK.
Installation
Before using the Weaviate handshake, make sure to install the required dependencies:Basic Usage
Initialization
Parameters
Weaviate client instance. If not provided, a new client will be created based on other parameters.
Name of the collection to use. If “random”, a unique name will be generated.
Embedding model to use. Can be a model name or a BaseEmbeddings instance.
Writing Chunks to Weaviate
Searching Chunks in Weaviate
You can retrieve the most similar chunks from your Weaviate collection using thesearch method:
