Home
Blog
How Accurate Is RAG Retrieval? We Tested Three Search Methods

How Accurate Is RAG Retrieval? We Tested Three Search Methods

By
Vitaliy Likhitskiy
Senior Software Engineer
MEV
Reviewed by
Pavlo Borysov
Software Engineer
Published
December 2, 2026
Updated
December 2, 2026
How Accurate Is RAG Retrieval? We Tested Three Search Methods
TL;DR

RAG retrieval is the search step that finds the passages the model answers from. We ran three search methods (keyword, vector, and hybrid) over a 12-document knowledge base and 37 questions, 27 answerable and 10 not. The findings:

  • On questions worded the way a customer would ask, the best method found the right passage 67% of the time. Reword those same questions in the documents' own language and vector search jumps to 100%, which says more about word overlap than about retrieval.
  • Hybrid search matched plain vector search: both found the right passage 67% of the time. It helps when your two searches fail on different questions, but vector was already strong here, so adding keyword search barely moved the result.
  • Every method returned three chunks for each of the 10 unanswerable questions. One was a confidential internal cost note, pulled in on a price question because the words happened to match.
  • Every number here comes from one measured run on a working system, and our full code and corpus are public in MEV's AI Innovation Lab repo, so you can run it yourself.

RAG (retrieval-augmented generation) works by finding the right passage in your documents, pasting it into the prompt, and letting the model write the reply. Everything downstream depends on retrieval pulling that passage, so we measured it. 

We gave a sample support bot for a parcel-delivery company, Orbita Logistics, a knowledge base of twelve documents and asked 37 questions across three search methods: 27 with an answer somewhere in the docs and 10 deliberately unanswerable. On those 27, even the best method found the right passage only two-thirds of the time.

We found that hybrid search scored no better than plain vector search, and on the 10 unanswerable questions, every method still returned passages as if an answer existed. Search has no way to flag missing information.

This is Part 2 of our series on building and measuring agent systems, AI apps that split a job across several cooperating models.

Part 1 covered agent topologies and what each one costs to run; Part 3 will turn to metrics.

MEV, a US-based custom software development company, builds and measures AI agent systems for regulated, data-heavy fields like healthcare. The work comes out of MEV's AI Innovation Lab, where we turn ideas into working prototypes fast.

Every number below comes from one measured run at a single commit, with nothing estimated, and the full code and corpus are public so you can run it yourself.

What is Chunking in RAG?

Chunking splits your documents into small pieces, so search can pull back just the few that fit a question instead of handing the model everything. Each piece is called a chunk. We do it because the model can’t read all twelve documents for every question: that would be slow and expensive, and the answer would get lost in the rest.

We make each chunk one paragraph long, with one extra rule: every chunk also carries the heading of the document it came from. A chunk that reads only “50% of the delivery charge” is ambiguous on its own: is that 50% a refund, or a penalty for a late delivery? With the document’s heading “Service level agreement” attached, there’s no mistaking what it refers to.

In storage, one chunk looks like this:

  • id: sla#1
  • source: sla.md
  • title: Service level agreement
  • text: Missed domestic delivery window → 50% of the delivery charge

Retrieval setup

Corpus
12 documents → 59 chunks (paragraph + document heading)
Questions
37: 27 answerable from the corpus, 10 not covered
Phrasing
as a customer asks (22% word overlap with the answer)
Control
the same 27 targets in the documents' words (83% overlap)
Top-K
3
Vectors
Xenova/multilingual-e5-small, 384 dimensions, local
Default
hybrid RRF, weights bm25:vector = 1:2, k = 8
Commit
93081a0 · every number in the article: evals/retrievalNumbers.ts
Date
2026-09-23

Our twelve documents turn into 59 chunks. When a question comes in, search ranks all 59 and hands the model only the top three, about 5% of everything we have. If the right chunk isn’t in that top three, the model never sees it, and it answers from whatever else came back. So everything depends on how search ranks those chunks, which is where the three methods come in.

The only thing RAG gives a model is text in the context. Everything else is decided by what search returned: whether the answer is right, whether the model invents a figure, what it costs. That is why the rest of this article is about search.

Vitaliy Likhitskiy, Senior Software Engineer at MEV

Why Doesn’t Hybrid Search Beat Vector Search?

Across the 27 answerable questions, keyword search (BM25) found the right passage 37% of the time, vector search 67%, and hybrid also 67%.

Hybrid tied vector because vector was already strong: combining it with keyword search rescued some questions and lost others, and the two canceled out.

INDEXING · ONCE, IN ADVANCE

59 chunks
split into separate words
build an inverted index

an inverted index — for every word: which chunks and how many times; these are facts about the text, no scores here

delivery→ sla#1: 4, payment#2: 2, pickup#4: 2 … 17 chunks
kg→ tariffs#1: 5, packaging#1: 4, tariffs#2: 1 3 chunks
8→ tariffs#1: 1 1 chunk

QUERY · EVERY TIME, FROM SCRATCH

"How much does domestic delivery of an 8 kg parcel cost?"

split by the same rules

QUERY WORD WEIGHTCHUNKS
8
3.691 rare — this is what the search rides on
cost · does
3.182
kg
2.843 rare — this is what the search rides on
domestic
2.395
an
1.958
parcel
1.5712 common — weighs little
delivery · of
1.2317 common — weighs little
how · much — —0 not in the corpus — contributes nothing

word weight × saturated occurrence count (with the length correction) → sum over words → top-3

You’d expect hybrid to win, because keyword and vector search fail on different questions. Of the 27 questions with an answer in the docs, vector search caught 9 that keyword missed, and keyword caught just 1 that vector missed. Both found the same 9, and both missed the same 8. That leaves 10 questions riding on a single method, which combining the two should rescue.

Combined, hybrid landed level with vector search: both found it 67% of the time, and both ranked it near the top about equally.

Hybrid scored 0.57 and vector 0.55 on MRR (mean reciprocal rank), a measure of how high the right chunk lands in the results. An MRR of 1.0 would mean the right chunk came back first every time; 0.5 would mean second on average. When one of your two searches is already this strong, mixing in the weaker one rescues about as many questions as it ruins, so the total barely moves.

Hybrid can't add the two scores, because keyword and vector scores sit on different scales: one runs from 0 to about 11, the other from 0.73 to 0.89.

Think of it as voting. Each search puts the chunks in order, best to worst. A chunk that both searches rank high gets more votes than a chunk with only one search ranked first. Two decent placements beat one top placement. This is called Reciprocal Rank Fusion (RRF).

One of our test questions makes this concrete: "I'll be away for two weeks, will the parcel wait for me?" The right answer is the chunk that says parcels wait seven days free. Keyword search ranked that chunk 3rd in its list, and vector search ranked it 4th. Neither put it first. But because both placed it high, combining the two lists pushed it to 2nd overall, ahead of chunks that only one search had ranked first.

What's the Right k for Reciprocal Rank Fusion?

The right k depends on your corpus size. On 59 chunks we used 8; the default these tools ship is 60. 

RRF has one tuning constant, written k, that controls how much the top rank counts over the rest. The right value depends on your corpus size. The default these tools ship with is 60, which comes from research on collections of hundreds of thousands of documents.

On our 59 chunks, that default flattened the rankings and pulled hybrid below vector search, 63% against 67%. Lowered to 8, matched to our scale, hybrid climbs back to 67%.

These numbers come from only 27 questions, so a gap of a few points is just one or two questions either way. Treat it as a rough direction. 

Why Does Question Wording Change RAG Accuracy More than the Search Method?

How a question is worded can swing the score more than the choice of search method does. Asked in the documents’ own words, vector search found the right chunk 100% of the time. Worded the way a customer would ask, that dropped to 67%.

The difference is word overlap: the share of a question’s meaningful words that also appear in the answer chunk, ignoring fillers like “the” and “of.” We asked each thing two ways. The control version reuses the document's own words: "How long is a parcel stored at the pickup point?" The answer line reads "a parcel waits at the destination point for 7 calendar days," so most of the words line up. The customer version asks it more casually: "I'll be away for two weeks, will the parcel wait for me?" Almost none of those words appear in the answer.

Same corpus, same 27 target chunks, vector search, with only the wording changed:

Question worded… Word overlap Found it Ranked it high (MRR)
In the documents’ words 83% 100% 0.96
As a customer asks 22% 67% 0.55

In the first set, 12 of the 27 questions contained every content word of their answer. Among the customer questions, just 2 did.

So about a third of that perfect-looking score came from questions reusing the answer's words. The overlap inflated the number before search did any work.

Hence a practical rule wider than RAG: before trusting a benchmark, count how many of the question's words appear verbatim in the expected answer. It is one line of code, and the cheapest self-deception check there is.

Vitaliy Likhitskiy, Senior Software Engineer at MEV

Why Does Search Always Return Something?

Search always returns something because it ranks the chunks by how well they match the question, then hands back the top few. It has no way to say none of them fit. When you ask for the three best, it gives you three, even when the honest answer is that nothing fits.

We tested this with 10 questions the documents couldn't answer: "Do you ship live animals?", "What's going on with TRK-9999?", "What's 480 + 55×3?". Each one should come back empty. Instead, all three search methods returned three chunks every time. 

Worse is what those chunks can contain. On a delivery-price question, keyword search ranked an internal note second, one that records what a delivery costs the company, about $1. It got pulled in only because it shared words with the question. Keyword search matches on words alone, so it has no idea the note was meant to stay internal.

The model receives that chunk with no signal that it is off-topic or confidential. The obvious fix is a score cutoff: set a minimum score and drop any chunk that falls below it. The next section tests whether that works.

Can a Confidence Score Filter Out the Wrong Answers?

No. Correct and wrong answers get scores in the same range, so you can't draw a clean line between them. Some correct answers score low, and some wrong ones score high. Any cutoff set low enough to keep every correct answer also lets some wrong ones in.

Strip plot of hit and invention similarity scores with a threshold slider at 0.814; 27/27 hits kept, 8/10 inventions admitted, 35 passed in total.
At a 0.814 cosine threshold, all 27 real hits pass but so do 8 of 10 inventions, for 35 results total.

For each of the 37 questions, we took the score of its best chunk and looked for a cutoff. Set it at 0.814 and you keep all 27 correct answers. But 8 of the 10 unanswerable questions still pass, because their best chunk also scores above that line.

Here is why no line works. The weakest correct answer scores 0.814, and the strongest wrong one scores 0.874. In that narrow band sit 23 of the 27 correct answers, so any cutoff low enough to keep them also admits the wrong ones.

This model's whole working range is only about 0.2 wide, and every shade from a perfect match to a total mismatch has to fit inside it. That narrowness bites twice: once when we look for a score cutoff to filter out false hits, and again when we combine the two searches for the hybrid.

Vitaliy Likhitskiy, Senior Software Engineer at MEV

And it gets worse the more natural the question. When the questions use the documents' own words, only 3 of the 27 correct answers sit in the overlap zone where right and wrong scores mix. When a customer phrases them, 23 do.

So search can't refuse on its own. Refusal has to come from the agent. Our retriever's prompt tells it to invent nothing: when the passages don't answer the question, say so. And it does.

Part 1 of this series also measured the cost: on the question "Do you ship live animals?", which the documents don't cover, the agent reworded its search five times before admitting they say nothing. That run cost $0.034 and took 19.3 seconds, about 2.5 times an ordinary question.

Where Does the Knowledge Base Live, and When Do You Need a Database?

Right now it lives in memory. The 59 chunks and their vectors rebuild at startup in a second or two, and keyword search scans all 59 texts on every query. A database earns its place once the documents start changing, well before the corpus gets large. It leaves search accuracy untouched (still 67% found, MRR 0.57), and pays off in two other ways.

First, a query can read a prebuilt index instead of scanning every document. At 59 chunks that’s instant either way; at a million, it’s the difference between a second and a longer wait. Second, when one document changes, only the changed parts get re-embedded rather than rebuilding the whole corpus.

You hand a database the chunks, and it builds the keyword index and stores the vectors itself, all in one table.

Your hand-written keyword search disappears from the code, because Postgres and Elasticsearch handle that ranking in the database.

One caveat: Elasticsearch runs true BM25 natively. Postgres's built-in full-text ranking is close but not the same formula, so its scores won't match Elasticsearch unless you add a BM25 extension like pg_textsearch.

One thing stays yours: how each document is split into chunks. The database indexes whatever chunks you give it, but it doesn't decide where one chunk ends and the next begins.

The practical call usually comes down to one question: do you already run Postgres? If so, the pgvector extension adds vector search in a single command, the chunks sit in the same table, and hybrid search becomes one SQL query. Dedicated vector stores like Qdrant and Pinecone are faster and handle millions of vectors. The trade-off: each one is a separate system you have to run and keep in sync.

How do you avoid re-embedding everything when a document changes?

Each chunk needs an identity drawn from its content rather than its position. The standard approach hashes a chunk’s content and keeps a small ledger of what’s already indexed. On the next run, the ledger compares hashes:

  • unchanged chunks match and get skipped, with no model call
  • changed chunks get recomputed
  • removed chunks get deleted from the store

A change to a single value in one document re-embeds just that chunk, not all 59. The pitfall is identifying a chunk by a position number. If you number your chunks 1, 2, 3, inserting a paragraph mid-document shifts every number below it, so every chunk below it re-embeds. The metadata should hold order-independent details like the source file and the section, and leave position out.

Key Takeaways

A RAG system is only as good as what retrieval finds. If search returns the wrong passage, the model answers from it anyway, however capable the model is. Here is what to carry into your own build.

  • A benchmark you wrote yourself flatters you. In the documents' own words, vector search scores 100%; in a customer's words, it drops to 67%. The cheapest honesty check is to count how many of the question's words already sit in the expected answer.

  • The best search finds the right passage two times out of three. That 67% is the honest baseline for basic RAG on natural questions, and the number to start from when weighing whether you need a reranker.

  • Search always returns something, and can't tell what's allowed. All three methods handed back three chunks for every unanswerable question, and keyword search ranked a confidential internal note second on a price question. Refusing has to come from the agent.

  • No score threshold separates right from wrong. The weakest correct hit (0.814) scores below the strongest false one (0.874), with 23 of the 27 correct answers caught in between.

  • An industry default is a number carried over from someone else's scale. RRF's standard k of 60 comes from huge document sets; on 59 chunks it drops hybrid below the plain vector (63% vs 67%). That setting is worth checking at your own scale before deciding hybrid doesn't help.

Weighing how much retrieval machinery your product needs? At MEV we design and measure AI agent systems for regulated, data-heavy domains like healthcare, and we can help you find the version that holds up in production.

Next in this series: Part 3, on the metrics that tell you whether a system works, and why each one answers only its own question.

‍

How & Why We Wrote This Article

We wrote this for the engineer weighing whether to add a reranker or a database to a RAG build before knowing how good the retrieval already is. It settles that with numbers from MEV's AI Innovation Lab, where we prototype systems and measure where they hold and where they break. Here that meant one RAG pipeline put through three search methods, to find the baseline retrieval given on natural, customer-worded questions.

Frequently asked questions

What is RAG retrieval?

RAG retrieval is the search step that finds the passages in your documents that answer a question, before the model writes anything. Its quality sets the ceiling for the whole system, because the model can only work with the text that search returns.

Is hybrid search better than vector search?

Not always. In our test, hybrid search and plain vector search both found the right passage 67% of the time. Hybrid helps when your keyword and vector searches fail on different questions, but when one is already strong, its gains and losses cancel out. If the hybrid looks worse, check the RRF k value for your corpus size first.

What retrieval accuracy should you expect from RAG?

On natural, customer-worded questions, the best of three search methods found the right passage about two-thirds of the time (67%). You only see near-100% scores when the test questions reuse the documents' own words, which measures word matching more than retrieval itself.

Why does RAG return irrelevant or wrong passages?

Search ranks passages by how well they match the words and always returns the top few, even when nothing fits. It has no way to signal that an answer is missing, so the model can receive irrelevant or even sensitive text with no warning. Refusing to answer has to be built into the agent.

What is the best chunk size for RAG?

It depends on your documents, but one paragraph per chunk, with the document heading attached, worked well on this knowledge base. The right size depends on your documents, so treat it as a deliberate choice. We also attach each document's heading to its chunk, so a line like "50% of the delivery charge" keeps the context that tells you what it means.

Get Your Free Technology DD Checklist 1
Just share your email to download it for free!
Your free Technology DD checklist is ready for download now.
Open the Checklist
Oops! Something went wrong while submitting the form.
Preferences

Privacy is important to us, so you have the option of disabling certain types of storage that may not be necessary for the basic functioning of the website. Blocking categories may impact your experience on the website. More information

Accept all cookies