A gold magnifying lens over a stack of faded document pages with a thin thread to a gear, illustrating RAG data quality and retrieval failing before the model answers.

RAG Data Quality: Why Retrieval Fails Before the Model Does

November 08, 2026
Executive Summary
  • When a retrieval-augmented generation (RAG) system gives a wrong answer, the model is usually the last thing to blame. The failure typically happened earlier, in what got indexed and what got retrieved.
  • Gartner found that 63% of organizations lack, or are unsure they have, the right data management practices for AI, and predicts that 60% of AI projects without AI-ready data will be abandoned through 2026.
  • Stanford researchers measured hallucination rates from over 17% to over 34% in commercial legal research tools built on RAG, so retrieval does not remove errors by itself.
  • Chunking, missing metadata, and stale documents cause most of the quiet failures. Anthropic cut failed retrievals by 67% mostly by giving chunks their missing context.
  • Measure retrieval separately from answers. If you only grade the final response, you will keep fixing the wrong layer.

RAG data quality is the part of the stack nobody wants to own, which is exactly why it keeps breaking. I have watched teams swap models three times in a quarter while the same stale PDF kept feeding the same wrong answer. This piece walks through where retrieval fails before the model ever gets a vote, and how to find it. If you want the groundwork first, I covered what it takes to turn your documents into a brain an agent can use earlier.

A gold question diamond branching along compass drawn paths toward an archive, a magnifier and a gear, illustrating how to trace where a wrong answer came from.

The Answer Was Wrong, but Where

Start by assuming the model did its job. A RAG system answers from whatever the retriever hands it, so a wrong answer usually means the retriever handed over the wrong material, or the right material in a form the model could not use.

The useful move is to split every bad answer into three checks. Did the correct document exist in the index at all? Was the correct passage retrieved in the top results? Did the model use it faithfully? Most teams only ever check the third one, because it is the only one visible in the chat window. The researchers behind Seven Failure Points When Engineering a RAG System drew on three case studies and concluded that a RAG system can only really be validated in operation, and that its robustness evolves rather than being designed in at the start. In plain terms: you will find the failures by watching real questions, not by reading the architecture diagram.

Even the well-funded products miss. A Stanford HAI report on legal AI tools found that leading legal research tools built on retrieval still produced incorrect information from more than 17% to more than 34% of the time, depending on the tool. Those vendors have clean corpora and large budgets. Your internal wiki has neither.

Stacked gold document pages with duplicates merging into one clean page and a stray draft set aside, illustrating a cleaned document corpus.

Documents In, Garbage Out

Retrieval can only be as good as the corpus, and most corpora are worse than their owners believe. Gartner's survey of 1,203 data management leaders found that 63% of organizations either lack the right data management practices for AI or are not sure they have them. Its analyst Roxane Edjlali put the rule simply: "if the data has issues, then the data is not ready for AI".

What does bad look like in practice? Four things show up again and again. Duplicates: five versions of the same policy, so the retriever returns three of them and they disagree. Scans: PDFs that are really images, which index as nothing. Drafts: half-finished documents sitting next to final ones with no label. Orphans: files nobody owns, so nobody knows whether they are still true.

A source of truth is the fix, and it is a human decision, not a tool. Pick the one canonical home for each kind of document, retire the rest, and keep drafts out of the index. This is unglamorous cleanup, the same kind I described in your AI project is a data cleanup project wearing a costume. Run a deduplication pass before you embed anything, because embedding a mess just gives you a very fast mess.

A gold scroll cut into neat segments each marked with a small diamond tag, illustrating chunking with metadata.

Chunking and Metadata

Chunking decides what the retriever can even find, and the default settings are rarely right for your documents. A chunk is a slice of a document that gets embedded and stored in the vector database. Cut it badly and the slice loses the meaning it needed to be matched.

Anthropic's write-up on contextual retrieval gives the cleanest example. A chunk that says a company's revenue grew 3% means nothing if it does not say which company or which quarter. Adding a short, generated blurb of context to each chunk before embedding cut failed retrievals from 5.7% to 3.7%. Combining it with keyword search brought it to 2.9%, and adding reranking brought it to 1.9%, a 67% reduction overall. Notice that none of that touched the language model.

Metadata does the same job from the side. Tag each chunk with its source, owner, date, document type, and audience, then filter on those fields at query time. A question about the current refund policy should never be able to retrieve the 2022 version, and a metadata filter makes that impossible instead of unlikely.

A few rules of thumb that hold up:

  • Split on meaning (headings, sections, clauses), not on a fixed character count.
  • Keep tables whole, or convert them to text a model can read.
  • Carry the document title and section heading into every chunk.
  • Store the date and the owner alongside the text.
A gold hourglass beside a keyhole and shield with a refresh arrow around an archive stack, illustrating document freshness and access control.

Freshness and Access Control

An index that is not refreshed will confidently answer with last year's facts, and one that ignores permissions will confidently answer with someone else's. Both are data quality failures wearing a security or accuracy label.

On freshness, decide how stale is too stale for each document type and automate the refresh to match. Pricing and policy pages might need daily syncs; an archived contract might never. Gartner's own guidance is blunt that AI-ready data is "not 'one and done.'" Deleted source files must also be deleted from the index, which is the step teams forget and the reason an agent keeps quoting a document that no longer exists.

On access control, the retriever must respect the same permissions the source system does. If a junior employee cannot open a salary file, a chatbot should not be able to summarize it for them. Enforce permissions at retrieval time, using metadata filters tied to the asking user, not after the answer is written. For the wider picture on keeping data where it belongs, see privacy as infrastructure.

Position matters too. The Lost in the Middle paper showed that models use information best when it sits at the start or end of the context, and worse when it is buried in the middle. Stuffing twenty chunks into the prompt is not the same as giving the model twenty chances.

A gold balance scale holding a magnifying lens and a checklist with a small bar gauge, illustrating how to measure retrieval quality.

Measuring Retrieval, Not Just Answers

If you cannot say how often the right passage appears in your top results, you are guessing. Evaluation for RAG has to measure retrieval on its own, before any answer is generated.

Build a small test set first. Collect 50 to 100 real questions from the people who will use the system, and for each one record which document and passage should answer it. Then track two numbers. Recall asks how often the correct passage shows up in the top results. Precision asks how much of what came back was actually relevant. Low recall means the right material is missing or unfindable; low precision means the model is wading through noise.

Grade answers separately for grounding: is every claim in the response supported by a retrieved passage? That catches hallucination that retrieval alone cannot explain. Re-run the whole set whenever you change chunking, swap embeddings, or add a large batch of documents, and treat a drop like a failing test. As the failure-points paper suggests, this is a practice you keep up, not a milestone you pass. If you want help building that test set against your own documents, the first step is the data readiness question I raised in your data is only an asset if an agent can read it.

A wide frieze of magnifiers, scrolls, keyholes, orbits and triangles in gold linework, marking the start of the frequently asked questions.

Frequently Asked Questions

Why Does RAG Return Wrong Answers?

Usually because retrieval failed, not the model. The right document may be missing from the index, split into chunks that lost their meaning, outdated, or ranked below irrelevant results. Check the retrieved passages before you blame the model.

What Is RAG in AI?

Retrieval-augmented generation is a technique where a system first searches a set of documents for relevant passages and then asks a language model to answer using them. It grounds responses in your own content instead of the model's memory alone.

How Does RAG Improve Accuracy?

It lets the model answer from current, specific sources rather than general training data, and it allows citations you can check. It only helps if the documents are clean, current, and well chunked, as the Stanford legal study shows.

How Should Documents Be Prepared for RAG?

Remove duplicates and drafts, pick one source of truth, split on meaning, carry titles and metadata into every chunk, and set a refresh schedule. Enforce access permissions at retrieval time.

How Do You Evaluate Retrieval Quality?

Build a test set of real questions with known correct passages, then measure recall and precision on retrieval separately from answer quality. Re-run it after every change to chunking, embeddings, or the document set.

If you would like a second pair of eyes on your retrieval setup, you can book a System Review Diagnostic and we will walk through it together.

References

Back to Blog

Need Help?

Schedule a time to meet with us using the calendar below...