Article ยท RAG
Most bad RAG answers are retrieval failures
Five checks I run on retrieval over mixed PDFs, spreadsheets and images before I touch the prompt or the model.
By Ali Raza, Senior AI Engineer
When a RAG assistant gives a bad answer, the first instinct is to change the prompt or the model. Usually the model never saw the right information. Check retrieval first.
The five checks
- Did extraction keep table structure, or did rows turn into word soup?
- Do chunks carry their source and page, so answers can cite them?
- Are spreadsheets indexed as rows with headers, not as one blob?
- For a test question, is the right chunk in the top five results at all?
- When nothing relevant is retrieved, does the assistant say so and hand off to a person?
Measure it, do not eyeball it
Write a small set of questions with the chunk that should answer each one, and measure how often that chunk comes back. Recall at k, MRR and nDCG tell you whether a change to chunking or retrieval helped before any user sees it. I built rag-eval-bench to compare chunking strategies and BM25, dense and hybrid retrievers this way.
Citations are a retrieval feature
If your RAG assistant cannot show where an answer came from, your users cannot trust it, and neither can you. Citations only work if source and page survive ingestion, which is why that check is second on the list.