Dashboard
0%
1
Curious builder0 XP earned · 300 to level 2
0 daysFinish a lesson to begin
Badge collection0 of 6 unlocked
51 small wins to finish your pathNext question →

Q14EasyConcept

What are the main reasons a RAG system gives wrong or hallucinated answers?

30-second answerSay your answer out loud first, then reveal.

Failure points

Adapted from "Seven Failure Points When Engineering a RAG System", Barnett et al. 2024:

  1. Missing content: the answer isn't in the knowledge base. The system should abstain, but often makes something up.
  2. Parsing errors: tables flattened into gibberish, multi-column PDFs interleaved, scanned pages with no text.
  3. Bad chunking: the answer is split across chunks, or a chunk lacks context ("it" refers to something in the previous chunk).
  4. Missed retrieval: query wording differs from the document; acronyms; the embedding model is weak on the domain; filters exclude the right doc.
  5. Low ranking: relevant chunk at position 25, but only the top 5 go to the LLM.
  6. Context noise / overload: relevant information drowned among irrelevant chunks.
  7. Generation errors: the model ignores the context, mixes in its parametric knowledge, mis-reads numbers, or answers a different question.
  8. Conflicting or outdated sources: old and new policy versions both retrieved.
  9. Wrong format / incomplete answers: the question needed a list of all items, but retrieval returned some of them.

Debugging approach

For a failing question, check in order: is the answer in the corpus? → in the parsed text? → in a chunk? → in the retrieved top 50? → in the top k after reranking? → used correctly by the LLM? The first "no" is your bug.

This is what real progress feels like.