Skip to content
IndexRequest a UIAboutContact

AI Confidence Highlighting

An AI answer where uncertain claims can be highlighted, with a note on each explaining what to verify.

Open alone ↗

AI prompt

PROMPT: PASTE INTO YOUR AI CODING TOOL
Clean UI mockup of an AI answer paragraph in a chat interface with some phrases marked by confidence: most text plain, one phrase with a dotted amber underline labelled Check, one phrase with a stronger red dotted underline labelled Low confidence, below the paragraph a small card explaining Sources disagree on this figure with a button View sources, a switch at the top labelled Show confidence turned on, light theme, flat modern style, calm and trustworthy. Negative: fake percentages, red alert banners, robots, text errors, clutter. Reduced motion: static design.

About this pattern

Definition

AI answers mix well-supported statements with guesses, and a smooth paragraph hides the difference. Highlighting claims by confidence, with a short note on why and what to check, helps people decide where to verify instead of trusting or distrusting the whole answer.

Purpose & UX principles

  • Mark uncertain claims with an underline and a clear label, not just colour.
  • Offer a short reason: no source found, sources disagree, or the figure is estimated.
  • Keep high-confidence text unmarked so the warnings stay meaningful.
  • Link each flagged claim to a way to check it.

Interaction states

  • A Show confidence switch and clickable claims with a detail panel.

Motion specification

  • Highlights appear instantly.
  • Reduced motion: nothing animates.

Responsive behaviour

  • Do not display fake precision such as a percentage unless it is calibrated.
  • Make the highlight optional so the answer stays readable.

Code

HTML
<div class="bx"><label class="sw"><input id="sw" type="checkbox" checked> Show confidence</label><p class="an" id="an"></p><div class="dt" id="dt" role="status">Select a highlighted claim for details.</div></div>

Related patterns

Citation Source Chips

↗
Citation Source ChipsAI & Conversational

AI Thinking States

↗
AI Thinking StatesAI & Conversational

AI Response Actions

↗
AI Response ActionsAI & Conversational