Skip to main content

Installation

Install via pip:
With additional features:

Quick Start

Repository

GitHub Repository

Official Python client: qdrant/qdrant-client

Connection Options

Local Connection

Cloud Connection

In-Memory Mode

Persistent Local Storage

Async Client

The async client provides the same API with async/await support:

Collection Management

Create Collection

Create with Multiple Vectors

Get Collection Info

List Collections

Update Collection

Delete Collection

Point Operations

Upsert Points

Upload Points (Optimized for Large Batches)

Get Points

Delete Points

Search Operations

Search with Filtering

Search with Custom Params

Recommendations

Basic Recommendations

Recommend with Vectors

Query API (Universal)

Payload Operations

Set Payload

Overwrite Payload

Delete Payload Keys

Clear Payload

Scroll (Pagination)

Payload Indexing

Snapshots

Create Snapshot

List Snapshots

Recover from Snapshot

FastEmbed Integration

Automatic embedding generation:

Type Hints

The Python client is fully typed:

Error Handling

Configuration Options

Best Practices

Performance optimization:
  • Use prefer_grpc=True for 30-50% better performance
  • Set wait=False for async upserts (10x faster)
  • Use upload_points() with parallel workers for bulk uploads
  • Create payload indexes before filtering on fields
Common pitfalls:
  • Always match vector dimensions with collection config
  • Use UUID strings or integers for point IDs (not floats)
  • Close async clients with await client.close()
  • Don’t use in-memory mode for production workloads

Next Steps

gRPC API

Learn about the gRPC interface

JavaScript Client

JavaScript/TypeScript client