---
title: Users show answers citing real documents that don't say what the answer claims. Diagnose.
url: https://gurkanozkan.ai/learn/questions/applied-llm-dbg-05/
markdown: https://gurkanozkan.ai/learn/questions/applied-llm-dbg-05.md
kind: question
role: Applied LLM
stage: Technical
difficulty: Medium
json: https://gurkanozkan.ai/api/learn/questions/applied-llm-dbg-05.json
robots: noindex
---

# Users show answers citing real documents that don't say what the answer claims. Diagnose.

Applied LLM · Technical · Medium

## Answer

*Model answer, written in a candidate's voice*

### In short

- Retrieval: were the right passages retrieved, and did chunk boundaries cut qualifiers/negations or stale versions get cited?
- Generation: parametric knowledge blended with context, citations attached after the fact, too many chunks, conflicting documents
- Oracle-context ablation: give the model the gold passage and see if the mis-citation persists
- Fixes: citation entailment checks, quote-then-answer, reranking to fewer chunks, abstention, document versioning, new eval cases

### In full

First I would separate retrieval from generation with an oracle-context ablation: hand the model the gold passage and see whether it still cites that passage for a claim it does not support. If it does, the failure is in generation — the model is blending parametric knowledge with context, or attaching citations after the fact rather than deriving the answer from the passage. If it stops failing with the right context, retrieval is the problem: the cited passages may be real but wrong, chunk boundaries may have cut off qualifiers or negations, the corpus may hold stale versions, or too many weak chunks may be diluting the signal, and conflicting documents can make a citation accurate to one version while the answer reflects another. Fixes: an entailment check that verifies each cited claim against the cited passage before the answer is shown, quote-then-answer prompting so the answer is grounded in the quote, reranking to a few high-precision chunks, abstention when no passage supports the claim, and document versioning so citations point at the current version. I would also add eval cases where the cited document is real but the claim is unsupported, plus cases with stale versions and cut-off qualifiers, so the failure mode is measured rather than assumed.

*Checked against sources by an independent AI reviewer.*

## What a strong answer covers

- Retrieval: were the right passages retrieved? Chunk boundaries cutting qualifiers? Stale versions?
- Generation: parametric knowledge blended with context; citations attached after the fact; too many chunks; conflicting documents
- Oracle-context ablations to localise
- Fixes: citation entailment checks, quote-then-answer, fewer better chunks via reranking, abstention, document versioning; new eval cases

## Common mistakes

- Assuming any cited answer is grounded
- tuning retrieval when generation is at fault

## Topic guides

- [Debugging ML and LLM systems](https://gurkanozkan.ai/learn/topics/debugging.md)
- [Retrieval-augmented generation](https://gurkanozkan.ai/learn/topics/rag.md)
---

*Study material compiled with AI: drafted by a local model (Inkling 2 Mini) from public sources, then checked against those sources by independent AI reviewers (Claude) in November 2026. Not reviewed line by line by a person.*
