Overview
Qdrant is a vector similarity search engine. Use it for semantic search, recommendations, and RAG applications.Installation
Environment Variables
How It Works
Quick Start
Usage with Agent
Available Methods
search(collection, query_vector, limit=10)
Search for similar vectors.upsert(collection, points)
Insert or update points.create_collection(name, vector_size)
Create a new collection.Docker Setup
Common Errors
| Error | Cause | Solution |
|---|---|---|
qdrant-client not installed | Missing dependency | Run pip install qdrant-client |
Connection refused | Qdrant not running | Start Qdrant server |
Collection not found | Collection doesn’t exist | Create collection first |
Best Practices
Load QDRANT_API_KEY from the environment
Load QDRANT_API_KEY from the environment
For Qdrant Cloud, set
QDRANT_API_KEY in your shell or .env. Local instances need only QDRANT_URL.Match vector dimensions
Match vector dimensions
create_collection(name, vector_size) must match your embedding model’s dimension. A mismatch causes search errors, so keep the size aligned with the encoder the agent uses.Cap the search limit
Cap the search limit
search(collection, query_vector, limit=10) defaults to 10. Return only as many matches as the agent needs to keep context small.Related Tools
Pinecone
Managed vector DB
Chroma
Open-source vector DB
Weaviate
Vector search engine

