Logley
Knowledge extraction
Documents in, checkable records out. The language model is the last resort here, not the default — and a value only gets committed if the page it came from actually contains it.
The pipeline
Text
Digital PDFs are read directly; scans go through OCR locally — Tesseract, with PaddleOCR for the harder ones.
Classification
Nine types: invoice, order, consignment note, customs declaration, delivery note, contract, receipt, correspondence and other. Each carries a review threshold, configurable per installation.
Extraction
The ladder below — deterministic tiers first, the model last, and the key fields checked against the page.
Indexing
Content is chunked and embedded into your private index, which is what search and answers read.
Deterministic first, model last
“The model is a last resort” is a structural property here rather than a policy anyone has to remember. Extraction runs as a ladder:
Deterministic tiers run first
Structured parsers and format-specific readers that know what an invoice or a customs declaration looks like.
The model is the base layer
It supplies only what no deterministic tier could read — not the default that everything runs through.
The lower tier wins
Deterministic results are overlaid on top, and each field records which tier produced it.
So a field is never silently a guess: the record knows whether a parser or a model put it there.
Every committed value is grounded
The key fields of a document (amounts, dates, parties, tax ids and reference numbers) are checked against the page. For money that rule is literal: the amount must equal a number printed on the page, to within a cent and ignoring sign. A figure the model produced but the page does not contain is flagged and kept out of the invoice figures.
When the evidence is not there, the extractor flags the value, lowers its confidence and sends the document for review with the reason, instead of passing something plausible through. Whether such a flag also holds the whole document back is a per-organization setting that starts in an observe-only mode, because the right strictness depends on how clean your paper actually is.
Problems arrive as needs-attention flags that state what is wrong and how to fix it (a missing exchange rate, an overdue payment), so review is a queue of decisions rather than a hunt.
The rule field by field, and what happens to a value that fails it: why a value is never a guess.
Corrections on the record
What happens when someone corrects a field? The new value replaces the old one, and the edit history keeps both values, who changed it and when. On an invoice, the amount, currency and dates the finance pages use follow the correction. Correcting a document’s type also gives the classifier a training example. Re-extraction is one action on the document, and re-processing runs on a whole selection.
What it will not do
- It leaves fields empty on purpose. Distrust is the design: where the evidence is not on the page, the value is flagged with the reason and the document goes to review. If you want every box filled regardless of whether the document supports it, this is the wrong product.
- Nine types, and everything else is “other”. A document outside the classified set is still ingested, still searchable and still readable, but it does not get a type-specific record.
- It does not decide what a document means for your business. It reads what the page says. Whether that invoice should be paid is a rule you write, on the automation side.