Qdrant vs pgvector

You may not need a separate vector database. When pgvector in the Postgres you already run is enough, and when Qdrant earns its place.

Short answer

Already on Postgres or Supabase, with vectors that fit comfortably in the database? Use pgvector: one database, your existing backups and permissions, nothing new to run. Need fast search with heavy filters at high volume, or vectors that outgrow your database? Use Qdrant.

The real difference: one database or two

Both store embeddings and find the nearest ones to a question. The difference is where they live.

  • pgvector is an extension inside PostgreSQL. Your embeddings sit in a column next to the rows they describe, and you search them with SQL. Backups, permissions, and transactions are the ones you already have.
  • Qdrant is a separate database built only for vector search. It’s open source (Apache 2.0, written in Rust), and you run it yourself or use Qdrant Cloud. Your app writes to it alongside your main database.

For most early products, that’s the whole decision: one system to run, or two.

Pick pgvector if

  • You already use Postgres or Supabase. On Supabase, pgvector is one click to enable.
  • You want embeddings to follow your data: delete a document, and its embedding goes in the same transaction. With two databases, keeping them in step is your code’s job.
  • You want row-level security on search results. In Supabase, the same policies that hide a user’s documents also hide their embeddings.
  • Your vectors fit comfortably in the database (see the sizing below).

Pick Qdrant if

  • You run filtered searches at high volume, such as “nearest documents for this customer, in this language, from this year”. Qdrant builds filter-aware indexes for exactly this, as long as you create payload indexes before loading data.
  • Your collection is large enough that it would crowd your main database’s memory, or vector search load starts slowing your normal queries.
  • You’d rather scale search separately from the rest of your data.

How much fits

Every embedding is a list of numbers, stored at 4 bytes each:

Model sizePer vectorSupabase free (500 MB database)Qdrant Cloud free (1 GB RAM)
384 dimensions (all-MiniLM-L6-v2)1.5 KBabout 325,000 rawabout 650,000 raw
1,536 dimensions (common hosted models)6 KBabout 81,000 rawabout 160,000 raw

These are raw vector sizes. The index, your text, and metadata take space too, so as a rough planning margin, expect to fit about half those numbers. Storing vectors as pgvector’s halfvec halves the size again.

For scale: 10,000 help-center chunks at 384 dimensions take about 15 MB. Most early products are nowhere near the limit.

What it costs

  • pgvector: nothing extra. It’s part of your Postgres. On Supabase, the free plan includes a 500 MB database (2 active projects, paused after a week of inactivity), and Pro starts at $25 a month with 8 GB of disk per project.
  • Qdrant: free to self-host. Qdrant Cloud’s free tier is a single node with 1 GB RAM and 4 GB disk, meant for testing and prototypes. Paid clusters are billed hourly by vCPU, memory, and storage; the pricing page publishes no fixed starting price, so use their calculator for your size.

The bigger cost of Qdrant is the second system: another service to deploy, monitor, back up, and keep in sync with your main database.

Filtering: the one technical gotcha

With pgvector, a filter (where customer_id = 42) is applied after the index finds the nearest vectors. If most of those nearest vectors belong to other customers, you get fewer results than you asked for. Since pgvector 0.8.0, enable iterative index scans so Postgres keeps searching until it has enough:

set hnsw.iterative_scan = strict_order;

Qdrant applies filters during the search itself, using payload indexes. Create those indexes before you load your data, or the filter-aware parts of the index aren’t built.

Switching later

Embeddings are just arrays of numbers, so moving between the two is a copy and a re-index, not a re-embed, as long as you keep the same embedding model. Two habits keep it cheap:

  • Keep your documents and chunks in Postgres as the source of truth, and treat the vector store as an index you can rebuild.
  • Put search behind one function (searchChunks(question, filters)), so the rest of your app doesn’t care which store answers.

What it changes in Chat With Your Docs

The Chat With Your Docs workflow uses Qdrant. To use pgvector instead, keep the same embedding model and chunking, add a vector(384) column to a chunks table, and replace the Qdrant search call with a query ordered by cosine distance:

select content, source
from chunks
order by embedding <=> $1
limit 4;

Everything after retrieval (the prompt, the citations, the streaming answer) stays the same.

Read more

The official pricing and terms pages, as of 20 Nov 2026.