Skip to main content

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

  1. Choose appropriate distance metric: Cosine for text similarity
  2. Use Qdrant Cloud for production: Managed, scalable solution
  3. Leverage advanced filtering: Combine vector and metadata search
  4. Create snapshots: Regular backups for data safety
  5. Monitor performance: Use Qdrant’s dashboard
  6. Optimize segment count: Adjust based on data size

See Also