DEV Community

Konhrad
Konhrad

Posted on AI-assisted

RAG Is an Open-Book Exam Where a Stranger Packs Your Notes

Picture the hardest open-book exam of your life. You're allowed five pages of notes. The catch: you don't choose them. A stranger does, after a quick glance at the question.

That's RAG. The language model is the student. Search is the stranger packing the bag.

When the answers come back wrong, the reflex is to hire a smarter student. From building RAG systems, our view is blunt: most teams are blaming the wrong person.

Three numbers from the field
We've been trying out a few RAG pipelines, and one of them produced early numbers worth sharing. We test on public multi-hop question sets, and the system is strict on purpose: no supporting quote, no answer.

91.6% → 81.6%. With plain keyword search, when each question only searched its own small pile of candidate passages, the right one made the top five for 91.6% of reasoning steps. Then we put all those passages into one shared index. Same questions, same search. It fell to 81.6%. We just made the haystack bigger, and one needle in ten went missing. And that "bigger" haystack is still a toy next to any real company's document store.

55% → 17.5%. "Surely more context helps?" We tried giving the model whole pages instead of passages. The right text showed up in the top 12 for 55% of steps with passages and 17.5% with whole pages. A passage plus its neighbours landed in between, at 42.5%. The answer was on the page. It was just drowning.

16% and 52%. The most instructive one. The strict pipeline answered just 16% of the questions that could be answered. And 52% of them died at a step where the right paragraph was sitting in front of the model, and it still said "not enough evidence."

When we read through those, the culprit was usually what we'd asked search for, not what it returned. The plan skipped a bridging step, asked things in the wrong order, or slipped in a word like "last year" that no passage actually said. The stranger packed the right page. We'd described the wrong one.

The maths nobody likes
If search hands over the right evidence 80% of the time, your system's ceiling is 80%. That's the ceiling, not your accuracy. Every mistake the model makes comes off the top of it. A better model gets you closer to the ceiling. Better search moves the ceiling.

The research says the same. In 2024, researchers at Deakin University wrote up three real deployments in Seven Failure Points When Engineering a RAG System. Several of their seven failures happen before the model writes a single word: the content isn't there, the right document is ranked too low, or it never makes it into the prompt. Their most honest conclusion: you only really find out whether a RAG system works once it's live, and robustness grows over time rather than being designed in.

The most counter-intuitive result comes from The Power of Noise (Sapienza University of Rome, SIGIR 2024). Passages that look relevant but don't contain the answer hurt the model more than completely random text does.

Read that again. Random junk is safer than a near-miss. A stranger who packs your bag with plausible but wrong notes does more damage than one who throws in a takeaway menu.

Five ways the stranger gets it wrong
They pack for the topic, not the question. Ask which plans don't cover dental and you get a lovely stack of pages about plans that do. Embeddings are great at "what is this about?" and poor at "does this actually say what I need?"
They take you too literally, or not literally enough. People chat with assistants; they don't write search queries. "What about Pro?" means nothing on its own. Users say "my laptop won't turn on", the manual says "power-on failure." And a question that needs three documents stitched together doesn't look like any one of them.
They tear pages in half. Chunking leaves you with "this limit was raised to 50" and no clue which limit. Tables lose their headers. Go bigger to fix it and you get our 17.5%.
They're bad with names and numbers. To an embedding model, error codes E-4012 and E-4021 are basically twins. Old-school keyword search, the thing everyone was keen to replace, is still better at this.
Some questions aren't lookups at all. "How many tickets mentioned pricing last quarter?" needs every ticket, not the five most similar. "What's the current policy?" needs a sense of time. Some questions want a database, and no amount of similarity will fake one.

"Just give the student the whole library"
The popular escape hatch: skip search, use a huge context window, paste everything in.

For a small pile of documents, it works. But it doesn't get rid of the stranger. It moves them inside the student's head. In Lost in the Middle (Stanford and collaborators, TACL 2024), models did best when the key fact sat at the start or end of the input and noticeably worse when it was buried in the middle. That held even for models built for long inputs, and it got worse as the inputs got longer.

Then there's the bill. You pay for every token, every time, and most real document collections are still far too big to fit. Someone has to decide what goes in. Whatever you call that step, it's search.

In fairness to the stranger
Search isn't the only failure point, and it would be overselling to claim otherwise.

Google's Sufficient Context paper (ICLR 2025) sorted failures into two piles: the evidence wasn't enough, or it was enough and the model blew it anyway. Both piles were real. Models got a meaningful share wrong even when they had everything they needed. And when the evidence was thin, they tended to make something up rather than admit it, especially on multi-step questions.

Our 52% is the mirror image: the evidence was there, and our model refused. Different failure, same lesson. "Search returned something similar" is not the same as "we have enough to answer." Measure those two separately, or you'll never know which one is hurting you.

What everyone else is seeing
Much the same, just louder. A DigitalOcean engineering guide from April 2026 says most RAG failures start in retrieval, not generation, and names the cruel part: a naive pipeline answers whether or not search worked, so you never see it fail.

You'll also see eye-catching stats doing the rounds: 70–80% of enterprise RAG projects never reaching production, and roughly 70% of teams with no proper evaluation of retrieval at all. Treat those with caution, most trace back to vendor surveys. But the direction matches what we see in our own testing. Teams grade the final answer, maybe with an LLM judge, and almost nobody checks what search actually handed over.

Research is heading the same way. A February 2026 paper on financial filings, Decomposing Retrieval Failures in RAG (Kobeissi & Langlais), splits failures into wrong document, wrong page and wrong chunk. The question is quietly shifting from "which model?" to "which part of search broke?"

What actually helps
The cleanest public result is Anthropic's Contextual Retrieval. The idea is almost embarrassingly simple: before indexing each chunk, have a model write a sentence or two about where it sits in its document. On their benchmarks, the top-20 failure rate went from 5.7% to 3.7% with that alone, to 2.9% with keyword search added back in, and to 1.9% with a reranker on top. That's a two-thirds cut, and the model writing the answers never changed.

What we prioritise, roughly in order of payoff:

Use both kinds of search. Keywords plus embeddings, merged. One catches the part numbers, the other catches the paraphrases.
Get a second opinion. Cast a wide net, then rerank with a model that reads the question and the passage side by side.
Fix the question before the index. Rewrite chatty follow-ups, break multi-step questions apart, and let the system re-plan when a step comes back empty. For us, the plan was where the most answers died.
Chunk the way a person reads. Follow sections and tables, keep titles attached, and test chunk size instead of assuming bigger is safer.
Send non-lookups elsewhere. Counting and filtering belong in a database.
Grade search on its own. A hundred or two questions where you know which passage holds the answer, with recall tracked on every change. Unglamorous, and the only reliable way to know you're improving.

Before you upgrade the model
Next time your RAG gives a bad answer, don't start by shopping for a smarter student. Pull twenty failures, open up exactly what search handed over, and ask one question: could I have answered from these pages?

If the answer is no, you've found your problem. It was never the model.

Himansh Tekumudi
Founder & Partner @ Konhrad

Sources
Barnett et al., Seven Failure Points When Engineering a Retrieval Augmented Generation System, CAIN 2024
Cuconasu et al., The Power of Noise: Redefining Retrieval for RAG Systems, SIGIR 2024
Liu et al., Lost in the Middle: How Language Models Use Long Contexts, TACL 2024
Joren et al., Sufficient Context: A New Lens on Retrieval Augmented Generation Systems, ICLR 2025
Kobeissi & Langlais, Decomposing Retrieval Failures in RAG for Long-Document Financial Question Answering, arXiv, Feb 2026
Anthropic, Introducing Contextual Retrieval, Sep 2024
DigitalOcean, Why RAG Systems Fail in Production, Apr 2026
Anhaia, 70% of Enterprise RAG Deployments Fail Before Production, DEV Community, 2026 (vendor-survey figures)

Top comments (1)

Collapse
 
zealot2002 profile image
goodlords •

The 16% / 52% split is the number I would put on a slide: a strict "no quote, no answer" pipeline can still fail when the right paragraph is already in the prompt, and in your write-up that was usually a planning bug (a bridging step skipped, or a word like "last year" that no passage used). The haystack result is the other one that matches what I see: keyword search looked strong on a per-question pile (91.6% in the top five) and lost a tenth of those hits once the same passages shared one index. I would treat the 52% refusals as a query-rewriting eval, not a generator eval — grade the search terms the planner emitted against the gold passage, separately from whether the model then quoted it. The "near-miss hurts more than random noise" point is also why I would rather abstain than widen k just to raise recall.