At a glance
We want AI to give people room to think. The useful question is how much work remains when the answer arrives. This field guide follows an internal support assistant through retrieval, human review, correction and fallback, with a reproducible example that makes the hidden work visible.
- Time the path to an accepted outcome; generation, verification, correction and fallback all belong in the comparison.
- Test source sufficiency, citation support and consequence separately; one accuracy score cannot tell you what to repair.
- Choose routing policies on development data, then evaluate a frozen policy on unseen cases and inspect the worst slices.
1. Define what “finished” means
A beautiful demonstration can make an ordinary afternoon feel different. Someone asks a difficult question; the answer appears, and you see time opening up. The evaluation should help that possibility survive contact with the work.
Our example is an internal support assistant that retrieves procedures and drafts a response. The support agent still decides what to send. Define success before selecting a model: the response identifies the applicable procedure and version, supports consequential claims with accessible source passages, and gives a usable next action—or correctly escalates when the evidence cannot support one.
Inputs: permitted historical tasks, a versioned document snapshot, expected answers and escalation rules, qualified reviewers, and today’s workflow. Compare against that workflow and a plausible simpler improvement, such as better search. Freeze the acceptance rubric. Record access violations and unsafe instructions separately from ordinary answer defects.
2. Build cases that teach you where to repair
For each task, store its ID, slice, user permissions, source snapshot, necessary facts, supporting passages, acceptable alternatives and reasons to abstain. Include routine work, missing answers, conflicting versions and access-restricted documents. A retrieved page can be relevant while missing the fact needed to answer; Google Research’s work on sufficient context examines this distinction.
Grade three layers. Retrieval: did the context contain the required evidence? Attribution: does each cited passage support its attached claim, and are consequential claims covered? Outcome: is the final action correct for this user and situation? Record unsupported claims individually. A valid URL is not evidence of entailment.
In one case, procedure v3 says “Export the configuration before resetting.” The draft cites that exact passage but recommends resetting immediately. Retrieval passes; the recommendation fails attribution and outcome. If v3 never reached the model, investigate retrieval or version selection first. If v3 reached it and the answer still omitted the prerequisite, investigate generation and review. The same wrong answer can demand different repairs.
Split by customer, document family or incident when related cases could leak across sets. Tune prompts, retrieval and thresholds on development cases; reserve unseen cases for the frozen system. This applies the development/test separation described by Google. Repeatedly fixing against the test set turns it into development data.
3. Keep the stopwatch running
The work after generation changes the result.
↔ Scroll across diagrams and tables to inspect the detail.
| Case / slice | Baseline | Setup | Review | Correct | Fallback | AI total | Draft error | Score |
|---|---|---|---|---|---|---|---|---|
| A / Routine | 8.0 | 0.5 | 2.0 | 0.0 | 0.0 | 2.5 | None | 0.98 |
| B / Routine | 10.0 | 0.5 | 3.0 | 1.0 | 0.0 | 4.5 | Minor | 0.91 |
| C / Routine | 12.0 | 0.5 | 3.0 | 6.0 | 0.0 | 9.5 | Major | 0.88 |
| D / Routine | 9.0 | 0.5 | 2.0 | 0.0 | 0.0 | 2.5 | None | 0.85 |
| E / Exception | 15.0 | 0.5 | 4.0 | 0.0 | 15.0 | 19.5 | Major | 0.72 |
| F / Exception | 7.0 | 0.5 | 2.0 | 0.0 | 0.0 | 2.5 | None | 0.82 |
| G / Exception | 11.0 | 0.5 | 3.0 | 7.0 | 0.0 | 10.5 | Severe | 0.95 |
| H / Exception | 14.0 | 0.5 | 4.0 | 0.0 | 14.0 | 18.5 | Major | 0.61 |
16 minutes saved overall; 4 minutes lost on exceptions. E and H need the full baseline after an unsuccessful review. G takes seven correction minutes to remove a severe draft error. A fast first answer would hide both costs.
Inspect nodeDefine acceptance⌄
A support reply names the applicable procedure and version, cites a passage for consequential claims and gives a usable next action or a justified escalation.
Use the same tasks in both workflows, with independent operators or counterbalanced assignment so remembering an answer does not favour the second attempt. Match operator experience. Have a reviewer apply the acceptance rubric without knowing which system produced the result where feasible. Record disagreements and adjudicate them.
The figure uses eight paired observations. Its accounting is T_AI = setup + review + correction + fallback, and saving = T_baseline − T_AI. The stages do not overlap. If an attempt fails, its spent time stays in the ledger before fallback begins. If the final result remains unacceptable, mark failure and retain elapsed time; never count an early wrong answer as a fast success.
Here, 86 baseline minutes become 70 assisted minutes: 16 minutes saved, or 18.6%. Generation and setup consume only four minutes. The remaining 66 minutes explain what the demo left out. Measure elapsed time and active labour separately in a real pilot; overlapping model waits cannot simply be charged as staff labour.
4. Refuse to average away the decision
Define severity before inspection. In this example, minor means harmless wording repair; major means an unusable answer or wrong procedure; severe means a potentially dangerous instruction or disclosure. Track draft errors and errors escaping human review separately. A reviewer catching every error in our fixture is an assumption, not evidence that review will work in production.
The balanced sample saves five minutes per routine case but loses one per exception. If actual traffic is 80% routine, an assumed weighted saving is 0.8 × 5 + 0.2 × (−1) = 3.8 min/case. At a 50/50 mix it is two minutes. Estimate deployment weights independently and report each slice’s count; keep deliberately oversampled hazards visible outside that weighted average.
The lab’s paired bootstrap resamples whole cases and gives a 95% percentile interval of −1.00 to 4.62 minutes for the unweighted mean saving. Eight cases establish no real benefit. With real data, resample independent customer or incident groups when appropriate; uncertainty grows when cases share a cause.
5. Evaluate the policy, including its refusal path
A stricter score can leave the worst error in.
↔ Scroll across diagrams and tables to inspect the detail.
Severe draft remains No severe draft in this fixture
| Route when score ≥ | Coverage | Total min | Draft errors / routed | Severe drafts |
|---|---|---|---|---|
| 0.00 | 100.0% | 70.0 | 5 / 8 | 1 |
| 0.80 | 75.0% | 62.0 | 3 / 6 | 1 |
| 0.90 | 37.5% | 77.0 | 2 / 3 | 1 |
| 0.96 | 12.5% | 84.0 | 0 / 1 | 0 |
| 1.00 | 0.0% | 90.0 | 0 / 0 | 0 |
Case G scores 0.95 and still contains a severe error. The score is a ranking signal, not a correctness probability. At t=1.00 all cases use the baseline, but scoring overhead adds four minutes. Turning the feature off would cost 86 minutes.
Inspect nodeScore every case⌄
Pay half a minute per task before routing. A score at or above the threshold opens the draft for review. A lower score sends the task to full baseline processing.
A routing threshold changes who receives a draft and who goes directly to the baseline. Our synthetic score is available before review; it is neither model confidence nor a probability. The table exposes the entire policy cost, including scoring on rejected cases.
At 0.80, six cases reach review and total time falls to 62 minutes. At 0.90, total time rises to 77 minutes and the severe draft remains. More selective is not automatically safer. The 0.96 policy happens to avoid every defective draft here, while routing only one case. That is far too little evidence to justify automated sending.
Use a sweep like this on development data to choose a policy under agreed constraints. Then lock it and evaluate on the held-out set. Treat access checks and action permissions as application controls, not score thresholds. OWASP’s excessive-agency guidance supports limiting tool permissions and requiring approval for consequential actions.
6. Reproduce it, then replace the cases
Download the Python evaluation lab. It uses only the standard library and embeds every row shown above. Save it locally and run:
python3 ai-evaluation-lab.py
python3 ai-evaluation-lab.py --threshold 0.8 --routine-share 0.8
python3 ai-evaluation-lab.py --csv > cases.csv
The first command reproduces 86 versus 70 minutes, the paired interval and all routing policies. The second reports 62 assisted minutes and 4.20 weighted minutes saved per case under the stated traffic assumption. CSV export gives you a starting schema; replace the embedded fixture with measured cases and retain your source and grading records alongside it.
Before a pilot, record the chosen scope, minimum useful time saving, severity limits, review owner, fallback capacity and stop condition. Convert active labour saved into money separately, then subtract model, integration and maintenance costs. A latency saving alone is not a return-on-investment calculation.
During the pilot, sample completed work to look for errors reviewers missed. Record document, prompt, retrieval and model versions with each result. If inputs or those versions change, rerun the affected evaluation and check the live slices. A result from yesterday’s corpus does not establish the behaviour of today’s system.
The result to take forward is specific: which people gain time, on which work, with which remaining failure modes. That gives the initial excitement somewhere to go—and gives the team an experiment it can honestly believe in.
Then decide how many real cases you need. Eight cases teach the arithmetic. They cannot support a rate. If a severe error occurs in 1 of 100 real cases, a set of 50 cases contains none of them about 61% of the time.
The rule of three gives the bound. After a number of cases with no severe error, the 95% upper limit for the error rate is about 3 divided by that number. Zero in 50 cases allows a rate of up to 6%. Zero in 300 cases allows up to 1%. Size the case set from the rate you must exclude, and state which rate the evidence can exclude.