Human Review and Confidence Calibration
All design guidance: the docs do not prescribe a review policy. This is the standard answer pattern.
Do not trust raw self-reported confidence (design guidance)
A model can emit a "confidence: 0.92" field, but that number is not calibrated by default. Treat it as a signal only after you have measured how often outputs at each confidence level are actually correct against labelled data.
Calibrate against ground truth
- Build a labelled validation set (human-verified answers).
- Run the pipeline and record, per item, the confidence and whether it was correct.
- Compare confidence buckets to actual accuracy; choose thresholds where accuracy meets your requirement.
- Re-check periodically; accuracy drifts with new data, prompts and models.
Field-level, not just document-level
Averages hide problems. Track accuracy per field and per document type (a model may be 99% accurate on invoice totals and 80% on handwritten dates). Route review by field risk: money and dates get stricter thresholds than free-text notes.
Stratified sampling for review
Do not review a random 5% and call it done. Stratify:
- by confidence (all low-confidence items, plus a sample of high-confidence ones to catch overconfidence);
- by segment (document type, language, source, customer tier);
- by risk (high-value or irreversible items get higher review rates).
Sampling high-confidence items is how you detect silent errors.
Routing (design guidance)
| Item | Route |
|---|---|
| Passes validation and high calibrated confidence | Auto-accept (sampled audit) |
| Fails a validator (4.4) | Retry or human review |
| Low confidence, or field marked missing | Human review |
| High impact regardless of confidence | Human approval (5.2) |
Useful related mechanisms
defer in a PreToolUse hook pauses a call for later human decision; structured outputs let you add confidence and source fields, but schema validity does not make them accurate (4.3); citations give verifiable evidence (5.6).
Exam traps
- Trusting an uncalibrated confidence score.
- Reporting one aggregate accuracy that hides weak segments.
- Reviewing only low-confidence items, so confident errors go unseen.
- Random sampling that under-represents rare but costly cases.
- Calibrating once and never again.
References
- Hooks in the SDK — checked Oct 16, 2026
- Structured outputs — checked Oct 16, 2026
Check your understanding
The model says 95% confidence on all invoices. How do you know it is trustworthy?Show answerHide answer
Answer
Measure accuracy against labelled data per confidence level and field.Why sample some high-confidence outputs for review?Show answerHide answer
Answer
To detect overconfident, silent errors.Aggregate accuracy is 97%. Why might that mislead?Show answerHide answer
Answer
A segment such as handwritten forms could be much worse.