# Your RAG Pipeline Can Be Correct and Still Miss the Right Answer

DevFeed: [Your RAG Pipeline Can Be Correct and Still Miss the Right Answer](<https://devfeed.tech/articles/your-rag-pipeline-can-be-correct-and-still-miss-the-right-answer-59674.md>)

Original publisher: [Read original article](<https://hackernoon.com/your-rag-pipeline-can-be-correct-and-still-miss-the-right-answer?source=rss>)

Author: Subhash Tatavarthi

Published: 2026-09-24T20:04:20Z

Content type: article

Language: en

Sources: [HackerNoon](<https://devfeed.tech/sources/hackernoon.md>)

Topics: [Retrieval Augmented Generation (RAG)](<https://devfeed.tech/topics/retrieval-augmented-generation-rag.md>), [hybrid-search](<https://devfeed.tech/topics/hybrid-search.md>), [Embeddings](<https://devfeed.tech/topics/embeddings.md>), [Latency](<https://devfeed.tech/topics/latency.md>), [Query (disambiguation)](<https://devfeed.tech/topics/query.md>)

Tags: [approximate-nearest-neighbor](<https://devfeed.tech/tags/approximate-nearest-neighbor.md>), [cross-encoder-reranking](<https://devfeed.tech/tags/cross-encoder-reranking.md>), [data-engineering](<https://devfeed.tech/tags/data-engineering.md>), [embeddings](<https://devfeed.tech/tags/embeddings.md>), [hybrid-search](<https://devfeed.tech/tags/hybrid-search.md>), [indexes](<https://devfeed.tech/tags/indexes.md>), [latency](<https://devfeed.tech/tags/latency.md>), [pgvector](<https://devfeed.tech/tags/pgvector.md>), [postgres](<https://devfeed.tech/tags/postgres.md>), [postgresql-full-text-search](<https://devfeed.tech/tags/postgresql-full-text-search.md>), [postgresql-hnsw](<https://devfeed.tech/tags/postgresql-hnsw.md>), [rag](<https://devfeed.tech/tags/rag.md>), [reciprocal-rank-fusion](<https://devfeed.tech/tags/reciprocal-rank-fusion.md>), [search](<https://devfeed.tech/tags/search.md>), [semantic-search](<https://devfeed.tech/tags/semantic-search.md>), [vector](<https://devfeed.tech/tags/vector.md>)

## AI overview

This article explains why a RAG pipeline using pgvector and HNSW can return incomplete or incorrect filtered results even when retrieval appears correct. It covers approximate nearest-neighbor tradeoffs, candidate-list sizing, post-index filtering, recall, and hybrid search as a complementary approach.

## Source excerpt

pgvector, HNSW and the filtered-search trap: why your WHERE clause returns fewer rows than it should, and how hybrid search fixes what embeddings cannot.