Applied AI Vol. 1

Grounded Answers and When to Abstain

A retrieval system should answer only when the evidence supports it. How to measure support and set an abstention rule.

Applied AI Vol. 1 · 5 min read

Retrieval can return the wrong passage, or nothing useful at all. A trustworthy system notices and says so instead of producing a fluent guess.

Grounded does not mean cited

A response that attaches a citation is not automatically supported by it. Grounding means each claim can be traced to retrieved text that actually says it. Check this at the claim level: split the answer into claims and ask, for each, whether the cited passage entails it.

Signals for abstaining

  • Weak retrieval: the top similarity score is low or the scores are flat.
  • Conflict: retrieved passages disagree.
  • Low support: a checker finds claims not entailed by the evidence.
  • Out-of-scope: the question is about something the corpus does not cover.

Setting the threshold

Abstaining has a cost: useful questions go unanswered. Evaluate the trade-off on labeled questions, including some that cannot be answered from the corpus. Plot the rate of unsupported answers against the fraction answered, and choose an operating point that fits the application’s tolerance for error.

Calibrate the abstention signal, and confirm that its behavior holds on fresh questions, not only the ones used to tune it.

Communicate it well

An abstention should say what is missing and offer a next step, such as a narrower question or a handoff to a person. Track abstention rate over time, since a sudden change often signals a retrieval or data problem.

More guides from this book