pg_pinecone Lands as Postgres Hybrid Search Gets a Reality Check
Pinecone open-sourced pg_pinecone for in-database vector search. A 300-query benchmark shows the Postgres keyword leg RAG guides recommend is the weak link.

Pinecone has released pg_pinecone, an open-source extension that puts vector search inside PostgreSQL itself. The same week, a separate benchmark on 300 judged queries found that Postgres full-text search is the weakest leg of the hybrid-search recipe most RAG tutorials recommend. Together the two say something specific about building retrieval on Postgres right now.
What pg_pinecone actually does
The extension adds vector search to existing pgvector columns. Its native engine runs inside the local PostgreSQL instance and does not require a Pinecone account, so queries never leave for an external service. Pinecone senior product manager Harshita Daddala and software engineer Anthony Mahanna say the project indexes vector columns that are already there — no new column type, no migration of your embeddings.
Under the hood it combines an IVF index, which clusters similar vectors, with RaBitQ quantization. That technique compresses vectors to roughly one bit per dimension plus correction values. Pinecone's argument for the design is that it lets the engine read contiguous pages of memory, build indexes quickly and use less memory.
The more interesting departure is when filters apply. With the traditional HNSW approach in pgvector, the search retrieves nearest neighbours first and filters afterwards — so a selective filter can discard most candidates, leaving fewer rows than requested or forcing repeated scans. pg_pinecone applies the filter during the search and picks a strategy based on selectivity. To make that choice it stores the filter column's value alongside each row's RaBitQ code and counts how many records carry each value while the index is built.
The vendor's numbers, labelled as such
Pinecone published benchmarks with the release. On one million 768-dimension vectors, the company reports its extension's index occupied 136 MB against 2 GB for pgvector's HNSW index with half-precision vectors. In a second scenario where 10% of rows matched the filter, the native single-stage search reached recall of 1.000 in 12.3 milliseconds, while HNSW with iterative scans topped out at recall 0.920 in 5.9 milliseconds.
Two caveats travel with those figures, and the source attaches both: the comparison was presented by Pinecone itself as the result of its own benchmarks, and the results have not been independently verified. Read the index-size gap as the claim worth testing first — it is the one easiest to reproduce on your own corpus.
The project is on GitHub under the Apache 2.0 license. Beyond the local engine, it supports existing pgvector indexes and an optional remote engine that forwards searches to Pinecone's managed service without changing your SQL — convenient, but that path runs the search on the company's infrastructure.
The part the tutorials got wrong
Vector search is only half of most retrieval stacks. The standard advice is to fuse it with Postgres full-text search using Reciprocal Rank Fusion. One engineer measured that advice on BEIR SciFact — 5,183 scientific abstracts, 300 test claims, 339 human-judged relevant abstracts, on PostgreSQL 15.14 with a tsvector english config and a GIN index.
The first finding is a bug, not a tuning problem. The plainto_tsquery + ts_rank_cd query shown in many hybrid-search READMEs returned zero rows on 277 of 300 queries, scoring 0.0703 nDCG@10. The cause: plainto_tsquery joins every query term with AND, and on natural-language claims almost no single document contains every word. Switching the AND to OR brings results back.
The second finding is the one that should change architecture decisions. Even with the SQL fixed, the measured ranking came out like this:
| Configuration | nDCG@10 |
|---|---|
| RRF (Dense + BM25) | 0.7168 |
| BM25 alone | 0.6854 |
| RRF (Dense + Postgres ts_rank OR-query) | 0.6809 |
| Dense alone | 0.6484 |
| Postgres ts_rank alone | 0.5807 |
RRF over dense plus real BM25 gained 0.0314 over BM25 and 0.0684 over dense, with 95% bootstrap intervals excluding zero. RRF over dense plus Postgres ts_rank beat either leg on its own, but could not beat standalone BM25. In other words, the popular recipe underperformed the keyword baseline it was supposed to improve.
The author also ran the control: Qdrant's server-side RRF, given the same dense and BM25 sparse vectors, scored the exact same 0.7168 (its DBSF variant scored 0.7278). And the fusion formula itself — k=1 versus k=60 versus k=200 versus min-max score fusion — barely mattered. The quality of the keyword leg decided the outcome.
What to do with both findings
If you are running hybrid search on Postgres today, the first action is cheap: check whether your keyword leg is returning rows at all. A query that silently returns nothing on most inputs looks like a mediocre retriever rather than a broken one, which is why this failure survives in READMEs.
The second is an honest scoping question. These results come from one dataset of scientific claims, and retrieval rankings do move with domain — but the mechanism behind the gap, AND-joined query terms and a weaker ranking function, is not specific to SciFact. If your keyword half is ts_rank, the benchmark suggests measuring a real BM25 implementation against it before investing further in fusion tuning.
On the vector half, pg_pinecone joins a growing set of efforts to pull vector search into Postgres, alongside TensorChord's VectorChord and Tiger Data's pg_vectorsearch, with managed Postgres offerings such as Databricks Lakebase in the same space. That competition is the thing to watch: the question for 2027 is no longer whether Postgres can host your vectors, but whose index wins on your filter patterns.
More from DangMua