Business document classification: define document function and uncertainty Specify classification units, neighboring classes, mixed packets and an interpretable pilot confusion ledger for business documents. Business document classification assigns a declared category to a defined input unit. Decide whether the input is a page, document or mixed packet, and whether labels describe visual form, business function or workflow status. Include uncertain and out-of-scope handling. A useful dataset preserves the evidence behind labels instead of assuming that familiar logos, filenames or folder names establish document purpose. Choose 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](https://docs.cloud.google.com/document-ai/docs/custom-classifier) 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 Predicted invoice Predicted purchase order Predicted credit memo Abstain / other Invoice (20) 17 1 0 2 Purchase order (15) 2 12 0 1 Credit memo (10) 3 0 6 1 Outside classes (5) 2 0 0 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](https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.GroupShuffleSplit.html) 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. Should each page receive the document label? Only if that matches the task. A continuation page may lack enough evidence on its own, and a packet can contain several document types. Should unknown documents be forced into the nearest class? Define the reject or uncertainty policy explicitly. Forced labels can hide outside-class cases and create unsupported references. Is invoice precision the same as overall correctness? No. Precision conditions on invoice predictions. Overall or per-class correctness uses a different denominator and may handle abstention differently. Research method: Fiund research desk; public sources, explicit worked-example labels and project-specific availability review. Editorial contact: hello@fiund.com. Sources Create, use, and manage a custom document classifier: https://docs.cloud.google.com/document-ai/docs/custom-classifier GroupShuffleSplit: https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.GroupShuffleSplit.html