Your reading path
Start with the right questions.
From principle to practice
A small confusion ledger exposes the consequential errors
Open the worked exampleChoose the classification unit
A single PDF can contain an invoice, purchase order and delivery note. A page-level label and a packet-level label answer different questions. If the downstream workflow needs document boundaries first, record that splitting dependency rather than calling every page an independent complete document.
State whether classes are mutually exclusive or multi-label. A credit memo and invoice might look similar while describing different business effects. A packet can legitimately contain both. Define the evidence allowed at inference: pixels, extracted text, filename, linked records or an explicitly permitted combination.
Write neighboring-class rules and counterexamples
For each class, identify positive evidence and confusing neighbors. An invoice requests or records an amount due under the chosen business definition; a quotation proposes terms; a receipt can record a payment or goods receipt depending on context. Those meanings need project-specific examples rather than a universal visual shortcut.
The Document AI custom-classifier documentation is a primary example of user-defined document classes. Its product workflow does not settle your taxonomy or guarantee performance. Agree the business definitions before adopting a tool’s label names or suggested categories.
A small confusion ledger exposes the consequential errors
Illustrative test contains 50 complete documents: 20 invoices, 15 purchase orders, 10 credit memos and five documents outside those classes. Assume the reference labels were independently reviewed for this exercise. The model outcomes below are invented.
- Reference class
- Invoice (20)
- Predicted invoice
- 17
- Predicted purchase order
- 1
- Predicted credit memo
- 0
- Abstain / other
- 2
- Reference class
- Purchase order (15)
- Predicted invoice
- 2
- Predicted purchase order
- 12
- Predicted credit memo
- 0
- Abstain / other
- 1
- Reference class
- Credit memo (10)
- Predicted invoice
- 3
- Predicted purchase order
- 0
- Predicted credit memo
- 6
- Abstain / other
- 1
- Reference class
- Outside classes (5)
- Predicted invoice
- 2
- Predicted purchase order
- 0
- Predicted credit memo
- 0
- Abstain / other
- 3
Interpret errors with the correct denominator
The three named classes contain 45 documents; 35 receive their correct named class, giving 35/45 under a forced named-class correctness view that counts abstentions as not correct. Invoice predictions total 24, of which 17 are reference invoices, so illustrative invoice precision is 17/24. These measures answer different questions.
The outside-class abstentions may be desirable under a declared reject policy, but do not count all abstentions as successes. The three credit memos routed as invoices deserve explicit operational review. A single overall number could conceal that high-consequence confusion even if ordinary invoices perform well.
Design source separation around the desired generalization
If all invoices use one supplier template and all purchase orders another, a classifier may exploit template identity. Determine whether evaluation needs unfamiliar templates, organizations or periods. Preserve actual relationships and distinguish established group IDs from inferred ones.
GroupShuffleSplit can separate supplied groups, but it cannot decide the appropriate group meaning. If a strict template holdout leaves one class absent, report that limitation and seek additional sources instead of quietly breaking the boundary.
Review uncertainty and mixed inputs
Give reviewers a policy for incomplete scans, attachments, continuation pages, conflicting evidence and categories outside the taxonomy. Preserve unresolved cases and the reason for abstention. A forced label can make a dataset look tidy while teaching an unsupported distinction.
Evaluate both class assignment and routing behavior if an unknown outcome triggers human review. If a downstream extractor consumes only confidently routed invoices, its observed error population depends on the classifier’s decisions. Keep those stages separate so errors are not attributed to the wrong component.
Request a classification-ready pilot
Ask for exact input units, taxonomy definitions, supporting evidence, source-group identifiers, review states and examples of neighboring and outside classes. Include a consumer import test and a correction path when labels or document boundaries change.
A Business Datasets inquiry should identify the operational routing decision and unacceptable confusions, not just request labeled PDFs. Source availability and annotation feasibility need assessment against the taxonomy; a broad archive size alone cannot establish that the required distinctions are observable.
Questions buyers ask
Sources & research notes
Public documentation reviewed 2026-11-13. Provider descriptions and published terms are attributed below. Published facts are attributed to their sources. Worked files are labeled as illustrative or as an inspected editorial source; neither implies commercial dataset clearance.
- Create, use, and manage a custom document classifierGoogle Cloud · Reviewed 2026-11-13
Primary example of task-specific document classes and classifier preparation. No product version, performance or fixed sample threshold is promised here.
- GroupShuffleSplitscikit-learn · Reviewed 2026-11-13
Primary group-aware splitting reference. Group identities and the generalization question must be established separately.
