Vector database

Open sourceApache 2.0Updated July 2026

Qdrant Vector Database and Hybrid Retrieval Engine

Qdrant is an Apache 2.0 vector database and AI-native search engine for storing dense, sparse, and multi-vector representations together with JSON payload metadata, then retrieving them through similarity, filters, hybrid queries, and multi-stage ranking.

Intermediate · Docker container for local use, binary for bare-metal, or Qdrant Cloud fully managed clusters

Editorial review

Reviewed byOpenSourcesAI EditorialLast updatedJuly 2026SourcesQdrant GitHub, Qdrant documentation overview, Qdrant filtering documentation, Qdrant hybrid query documentation, Qdrant distributed deployment documentation

Tool categories, pricing, source status, deployment options, and product claims can change quickly. Verify the official source before production or commercial use.

Run Qdrant locally

Start with Docker (quickstart)

docker run -p 6333:6333 -p 6334:6334 \
  -v $(pwd)/qdrant_storage:/qdrant/storage:z \
  qdrant/qdrant

Install the Python client

pip install qdrant-client

Create a collection and upsert vectors

from qdrant_client import QdrantClient, models
client = QdrantClient(url="http://localhost:6333")
client.create_collection(
    "my_docs",
    vectors_config=models.VectorParams(size=768, distance=models.Distance.COSINE),
)

Search the collection

results = client.search("my_docs", query_vector=[0.1, 0.2, ...], limit=5)

Key configuration options

Key / FlagDescription and example
QDRANT__SERVICE__HTTP_PORT

REST API port (default: 6333)

QDRANT__SERVICE__HTTP_PORT=6333
QDRANT__SERVICE__GRPC_PORT

gRPC port (default: 6334)

QDRANT__SERVICE__GRPC_PORT=6334
QDRANT__STORAGE__STORAGE_PATH

Directory for persistent vector data

QDRANT__STORAGE__STORAGE_PATH=/qdrant/storage
QDRANT__SERVICE__API_KEY

Static API key for simple auth

QDRANT__SERVICE__API_KEY=my-secret-key

OpenSourcesAI verdict

Qdrant is one of the strongest dedicated vector databases for teams that need filtered semantic search, hybrid retrieval, explicit collection design, and a path from local Docker to distributed or managed deployment. Its payload-aware query engine is a major advantage for production RAG and recommendation systems. It is unnecessary when PostgreSQL plus pgvector already meets the workload, and it does not choose embeddings, evaluate relevance, or secure a retrieval application for you.

Best for

AI application teams building RAG, semantic search, recommendations, discovery, memory, or multimodal retrieval where metadata filtering, dense and sparse vectors, named vector spaces, hybrid queries, and operational control matter.

Why use it

Use Qdrant when vectors are a primary application data structure rather than a secondary column. Collections, points, payload indexes, HNSW configuration, quantization, shards, replicas, snapshots, strict mode, and a universal Query API give developers direct control over retrieval behavior and scaling.

Collections, points, vectors, and payloads

A Qdrant collection is a named set of points. Each point has an integer or UUID identifier, vector data, and optional JSON payload. Named vectors allow one record to hold different embedding spaces, while sparse vectors support lexical representations alongside dense semantic embeddings.

The vector size and distance metric are collection-level contracts. Changing the embedding model can change vector dimensionality and semantic behavior, so production migrations often require a new collection, backfill, validation, and an alias switch rather than an in-place overwrite.

Payload is not an afterthought. Tenant identifiers, permissions, dates, language, source, inventory, geography, and other business fields belong in payload so retrieval can enforce constraints that an embedding cannot express.

Filtering and payload indexes

Qdrant can combine vector similarity with boolean payload filters in one query. For predictable performance, fields used in filters should receive payload indexes, preferably before large ingestion begins. Queries on unindexed fields may require expensive scans.

Strict mode can block or limit inefficient operations such as filtering on unindexed fields, oversized result sets, excessive conditions, large batches, or unsafe storage growth. Managed Qdrant enables important protections by default, while open-source operators must configure them deliberately.

Hybrid and multi-stage retrieval

The Query API can prefetch candidates from several representations and fuse or rerank them in a later stage. A common hybrid design stores a dense semantic vector and a sparse lexical vector for each point, then combines the candidate lists with reciprocal rank fusion.

Hybrid search does not automatically improve every dataset. Sparse and dense models, fusion method, candidate limits, metadata filters, rerankers, and chunk strategy must be evaluated together. Offline relevance tests and production feedback are more meaningful than a single demonstration query.

Indexing, memory, quantization, and ingestion

HNSW provides approximate nearest-neighbor search, while Qdrant segments and optimizers manage storage and indexes in the background. Index construction, memory mapping, on-disk vectors, payload indexes, and quantization trade memory, indexing time, recall, and latency.

Bulk ingestion should use appropriately sized batches and avoid repeatedly rebuilding indexes during a backfill. Quantization can reduce memory requirements, but candidate retrieval and rescoring settings need measurement because smaller representations may reduce recall.

Single-node, distributed, and managed deployment

A single Docker node is suitable for development and many moderate workloads. Distributed mode splits collections into shards and can add replicas for capacity and resilience. Shard placement and replica changes remain operational work in self-hosted clusters.

Distributed deployments use peer communication and consensus, and snapshot behavior is node-aware. A collection snapshot captures data and configuration on the node where it is created; distributed disaster recovery therefore requires a documented per-node or platform backup strategy, not one casually downloaded archive.

Qdrant Cloud, Hybrid Cloud, Private Cloud, and open-source self-hosting assign different responsibilities for upgrades, backups, scaling, security, and support. The database API may be similar while the operational burden is not.

Key features

  • Collections of points containing one or more dense, sparse, or multi-vectors plus JSON payload metadata.
  • Payload-aware filtering with boolean, range, text, geo, nested, and identifier conditions and dedicated payload indexes.
  • Hybrid and multi-stage Query API using prefetch, fusion, reranking, recommendations, discovery, grouping, and sampling.
  • HNSW vector indexing, on-disk storage options, scalar or product quantization, and configurable optimization.
  • Sharding, replication, distributed consensus, shard transfers, and deployment options from local Docker to Qdrant Cloud.
  • Collection and full-storage snapshots, aliases, API keys, TLS options, monitoring endpoints, and strict-mode protections.

Common AI use cases

  • Retrieve document chunks for grounded question answering and RAG.
  • Combine semantic and keyword retrieval for product, support, legal, or technical search.
  • Apply tenant, permission, time, language, geography, or catalog filters during vector search.
  • Power recommendations, similar-item discovery, deduplication, and anomaly search.
  • Store multiple embeddings for text, image, audio, or model-specific representations.
  • Use a reranker or late-interaction model after first-stage candidate retrieval.

Business use cases

  • Customer-support knowledge retrieval with product and entitlement filters.
  • E-commerce semantic search constrained by price, inventory, category, and location.
  • Enterprise RAG with tenant and document-access metadata.
  • Content recommendation and related-item services.
  • Fraud, similarity, and duplicate-detection systems over learned representations.

How AI builders can use it

  • Define the retrieval task, relevance labels, filters, and latency target before choosing an embedding.
  • Design collection vector names, dimensions, distance metrics, payload schema, and tenant boundaries.
  • Create payload indexes before ingesting fields that will be filtered frequently.
  • Backfill through batches, monitor optimizer behavior, and validate point counts and payload integrity.
  • Measure dense, sparse, hybrid, and reranked configurations on a fixed evaluation set.
  • Plan snapshots, restore tests, aliases, schema migrations, upgrades, and shard operations before production.

Who should use it

  • Teams for whom vector retrieval is a core production capability.
  • Developers needing metadata-aware semantic or hybrid search.
  • Applications that require dedicated vector indexing, quantization, or distributed scaling.
  • Teams that want open-source self-hosting with a managed-cloud path.

Who should not use it

  • Small applications whose existing PostgreSQL database and pgvector extension meet the scale and filtering needs.
  • Teams without representative relevance tests or ownership of embedding and chunking quality.
  • Applications expecting the vector database to provide source parsing, answer generation, or authorization automatically.
  • Operators unprepared to manage backups, shard placement, resource limits, and upgrades in self-hosted clusters.

Evaluation checklist

  • What are the vector dimensions, distance metrics, and embedding versioning plan?
  • Which payload fields require indexes, and which filters enforce tenancy or permissions?
  • What recall, precision, latency, and freshness targets define success?
  • Will retrieval use dense, sparse, hybrid, multi-vector, or reranked stages?
  • How many points, vectors per point, payload bytes, and writes per second are expected?
  • Should vectors or payloads live in memory or on disk, and is quantization acceptable?
  • How will snapshots, aliases, restores, reindexing, and collection migrations work?
  • Is a single node sufficient, or are shards, replicas, and managed operations justified?

Security and admin notes

  • Do not expose Qdrant directly to the public internet without API keys, TLS, firewall controls, and application-layer authorization.
  • Enforce tenant and document permissions in every query filter; do not rely on embeddings to isolate data.
  • Index security-critical payload fields and test negative-access cases.
  • Treat vector payloads and embeddings as potentially sensitive derived data.
  • Back up each required node or use the platform backup mechanism, and test restoration into an isolated environment.
  • Pin container images and client versions and review release notes before cluster upgrades.

Pricing notes

Qdrant is Apache 2.0 open-source software and can be self-hosted. Qdrant Cloud, Hybrid Cloud, Private Cloud, support, storage, and compute have separate current pricing. Self-hosting shifts cost into memory, disks, replicas, monitoring, backups, upgrades, and operator time.

Tradeoffs

Qdrant provides a purpose-built retrieval engine with excellent filtering and hybrid-query capabilities, but it introduces another stateful database. Collection and payload design, embedding migrations, relevance evaluation, backups, and cluster operations remain application responsibilities. It earns its complexity when vector search is important enough to require dedicated controls.

Recommended workflow

  • Prototype locally with one collection and explicit payload fields.
  • Build a labeled retrieval evaluation set before tuning.
  • Add payload indexes and strict-mode protections.
  • Test dense, hybrid, and reranked paths under realistic filters.
  • Load-test ingestion, search, and memory behavior.
  • Prove snapshots, restores, aliases, and migration procedures before scaling.

Pros

  • Strong combination of vector similarity and structured payload filtering.
  • Flexible dense, sparse, named-vector, hybrid, and multi-stage queries.
  • Open-source single-node and distributed deployment with managed options.
  • Useful operational features including aliases, snapshots, strict mode, and quantization.
  • Broad client and ecosystem support.

Cons

  • Additional stateful infrastructure compared with pgvector in an existing database.
  • Relevance still depends on embeddings, chunking, fusion, reranking, and evaluation.
  • Self-hosted distributed scaling requires shard and backup operations.
  • Schema and embedding changes often require controlled collection migrations.
  • Security depends on consistent application filters and network controls.

Alternatives

  • pgvector may be better when vectors belong beside relational data in an existing PostgreSQL deployment.
  • Milvus may be better for teams prioritizing a larger distributed vector-data platform.
  • Weaviate may be better when integrated object schemas and managed vectorization are preferred.
  • Elasticsearch or OpenSearch may be better when lexical search and existing search operations dominate.

FAQ

Is Qdrant only for semantic search?

No. It supports dense, sparse, named, and multi-vector data plus payload filters, hybrid fusion, recommendations, discovery, grouping, and multi-stage queries.

Does Qdrant generate embeddings?

The database primarily stores and searches vectors. Qdrant Cloud also offers inference capabilities, but applications should still version and evaluate the embedding pipeline deliberately.

When is pgvector simpler?

When the dataset and traffic fit comfortably in PostgreSQL and transactional joins or operational simplicity matter more than dedicated vector-search controls.

Do snapshots back up an entire distributed cluster?

A collection snapshot is created per node and contains the data held on that node. Distributed recovery requires a complete node-aware backup plan or the relevant managed backup product.

Should payload fields be indexed?

Fields used frequently for filtering should generally receive payload indexes, especially tenant and permission fields. Strict mode can help prevent expensive unindexed operations.

Official verification sources

Direct official links used to verify pricing, features, security claims, and product packaging.

CategoryVector databaseLicenseApache 2.0DeploymentDocker container for local use, binary for bare-metal, or Qdrant Cloud fully managed clustersModeSelf-hosted or cloud
Qdrant GitHub

OpenSourcesAI ecosystem connections

Use these next-step links to move from this profile into related tools, comparisons, guides, stacks, and curated shortlists.