Search

The 808 Books / Ready for Real / Chapter 6

Testing with real data, safely

Forty hand-picked examples prove the AI can work. Only real, messy cases prove it does.

The short version

  1. Build a test set ("evals") from real cases, including the failures. Twenty to fifty is enough to start.
  2. Test against real data without exposing it: masked copies, contracts that stop the provider keeping or training on your data, and access logs.
  3. Re-run the tests every time anything changes: the prompt, the model, the documents or the tools.

By the numbers

20 to 50simple tasks drawn from real failures is a great start for an eval set, per Anthropic's engineering guidance (Anthropic, January 2026)

98%of Morgan Stanley's advisor teams use its AI assistant, which was tested with an eval framework before every use case went live ([OpenAI](https://openai.com/index/morgan-stanley/); vendor case study)

73%of organizations name data privacy and security as the AI risk they worry about most (Unite.AI, reporting Deloitte 2026)

01 Build the test set from real life

An eval is a test: give the AI an input, then check its output against what good looks like. Teams put this off for months, convinced they need thousands of examples before they can start. Anthropic's guidance is the opposite: 20 to 50 simple tasks drawn from real failures is a great start (Anthropic). Pull them from support tickets, complaints, the cases your experts argue about and anything the pilot got wrong.

Three rules from the same guidance make tests useful:

  • Unambiguous. Two experts should independently reach the same pass or fail verdict on each task.
  • A known good answer. Write a reference answer for each task, so you know the task is solvable and the grading works.
  • Both directions. Test cases where the AI should act and cases where it shouldn't (refuse, escalate or say it doesn't know). One-sided tests produce one-sided behaviour.