LearnQuestion bank

Legal users require every claim to cite a source passage, and the system must say it doesn’t know when the corpus is silent. How do you build and verify that?

Applied LLMTechnicalMedium

Answer it yourself first, out loud or on paper, then compare.

Answer

Model answer, written in a candidate's voice

In short

  • Chunks carry stable IDs; every claim is emitted with a citation to the exact span, or provider citation features are used.
  • Verification checks that the cited span exists and entails the claim via NLI or a judge; unsupported sentences are removed or regenerated.
  • Abstention uses retrieval thresholds plus explicit say-you-don’t-know instructions, tuned on an unanswerable set and tracked with false-abstention rate.
  • UX shows the quote and link beside each claim, with abstention as a first-class state rather than a hedged answer.
  • Strictness vs helpfulness and verification latency are explicit trade-offs: stricter entailment and higher retrieval-confidence thresholds reduce hallucination but raise abstentions and slow responses, so settings are set per risk and measured.

In full

The core design is that the corpus is chunked with stable IDs and the answer is structured as claims, each carrying a citation to the exact span it depends on, or using the provider’s citation features when available. I would then verify every cited span exists and entails its claim with an NLI model or a judge, and remove or regenerate any sentence that fails, rather than letting the model hedge. Abstention is not left to the model’s goodwill: retrieval thresholds plus explicit instructions to say it does not know when the corpus is silent, tuned on an unanswerable set and reported alongside false-abstention rate so we can see both over-claiming and over-refusal. In the UI, each claim shows the quote and link next to it, and an abstention is shown as a clear not-found state, not a confident-sounding partial answer. The explicit trade-offs are strictness versus helpfulness and verification latency: stricter entailment and higher retrieval-confidence thresholds reduce unsupported claims but increase abstentions and slow the response, so I would set thresholds by risk and measure both error types rather than pick one global setting.

Corrected by an independent AI reviewer.

What a strong answer covers

  • Chunks carry IDs; output format attaches citations per claim, or provider citation features are used
  • Verification: cited span exists and entails the claim (NLI model or judge); unsupported sentences removed or regenerated
  • Abstention via retrieval thresholds plus instructions; measured on an unanswerable set, alongside false-abstention rate
  • UX shows quotes and links; strictness vs helpfulness and the latency of verification are explicit trade-offs

Common mistakes

  • Treating a citation marker as proof of support
  • never testing unanswerable questions