Skip to main content

Setup

Follow the instructions in the Qdrant Setup Guide to install Qdrant locally. Get API keys from the Qdrant API Keys guide. The example uses OpenAI for embeddings and the agent model, so set your API key along with your Qdrant connection details:

Example

agent_with_knowledge.py

Async Support ⚡

Qdrant also supports asynchronous operations with ainsert() and aprint_response().

async_qdrant_db.py
Using ainsert() and aprint_response() with asyncio provides non-blocking operations, making your application more responsive under load.

Qdrant Params