Two retrieved chunks contradict each other on the same fact. What should the system do?
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Retrieval surfaces chunks that directly contradict each other, for example an outdated policy and the current one, or two specs that disagree. Explain how a production RAG system should handle the conflict and why silently picking one answer is the wrong default.
When retrieved chunks contradict, resolve by recency or authority metadata where a signal cleanly decides, and otherwise surface the conflict with citations — never silently pick one side as confident fact.
Imagine you ask two coworkers what the refund window is, and one says 30 days while the other says 14. A bad assistant just blurts out one number and sounds sure. A good assistant checks who is more trustworthy — maybe one is quoting last year's handbook and the other the current one — and if it still cannot tell, it says, 'These two notes disagree: one says 30 days, the other 14, here is where each came from.' That is what a careful RAG system does: it uses dates and source rank to break the tie, and when nothing breaks it, it shows you both and lets you decide instead of guessing for you.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
Open with why silent collapse is the cardinal sin: it manufactures confident wrongness the user cannot detect. Lay out the decision tree — detect the conflict, attempt deterministic resolution by recency then authority, and escalate to surfacing both cited sources when nothing decides. Then explain the unglamorous prerequisites: ingestion must capture recency and authority metadata, supersession must demote stale docs, and citation identity must survive chunking and reranking. Close on treating conflict handling as a measurable faithfulness target in the eval harness.
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Letting the model silently favor whichever contradicting chunk landed first in the context, producing a confidently wrong answer that the user only catches when they read the other source.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.