Skip to content
mentoor

Topic 3 of 5 · 4 min read

Designing for wrong answers that look right

Goal: Sort a feature's failures into those the system can detect and those only users can spot, and design a report path for the second group.

The worst AI failures are the ones no system can detect: an answer that is wrong but looks right. Your design must help users catch these, and give them an easy way to report them.

Check yourself · 1 of 3

Which of these failures can your code detect without a human reader?

Choose one answer

Why it matters

Some failures are loud. A timeout, a blocked request or an empty result can be detected by code, so you can show a clear error. But a language model can also state a false fact, invent a source or misread a document in fluent, confident prose. Nothing throws an exception. NN/g's article on hallucinations explains why this is hard for users: the text sounds equally sure whether it is right or wrong. Only the user, or a later check against the truth, can tell.

How to do it

  1. Sort the failures into two lists. Detectable: timeouts, empty output, broken JSON, a citation that does not exist in your index, a number that fails a range check. Only users can spot: a wrong date, a made-up policy, a summary that drops a key condition, a plausible but wrong recommendation.
  2. Automate the first list. Validate output shape, check citations against real documents, and show an error when a check fails.
  3. Design for the second list. Show the sources next to the claim, so the user can check in one click. Mark what the AI did not verify. Put a visible "Report a problem with this answer" next to each answer, not hidden in a menu.
  4. Match friction to risk. For high-stakes output such as medical, legal or financial text, require the user to review it before it is used or sent.
  5. Watch for over-refusals. The opposite error is a model that refuses a normal request. It is also invisible to your logs unless you ask. Treat "it refused something it should have done" as a reportable failure too.

Before and after

Before: The assistant says "Your refund window is 60 days" in a calm tone, with no source and no way to flag it. The real window is 30 days.

After: The answer says "Refund window: 30 days (Returns policy, section 2)", links the section, and shows "Wrong or unclear? Report this answer". The citation is checked against the policy index before the answer is shown.

The second design cannot prevent every error, but it makes errors visible and reportable.

What goes wrong

  • Treating a fluent answer as a verified one, and showing no sources.
  • Hiding the report control, so the only users who find it are the angry ones.
  • Assuming that no errors in the log means no failures. Wrong answers produce no errors.
  • Ignoring over-refusals because they look like a safety feature working.

Examples

Detectable versus user-only

Detectable: the reply is empty; the JSON does not parse; a cited document id is not in the index; a refund amount is larger than the order total.

User-only: the reply cites a real document but misstates its condition; a date is off by one year; the summary leaves out the exception that matters; the assistant refuses to explain a public tax rule.

A report path that works

Under each answer: sources as links, then "Report a problem". The click opens a short list (wrong fact, missing source, refused a fair request, other) and an optional note. The report stores the question, the answer and the sources shown, with the user's consent.

Key points

  • Some failures are detectable by code and some are visible only to a human reader.
  • A wrong answer produces no error in the logs, so you need user reports to find it.
  • Sources shown next to each claim let users check an answer in one step.
  • Put the report control next to the answer, where the doubt arises.
  • Over-refusals are a real failure and need a report path too.

Common mistakes

  • Believing that a fluent, confident answer has been checked.
  • Hiding the report control in a menu or settings page.
  • Counting only logged errors as failures.
  • Treating every refusal as correct safety behaviour.

Check yourself · 2 of 3

Why do hallucinated answers rarely show up in an error log?

Choose one answer

Check yourself · 3 of 3

Where is the best place for a "Report a problem" control?

Choose one answer

Practice items, not counted towards your mastery.

Start here