QdrantHandshake class provides seamless integration between Chonkie’s chunking system and Qdrant, a high-performance vector database.
Embed and store your Chonkie chunks in Qdrant without ever leaving the Chonkie SDK.
Installation
Before using the Qdrant handshake, make sure to install the required dependencies:Basic Usage
Initialization
Parameters
Qdrant 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 Qdrant
Searching Chunks in Qdrant
You can retrieve the most similar chunks from your Qdrant collection using thesearch method:
