pgvector vs Pinecone vs Qdrant: choosing a vector database for RAG

pgvector, Pinecone and Qdrant compared for RAG on scale, filtering, hybrid search, multi-tenancy, data residency and cost, with a decision guide.

INDI TECHNOLOGY4 min read

Every RAG system needs somewhere to store embeddings and search them quickly. In 2023 that usually meant a dedicated vector database. By 2026 the picture is more nuanced: pgvector turned PostgreSQL into a serious option, Pinecone moved to a serverless model, and Qdrant became a popular open-source engine for teams that want top performance and control.

The choice matters because moving vector indexes after launch is painful: re-embedding, re-indexing and re-testing retrieval quality.

At a glance

pgvector (PostgreSQL) Pinecone Qdrant
What it is Extension adding vector types and indexes to Postgres Fully managed, serverless vector database Open-source vector engine (Rust), self-hosted or managed
Index types HNSW, IVFFlat (pgvectorscale adds DiskANN-style indexes) Managed, proprietary HNSW with quantisation options
Filtering with metadata Full SQL WHERE, joins, permissions in the same query Metadata filters Strong payload filtering, designed into the index
Hybrid (keyword + vector) Combine with Postgres full-text search, or use extensions Sparse-dense hybrid Sparse vectors and hybrid queries
Multi-tenancy Row-level security, schemas or partitions Namespaces Payload-based tenancy, collections
Comfortable scale Up to tens of millions of vectors on good hardware (more with pgvectorscale) Very large, without tuning Very large; strong performance per node
Operations Whatever you already do for Postgres None Low (managed) to moderate (self-hosted)
Data residency Any region your Postgres runs in, including India Provider's cloud regions Anywhere you deploy it; managed cloud regions
Cost model Your database instance Per storage, reads and writes Your infrastructure, or managed cluster pricing
Extra system to run No Yes Yes

pgvector: start here if you already run Postgres

If your application already uses PostgreSQL, pgvector lets you keep embeddings next to the data they describe. One query can filter by tenant, permissions, document type and date, join to your tables, and rank by vector similarity, all inside one transaction. There's no second system to sync, secure, back up or pay for.

Limits: at very large scale or very high query rates, a busy vector workload competes with your transactional workload. Tune HNSW parameters, give vector search a read replica, or use pgvectorscale for larger indexes. Managed Postgres on AWS, GCP, Azure, Supabase and Neon all support pgvector, in Indian regions too.

Pinecone: zero operations

Pinecone's serverless architecture separates storage from compute, so you pay for what you store and query, with no capacity planning. It's the fastest path to production for teams with no appetite for running infrastructure, and it handles very large indexes without tuning.

Watch out for: costs that grow with index size and query volume, data residency (check available regions for regulated data), and keeping your vectors in sync with your source database through a separate pipeline.

Qdrant: performance and control

Qdrant is built for filtered vector search at scale. Its filtering is part of the index, so queries with restrictive filters stay fast and accurate, which is a common weak point in other engines. Quantisation reduces memory use. You can run it yourself (Docker, Kubernetes) in any region, or use Qdrant Cloud, including bring-your-own-cloud deployments.

Choose it when vector search is a core workload, filters are heavy, or you need to self-host in a specific region with high performance.

What matters more than the database

Retrieval quality usually depends on things outside the vector store:

  • chunking that keeps headings and structure with each passage
  • embedding model choice, tested on your data and languages, including Hindi and other Indian languages if your users write in them
  • hybrid search: keywords catch exact terms like product codes, section numbers and names that embeddings miss
  • re-ranking the top results with a cross-encoder or a reranking model
  • permission filtering before retrieval, never after
  • evaluation of retrieval separately from answers (see LLM features in production)

A well-tuned pgvector setup with hybrid search and re-ranking usually beats a dedicated vector database used naively.

Choose pgvector if…

  • you already run PostgreSQL
  • you have up to tens of millions of vectors
  • filtering by permissions and joining to business data matters
  • you want one less system to secure and operate

Choose Pinecone if…

  • you want no infrastructure at all
  • indexes are very large or growing fast
  • usage-based pricing and the available regions suit you

Choose Qdrant if…

  • vector search is a core, high-volume workload
  • you filter heavily on metadata
  • you need to self-host in a particular region or cloud

Recommendation by use case

Use case Pick
SaaS product adding AI search over customer data pgvector (with row-level security)
Internal knowledge base, under a few million chunks pgvector
Compliance document search requiring Indian hosting pgvector or self-hosted Qdrant in an Indian region
Consumer app with hundreds of millions of vectors Pinecone or Qdrant
E-commerce semantic product search with many filters Qdrant, or a search engine with vectors (see Elasticsearch vs Typesense)
Prototype pgvector or Pinecone's free tier

Summary

Start with pgvector if you already run Postgres. It's enough for most products and keeps your architecture simple. Move to Qdrant for heavy filtered search or self-hosted scale, or Pinecone when you want scale with no operations. Invest in chunking, hybrid search, re-ranking and evaluation either way.

We build RAG systems and semantic search on pgvector, Pinecone and Qdrant through our data and AI team. Talk to us about your retrieval setup.

Any idea in mind? Let's make it real.

Tell us what you're building. You'll hear back from an engineer, not a sales team, usually within one working day.

Book a 30-min call