How to Sample AI Document Review Output for Errors

Legal Intelligence

How to Sample AI Document Review Output for Errors

To sample AI document review output, pull a random set of finished documents, check every extracted field against the source, and compute the error rate per field type. With 60 documents and zero errors found, you can say with about 95% confidence that the true error rate is below 5%. HiDocument analyses PDFs, Word files and images, and this method works on its output or on any other review tool.

A review sample is a small, randomly drawn set of completed documents that a person re-checks against the originals so you can estimate how often the whole batch is wrong. It is the difference between “the tool looked fine on the three files I opened” and a number you can defend to a client, auditor or partner.

Why does an AI review need sampling at all?

Because a model can be wrong in a way that looks exactly like being right. A misread date or a swapped party name is formatted perfectly, so nobody notices until it matters. Our earlier piece on hallucinated dates and facts in document analysis covers the mechanism; this article covers the control.

Sampling gives you three things that spot-checking does not:

  • A measured error rate instead of an impression.
  • A repeatable procedure someone else can run next month and compare.
  • A trigger that tells you when to stop trusting the output and review everything.

It also pairs with timing. If you have not yet measured your manual baseline, start with how to benchmark document review time before automation, because speed gains mean little if the error rate rises.

How many documents should you check?

For a quick, defensible answer, use the rule of three: if you check n randomly chosen items and find zero errors, the 95% upper bound on the true error rate is roughly 3 divided by n. This is a standard statistical shortcut, and it means sample size is driven by how small an error rate you need to rule out.

Error rate you want to rule outDocuments to check (zero errors found)Typical use
Below 10%30Pilot on a new document type
Below 5%60Routine monthly quality check
Below 2%150Client-facing summaries and reports
Below 1%300Dates, amounts and party names in high-stakes work

These figures assume you find no errors. If you find some, the math loosens and you need a larger sample or a fix before you can claim the lower rate. Small batches are different: if you only have 40 documents, check all 40.

How do you draw a sample that is actually random?

Number the finished documents, then pick them with a random number generator, not by eye. People unconsciously choose clean, short, well-formatted files, and that bias hides exactly the failures you are looking for.

Then stratify. A single random draw from a mixed batch can miss a rare but risky file type, so split the batch into groups first and sample each group:

  1. Separate native PDFs, scanned PDFs, Word files and photographed pages.
  2. Separate short documents from long ones. A 300-page file behaves differently from a 3-page one, as we explain in why long PDF analysis differs from short.
  3. Sample at least 10 from each group, more from the group you trust least.
  4. Record the group label next to every result so you can report error rates per group.

A blended average can look healthy while scanned files fail badly. Per-group reporting is the single most useful habit in this whole process.

What should you check inside each document?

Check fields, not impressions. Decide the list before you open a single file, and score each field as correct, wrong, or missing. Missing is its own category because omissions are the hardest errors to see.

  • Hard facts: dates, dollar amounts, notice periods, party names, governing law.
  • Clause presence: whether the output says a clause exists, and whether it actually does.
  • Citations back to the source: whether the quoted text sits on the page the tool says it does.
  • Summary claims: whether each sentence of a summary traces to the document.

For scanned inputs, add a read-quality check, because every downstream field depends on it. Our guide to why OCR fails on scanned PDFs lists the failure modes worth watching for.

When is a clean sample not good enough?

A clean sample is not enough whenever one missed error is more costly than the review time you saved. Sampling estimates an average. It does not protect you from the single wrong termination date in a batch of 500.

This is the part most quality guides skip, so here is a decision rule. Tier your fields by the cost of a single miss, and set the review depth by tier, not by batch size:

Field tierExampleReview approach
CriticalTermination date, liability cap, payment amountA person verifies every instance against the source
ImportantParty names, governing law, renewal termsSample at the 2% level, full review if any error appears
InformationalDocument type, tone, topic tagsSample at the 5% level

The reasoning is simple: sampling controls the rate of errors, and full verification controls the consequence of any one error. You need both, applied to different fields.

What do you do when the sample finds errors?

Classify each error, then decide whether it is a one-off or a pattern. A pattern is the same field failing in the same document group, and it means the problem is systematic, not random.

  1. Log the document, field, group, what the tool said and what the source said.
  2. Check whether errors cluster in one group, such as scanned files or one template.
  3. If they cluster, route that whole group to full human review until you understand why.
  4. Re-run a fresh sample after any change to inputs, settings or the question you asked.

Changing how you ask matters more than people expect. Vague questions produce uneven output, which is why we wrote seven prompt hygiene rules for document questions. If a single group keeps failing after you tighten the question, treat that group as outside what automation should handle alone. The limits of AI document verification explain where that boundary usually sits.

How do you run this with HiDocument?

The manual version is tedious at scale: open the original, open the output, compare each field, log the result. HiDocument reduces the setup work by producing structured extractions and summaries you can export and line up against the source. Bulk mode lets Pro users run up to 10 files at once, which helps when you are building a stratified batch. You can also use the document grader as a quick first look at a file before it enters the sample.

The checking itself stays with a person. HiDocument is a tool, not legal counsel, and a sample is evidence about the tool’s output, not a substitute for professional judgment on a specific contract.

What is the most common objection to sampling?

The usual objection is that sampling takes time and the whole point was to save time. That is fair, and the numbers are modest. A 60-document check with a short field list typically fits inside one working session, and it replaces an open-ended worry with a recorded result. If the sample finds nothing, you review less next month. If it finds a pattern, you found it on your schedule, not a client’s.

For a broader framework on managing automated systems responsibly, the NIST AI Risk Management Framework describes measurement and monitoring as ongoing practices, not one-time tests.

People Also Ask

Is a 10% sample the right size?

Not necessarily. Percentage samples scale badly: 10% of 50 files is 5, which tells you almost nothing, while 10% of 5,000 is more than you need. Choose sample size from the error rate you want to rule out, using the table above.

Should the reviewer know which output came from the AI?

Yes for accountability, but have them check against the source document, not against the AI output. Reading the output first anchors people and they miss omissions.

How often should you repeat the sample?

Repeat it monthly for steady work, and again whenever the document mix, file quality or question wording changes.

What is your next step?

Pick one recurring document type, draw 30 files at random, and score five fields against the source. You will have a first error rate by the end of the day. To produce the extractions you will check, create a free HiDocument account, which includes 10 analyses per month, and upload a batch. Compare plans on the pricing page if you need bulk mode.

Frequently Asked Questions

How many documents should I sample to check AI review accuracy?

It depends on the error rate you want to rule out. Under the rule of three, 30 documents with zero errors rules out an error rate above 10%, 60 documents rules out above 5%, and 300 documents rules out above 1%, each at roughly 95% confidence.

What is the rule of three in sampling?

The rule of three says that if you check n random items and find no errors, the 95% upper bound on the true error rate is about 3 divided by n. It is a quick approximation that lets you size a quality check without statistical software.

Is sampling enough for contract dates and payment amounts?

No. Sampling controls the average error rate, but one wrong termination date or payment amount can be costly. For critical fields, have a person verify every instance against the source document, and use sampling for lower-stakes fields.

Why should I stratify a sample of AI-reviewed documents?

Stratifying means sampling separately from each file group, such as scanned PDFs, native PDFs and long files. A single blended sample can look accurate while one weak group, often scanned documents, fails far more often than the rest.

What should I do if my sample finds errors?

Log each error with the document, field and group, then check whether errors cluster. If they cluster in one group, send that whole group to full human review, adjust your inputs or questions, and draw a fresh sample to confirm the fix.

Ready to analyze your own documents?

Upload any PDF, Word doc, or image — get 10 types of AI analysis instantly. Free to start, no credit card required.

Try HiDocument Free →

Related Articles