Skip to content

Trust and safety

What confidence may mean, what to do when sources disagree, and the rules behind an assistant that acts.

The parts in Tattva show people what an assistant is doing and ask before it acts. That is half the job. The other half happens in your app, out of sight: what the assistant is allowed to do, what it is told to ignore, and what is checked again before anything runs. This guide covers both halves.

A clear approval screen does not make an action safe on its own. Use the parts for what people see, and the rules below for what your app enforces.

What confidence may mean

A confidence label tells people how much to rely on an answer. It only helps if it means something real. Decide what it measures before you show it, and write that down where your team can see it.

Good things to measure

  • How well the sources support the answer: how many agree, and how close they are to the claim.
  • How much of the question was covered: everything was found, or some parts were missing.
  • A measured success rate for this kind of task, if you have tested it on real cases.

Never use

  • The model's own rating of itself ("I am 90% sure"). Models are often sure and wrong.
  • A percentage you have not measured. A number looks precise, so people trust it more than words.
  • One label for everything. Being sure about a date and sure about a medical fact are different claims.
  • Use words, not a percentage. shows Low, Medium or High with a short reason. Say what to check next.
  • Hide it when you have nothing real to show. No label is better than a label that guesses. Leave ConfidenceIndicator out until your signal comes from sources or tests.
  • Show evidence and uncertainty apart. "Two sources agree" and "I could not find your booking" are different messages. Keep both visible.
  • Test what people understand. Ask a few users what High means to them. If they read it as "this is definitely right", change the words.

See the pattern .

When sources disagree

Who decides what

Rules for an assistant that acts

Risk is more than undo

Screens the assistant builds

Try to break it

Build your next AI screen with Tattva.

Free and open, with the code. Start in one line.

Get started