Overview
Qdrant is a high-performance vector search engine with advanced filtering capabilities and production-ready features.Installation
Basic Usage
Constructor Options
string
default:"http://localhost:6333"
Qdrant server URL
string
required
Name of the Qdrant collection
string
API key for Qdrant Cloud
number
default:100
Batch size for operations
Running Qdrant
Docker
Qdrant Cloud
Sign up at Qdrant Cloud and use the provided URL and API key:Collection Configuration
Querying
Basic Query
Metadata Filtering
Advanced Filtering
Qdrant supports complex filters:Managing Collections
List Collections
Delete Collection
Collection Info
Distance Metrics
Payloads (Metadata)
Qdrant stores metadata as payloads:Snapshots
Create and restore snapshots:Complete Example
Best Practices
- Choose appropriate distance metric: Cosine for text similarity
- Use Qdrant Cloud for production: Managed, scalable solution
- Leverage advanced filtering: Combine vector and metadata search
- Create snapshots: Regular backups for data safety
- Monitor performance: Use Qdrant’s dashboard
- Optimize segment count: Adjust based on data size