Did IBM Just Kill RAG? The Answer Will Surprise You
RAG is officially cooked.
That’s what a post in my feed said this week. IBM, it claimed, had built a retriever that hallucinates 65 x less than fine-tuned RAG.
I found the paper. It’s from IBM, and the 65x is real: their retriever, STAIR, pointed to a book section that doesn’t exist 0.05% of the time, against 3.25% for another fine-tuned retriever.
But that’s what “hallucination” means there, rather than a wrong answer. And STAIR is a retriever built for RAG.
The problem the post describes is real, though. In a 2024 Stanford study, a RAG-based legal research tool was asked about opinions written by Judge Luther A. Wilgarten.
The judge never existed.
The tool answered anyway, with a real case and a real citation.
A wrong answer with a real citation is harder to catch than a wrong answer with none.
Your RAG system can make the same mistake.
Fixing it doesn’t mean throwing RAG away. It means checking what the retriever hands the model, and below are five ways to do that this week.
Quick aside: If you’re getting value from these breakdowns, you can support me on Ko-fi; it helps me keep publishing more such helpful content.
Some of my products you can check out:
- The Prompt Drawer: 380 AI Prompts and 38 Workflows
- The Claude Code Kit: Set Up Claude Code Like the Top 1%
- Complete advanced Rag guide book.
And if you want more like this, subscribe to my newsletter for practical, noise-free AI breakdowns every week. Either way, let’s get back to it.
Why naive RAG hallucinates with citations
Naive RAG works in three steps. Turn the question into a vector, grab the chunks whose vectors sit closest to it, and paste them into the prompt. The model then writes an answer from whatever it was handed.
The weak spot is the word “closest.” Similar text isn’t the same as relevant text.
The Stanford researchers think the Wilgarten mix-up happened because the fake name sat close, in vector space, to a real case that mentions a judge and a person named William Luther.
Once irrelevant text is in the prompt, the model rarely refuses. It reads the pasted text as evidence and answers from it.
Here’s what the study found about three commercial legal tools, all built on RAG and all marketed as avoiding hallucinations:
- They hallucinated between 17% and 33% of the time.
- The researchers counted an answer as a hallucination if it was false, or if it cited a real source that didn’t support the claim. They called the second kind “misgrounded.”
- Poor retrieval, which they called naive retrieval, was a contributing cause in 47% of one tool’s hallucinated answers.
One caveat: the study tested 2024 versions of these products, and the vendors have shipped updates since. Even so, the lesson applies to any RAG pipeline, because the failure starts at the retriever rather than with any one company’s model.
So the fix has to start before the model writes a single word.
What “filter before you generate” looks like
The viral post described a system that checks retrieved data before the model answers. That idea has been published and open-sourced for a while, and here are two concrete versions.
Corrective RAG (CRAG). A 2024 paper from researchers at the University of Science and Technology of China, UCLA and Google added a small grader between the retriever and the model. It scores how relevant the retrieved documents are, then picks one of three paths:
- Correct: at least one document is clearly relevant. Keep it, cut the irrelevant sentences out of it, and answer.
- Incorrect: nothing is relevant. Throw it all away and search the web instead.
- Ambiguous: somewhere in between. Use both the trimmed documents and a web search.
The authors report clear gains over standard RAG across four datasets.
IBM’s Granite Guardian. This is IBM’s real contribution here, and it’s free to download. Granite Guardian is a family of open models built to judge AI inputs and outputs. For RAG, it checks three things:
- Context relevance: is the retrieved text relevant to the question?
- Groundedness: is every claim in the answer supported by the retrieved text?
- Answer relevance: does the answer address what was asked?
The first check runs before the model writes anything. The other two run after. You can run it through Hugging Face or Ollama.
Notice what both systems still do: they retrieve documents and hand them to a model. They just stop trusting the retriever blindly. That makes them better RAG.
The three checks Granite Guardian runs on a RAG pipeline: one before the model answers, two after.
5 fixes you can add this week
You don’t need a new architecture to get most of this benefit. Each fix below slots into the pipeline you already have.
1. Build a test set before you change anything
Write 50 to 100 real questions with known answers. Then add trap questions, the kind the Stanford team used: made-up names like Judge Wilgarten, questions with a false premise, and questions your documents can’t answer.
Run them and count three things: wrong answers, answers whose citation doesn’t support the claim, and answers that should have been “I don’t know.” Without these numbers, you can’t tell whether any fix below helped.
Try this: add five fake-name questions to your test set today. They’re the fastest way to see whether your pipeline makes things up.
2. Put a relevance gate before the model
Score every retrieved chunk against the question, and drop any chunk below a threshold before it reaches the prompt. A small reranker model does this well, and so does Granite Guardian’s context relevance check.
Try this: log the relevance scores for your test questions, look at where the bad chunks cluster, and set your threshold just above them.
3. Let the system say “I don’t know”
If no chunk passes the gate, don’t call the model at all. Return something like “I couldn’t find this in our documents” and point to a person or page who can help. That’s CRAG’s “Incorrect” path without the web search.
Watch the other extreme too. One tool in the Stanford study gave incomplete answers, mostly refusals, to more than 60% of questions. A system that never answers isn’t useful either, so tune the threshold against your test set.
4. Add keyword search next to vector search
Vector search is weakest on exact things: names, product codes, case numbers, error IDs. The Wilgarten mix-up came from a near match in vector space. An exact keyword search for “Wilgarten” would have found nothing, which was the honest answer. Running classic keyword search (BM25) alongside vector search and merging the results catches exact matches that embeddings miss.
Try this: check whether your vector database supports hybrid search. Many do, and turning it on is often a configuration change.
5. Check groundedness after the model answers
Before an answer reaches the user, check that each claim is supported by the chunk it cites. Granite Guardian’s groundedness check does this, or a second model can grade the answer. If a claim fails, regenerate the answer or remove the claim.
This is the check that catches misgrounded citations, the most dangerous kind, because a reader sees a real source and stops checking.
How much of this do you need?
Not every RAG app needs all five fixes. An internal bot that answers questions about your team’s wiki can live with the occasional miss. A tool that answers legal, medical or financial questions can’t.
Before you rip out your RAG pipeline
The post that started this said RAG is cooked. What it described, checking retrieved text before the model answers, is still RAG with a checkpoint added.
So don’t throw away your pipeline because of a viral post. Run your test set, find the step that fails, and add the gate that fixes it.
Have you caught your RAG system citing a source that didn’t say what it claimed? Share what happened in the replies. I’d like to collect real failure stories for a follow-up.

