Internal R&D Prototype

P.02 / 2026

AI Engineering

Paperwork, parsed

A document-intelligence prototype for messy operational paperwork.

Document intelligence pipeline schematicScanned documents are classified, fields extracted, values validated, and uncertain results routed to human review. A conceptual diagram, not a screenshot.R&D / DOCUMENT INTELLIGENCESOURCE / FIELD / REVIEWCLASSIFYEXTRACTVALIDATEREVIEW QUEUELOW CONFIDENCEAUTO / ELIGIBLERULES PASStype + page groupinglayout + languagedeterministic checksFIELDvalue · source region · confidence · validation · resolutionTRACE

Conceptual schematic / not a screenshot.

OCR, extraction, validation, and a review queue that does not hide uncertainty. Built around the exceptions, not the clean scans.

Type
Internal R&D
Discipline
AI Engineering
Status
Prototype

Project note.

Most document demos use clean, machine-readable PDFs. Operational paperwork is not clean. It is photographed at an angle, stamped, handwritten on, or split across two files that belong together.

This prototype explores a pipeline that treats uncertainty as a workflow state. The system extracts what it can, validates against rules, and routes the remainder to a reviewer with the source and the model evidence side by side.

01 Problem

What made itdifficult.

The interesting part is rarely the happy path. These are the conditions that shaped the work.

The hard part is not reading text. It is deciding which text belongs to which field, which values are plausible, and when a human should look. A high-confidence extraction can still be wrong because the document type was misclassified.

The review interface is therefore part of the pipeline, not an afterthought. A reviewer needs to see the original page, the extracted region, the proposed value, and the reason it was flagged.

02 Constraints

The edgeswere the design.

A constraint is only useful when it eliminates an option. These are the boundaries the project had to respect.

  • Scanned and photographed inputs, including handwriting and stamps.
  • No document leaves the local environment in the base configuration.
  • Every extracted field retains a source region.
  • Uncertain fields must route to review, never disappear.
  • Document types and validation rules must be configurable.

03 Architecture

The system,in parts.

A component view. The diagram above is a conceptual schematic; this is the responsibility map behind it.

  1. 01

    Ingest

    Image correction, page segmentation, and content hashing.

    P.02.1
  2. 02

    Classify

    Document-type detection and page grouping before extraction.

    P.02.2
  3. 03

    Extract

    OCR, layout understanding, and field-level structure.

    P.02.3
  4. 04

    Validate

    Deterministic checks against totals, dates, formats, and business rules.

    P.02.4
  5. 05

    Review

    A queue with source preview, confidence, and a resolution trail.

    P.02.5

04 Decisions

What we chose,and why.

Architecture is the set of decisions that are expensive to reverse. These are the ones that shaped the project.

D.01

Confidence is a workflow state

A confidence score is not a cosmetic label. It determines routing, review priority, and whether an extracted field can enter the downstream system automatically.

D.02

Layout before language

Layout and reading order are resolved before field extraction. A language model given a flattened page is working with damaged evidence.

D.03

The reviewer sees the source

Every proposed value is anchored to a page and region. Reviewers can compare the model output with the original without switching tools.

D.04

Validation is deterministic where possible

Totals, dates, tax identifiers, and required fields are checked with code. The model does not get to overrule arithmetic.

05 Method

How itevolved.

A short account of the work, including what changed direction.

The first version extracted every field on every page. That made a good demo and a poor tool. The prototype now begins with document classification and a smaller field contract per document type. Fewer, better-defined extractions produced a review queue people could actually finish.

Next work focuses on reviewer feedback capture: turning corrections into evaluation data without asking reviewers to maintain a dataset as a second job.

Artefacts

  1. Artifact 01

    Page manifest

    A structured record of pages, document groups, and detected regions.

  2. Artifact 02

    Field contract

    Per-document-type schemas, validation rules, and review thresholds.

  3. Artifact 03

    Resolution trail

    The reviewer action, corrected value, and reason for every exception.

Next / Project inquiry

RX / INQ

Have something worth engineering?

Context Project / Paperwork, parsed
First step A conversation
Format Written brief or call

Tell us what you are building, what is getting in the way, and what good looks like. We will reply with a considered next step.