Changelog
Features
* https://github.com/qdrant/qdrant-client/pull/280, https://github.com/qdrant/qdrant-client/commit/6f8c5172d77a1775474d6ae145e7552543803806 - Compatibility updates for Qdrant v1.5.x
* https://github.com/qdrant/qdrant-client/pull/210 - [fastembed](https://github.com/qdrant/fastembed) integration. Enables lightweight, fast, Python library built for retrieval embedding generation.
* https://github.com/qdrant/qdrant-client/pull/243 - Migration tool, allows easy data migration from one instance to another
Bugfix
* https://github.com/qdrant/qdrant-client/pull/258 - disable forcing of http2 for cloud connections
* https://github.com/qdrant/qdrant-client/pull/268 - fix values count & is_empty & is_null conditions for local mode
Important Notes
* Python 3.7 is no longer supported
---
Use fastembed library to easily encode & index documents into qdrant
pip install fastembed qdrant-client
python
from qdrant_client import QdrantClient
Initialize the client
client = QdrantClient(":memory:") or QdrantClient(path="path/to/db")
Prepare your documents, metadata, and IDs
docs = ["Qdrant has Langchain integrations", "Qdrant also has Llama Index integrations"]
metadata = [
{"source": "Langchain-docs"},
{"source": "Linkedin-docs"},
]
ids = [42, 2]
Use the new add method
client.add(
collection_name="demo_collection",
documents=docs,
metadata=metadata,
ids=ids
)
search_result = client.query(
collection_name="demo_collection",
query_text="This is a query document"
)
print(search_result)
More in [Notebook](https://github.com/qdrant/fastembed/blob/main/docs/examples/Usage_With_Qdrant.ipynb)