Choosing a vector store for retrieval-augmented generation feels like it should be simple until you actually try to compare options against your own workload. Benchmarks published by vendors rarely match your query patterns, your metadata filtering needs, or your team's appetite for running another stateful service. The honest answer is that most teams overthink this decision early and underthink it once they are past a few million vectors.
What changed in 2026
- pgvector and similar Postgres extensions matured significantly, closing much of the recall and latency gap with dedicated systems for small-to-mid scale.
- Hybrid search (vector plus keyword/BM25) became the default expectation, not an advanced feature, across most vector databases.
- Filtered vector search got faster as index structures improved at combining metadata filters with approximate nearest neighbor search without a full post-filter scan.
- Cost pressure pushed more teams toward self-hosted or Postgres-based options, reversing some of the earlier rush to standalone managed vector databases.
The three broad categories
Most options fall into one of three buckets, and the right one depends less on raw performance and more on what you already operate.
- Extension of an existing database — pgvector (Postgres), or similar extensions for other relational stores. You keep one system of record and add vector columns to existing tables.
- Dedicated vector databases — purpose-built systems designed around approximate nearest neighbor search at scale, with native support for filtering, hybrid search, and horizontal sharding.
- Managed vector search services — hosted offerings that remove index tuning and cluster operations at the cost of less control and ongoing usage fees.
Comparing on the dimensions that matter
| Dimension |
pgvector / SQL extension |
Dedicated vector database |
Managed service |
| Setup effort |
Low if already on Postgres |
Medium (new system to run) |
Low |
| Scale ceiling |
Good to tens of millions of vectors |
Very high, built for it |
Very high |
| Metadata filtering |
Native SQL, very flexible |
Improving, varies by product |
Varies by product |
| Operational burden |
Low (one system) |
Medium to high (self-hosted) |
Low (vendor-managed) |
| Cost at scale |
Low (shared infra) |
Medium |
Can be high |
| Hybrid search |
Requires extra tooling |
Increasingly built-in |
Increasingly built-in |
How to actually decide
Start by counting your vectors and estimating growth over the next year, then check whether you already run a relational database that could absorb the workload. Under a few million vectors with moderate query volume, pgvector or an equivalent extension is usually the pragmatic choice — you avoid a new operational dependency, and Postgres transactions keep your embeddings consistent with your source data, a real advantage discussed alongside pipeline design in What is an AI pipeline. Past tens of millions of vectors, or when you need sub-20ms latency at high query-per-second rates with complex filtering, a dedicated vector database earns its operational cost. Managed services make sense for small teams without infrastructure headcount, provided the usage-based pricing works at your query volume — track this the way you would any other line item using the approaches in AI cost monitoring tools.
Common pitfalls
- Ignoring metadata filtering until it is a performance problem. Filtering by tenant, date, or permission level is common in real applications and not all indexes handle it gracefully.
- Benchmarking with synthetic queries that do not resemble production traffic. Recall and latency numbers only mean something against your actual query distribution.
- Underestimating re-indexing cost. Changing embedding models means re-embedding your entire corpus; plan the migration path before you need it.
FAQ
Is pgvector good enough for production RAG?
For many applications, yes, especially under tens of millions of vectors. It removes a separate system to operate and keeps data consistent with your source tables.
Do I need hybrid search?
Usually. Pure vector search misses exact keyword matches (product codes, names, acronyms) that keyword search catches easily, so combining both improves recall.
How much does vector store choice affect answer quality?
Less than chunking strategy and retrieval-query design in most cases. A mediocre vector store with good chunking beats a great vector store with poor chunking.
Should I switch vector stores as I scale?
It is common to start on pgvector and migrate to a dedicated system later. Design your retrieval layer with an abstraction so the migration does not require rewriting application logic.
Where to go next
For related reading, see Retrieval-augmented generation architecture, AI cost monitoring tools, and On-device AI vs cloud AI.