Qdrant: A Vector Database for Embeddings

Qdrant: A Vector Database for Embeddings

Qdrant stores vectors and finds the nearest ones quickly, which is the piece every RAG system needs.

What a vector database is for

An embedding model turns text into a list of numbers where similar meanings land near each other. To answer “which of my documents relate to this question”, you store those vectors and search by distance rather than by keyword.

That is the retrieval step in retrieval-augmented generation: find relevant chunks, put them in the prompt, ask the model. Our running LLMs locally guide covers the generation half, and AnythingLLM, Dify and RAGFlow are applications that need a store like this underneath.

Filtered search is the differentiator

Qdrant attaches arbitrary JSON payloads to vectors and filters on them during the search rather than after.

That matters more than it sounds. “Find similar documents, but only ones this user may read, from the last year” is a single query. Retrieving a hundred nearest neighbours and filtering afterwards gives you fewer results than asked for, unpredictably.

Why Qdrant over the alternatives

Weaviate bundles more: built-in vectorisation modules, a GraphQL API, hybrid search. More capable, more to run.

Milvus is built for very large scale with a distributed architecture, and is correspondingly heavier.

OpenSearch or PostgreSQL with pgvector if you already run them, which is frequently the right answer: one fewer service beats marginally better recall.

Qdrant sits at a useful point: a single Rust binary, low memory for its throughput, good filtering, straightforward operations.

Running it

docker run -p 6333:6333 -v ./qdrant_storage:/qdrant/storage qdrant/qdrant
curl http://localhost:6333/collections

A REST and gRPC API, with a web dashboard for inspecting collections. Our Compose guide covers deployment and our volumes guide covers why the storage path must be a volume rather than inside the container.

Operational caution

Vectors are memory-hungry. A million 768-dimension float32 vectors is roughly 3GB before indexes. Qdrant supports on-disk storage and quantisation to reduce that, both at some cost to recall. Plan the sizing before loading, since memory got expensive.

Embeddings are only comparable to others from the same model. Changing embedding models means re-embedding the entire corpus.

License

Qdrant is released under the Apache License 2.0.