Skip to content

Lesson 21 ยท Safety, Privacy and Accuracy

Checking Accuracy and Reducing Errors

Understand why Claude can be wrong, reduce errors with grounding and honest uncertainty, and check facts, numbers, citations and code with a repeatable routine.

Claude can produce text that is fluent, specific and wrong. This is often called hallucination; see hallucinations for why language models do it. No magic sentence removes the risk, but you can lower it and build checks that catch much of what remains.

Where errors tend to hide

Area Typical problem Check
Recent events and products Training data ends at some point Search official sources
Names, dates, quotes, citations Plausible but invented or mixed up Open the original
Arithmetic over many items Slips and skipped rows Run code or use a spreadsheet
Code and APIs Methods or parameters that do not exist Run it and read the docs
Long documents Missed exceptions or conditions Ask for quotes and read around them
Images Misread text or wrong counts Look yourself
Your private facts It cannot know what you did not share Provide the source

Confidence in the wording is not a measure of correctness.

Reduce errors before they happen

  • Ground the answer in material you provide, and ask for quotes from it.
  • Allow "I don't know." State what to do when the sources do not answer.
  • Ask narrow questions and split large tasks.
  • Use tools for facts that change and for calculations.
  • Ask for assumptions to be listed separately from facts.
TEXT
Answer using only the policy in <policy> tags.
For each part of your answer, quote the sentence that supports it.
If the policy doesn't cover the question, answer exactly:
"The policy does not say."

Even with this prompt, verify. A model may quote correctly and still draw the wrong conclusion.

Decide how much checking you need

Match your effort to the cost of being wrong.

Python Choose a review level by risk

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

This is a teaching rule, not a standard. Adapt it to your field and your organization's policies. For health, legal, financial and similar matters, Claude's output is not professional advice.

A verification routine

  1. List the claims that matter. Ignore filler.
  2. Find an independent source for each: the original document, official documentation, your own database or a calculation.
  3. Open every citation and confirm that it exists and says what is claimed.
  4. Recalculate numbers.
  5. Run code with tests, including bad inputs.
  6. Mark what you could not confirm, and remove or label it.

Self-checks help, but they are not proof

Asking Claude to review its answer can catch mistakes, especially if you give it a checklist and the sources. A fresh conversation that sees only the draft and the sources avoids carrying over some assumptions from the first one. But two answers from similar models can agree and both be wrong. Agreement is a hint, not evidence.

Catch numbers that are not in the source

An automatic screen can flag suspicious items for a person. This one lists numbers in a summary that never appear in the source. Both texts are invented.

Python Flag numbers that the source does not contain

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

It catches the wrong 75. It would not catch "grew from 65 to 40 students", because both numbers exist. Automated checks narrow the search; they do not replace reading.

Bias and fairness

Being wrong is not the only failure. An answer can be one-sided, rest on stereotypes or work better for some groups than for others. When a task affects people, ask what is missing, test with varied names and backgrounds, and keep a person accountable for decisions about hiring, grades, credit, housing and the like. Check the law and your organization's rules before using AI in such decisions at all.

When you find an error

Correct it with specifics: "Row 3 says 75; the report says 65. Recheck all figures against the report." Then check the rest too, since one error suggests that there may be others. For serious or harmful output, you can use the product's feedback controls, remembering that sending feedback stores the related conversation, which may be used to improve models.

Test a repeated use, not one answer

If you use Claude for the same kind of task again and again, check the process. Collect real examples, including difficult ones, write down the correct results and count the errors by type. This shows where to look during review, for example "dates are usually right, but exceptions are often missed". Repeat the test when the prompt, the model or the input changes. Past good results do not guarantee the next one, so keep sampling live work.

Make checking easy

Ask for output that is quick to verify: a table with a source column, quotes next to conclusions, code with tests, calculations with each step shown and a separate list of uncertain points. A correct answer that takes an hour to check may be less useful than a shorter one that you can check in five minutes. When you pass work to others, say what was verified, how, and what was not. Readers can then decide how much to rely on it instead of assuming that everything was checked.

Common mistake: spot-checking only the claims that already seem doubtful. Errors often look perfectly ordinary. Sample ordinary-looking claims too.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. What does a confident tone tell you?

    Fluency and accuracy are different things.
  2. 2. How should you check a citation?

    Only the source itself can confirm it.
  3. 3. Two answers from the model agree. What is that?

    The same mistake can repeat.
  4. 4. What should set the amount of checking?

    Higher impact needs stronger verification.

Summary

  • Fluent answers can be wrong, especially about recent, precise or private facts.
  • Ground answers, allow uncertainty and use tools.
  • Verify against independent sources in proportion to the risk.
  • Keep people accountable for decisions that affect others.

Next: Privacy, Safety and Prompt Injection

Your progress is saved in this browser. No account needed.