Document Lens
Turn messy documents into clean data.
Contracts, invoices, scans and forms become tables you can query. Show Corvic a few examples and it reads the rest.
Learns from a few. Runs on all of them.
Pick a document type and watch it work.
Invoices, statements and remittances, read against the contract that priced them.
The same typed fields off every document, each traced to its region.
Hover a row to see the region of the page it was read from.
subtotal + tax = amount_dueunit_price = contract_price
The arithmetic on the page is correct, but SKU-2210 is billed at list price. Amendment 3 to contract A-2231 prices it at 79.69, annotated by hand beside the line. At the contract price the amount owed is 1,610.15 — an overcharge of 48.15.
Getting the hard ones right
Clean invoices are easy. These are the ones that matter.
- 01
It looks at the page
Handwriting, stamps and layout all count.
- 02
It checks its own work
Totals must add up before a value is kept.
- 03
It says when it is unsure
You get a flag, not a quiet guess.
- 04
It reads any language
Dates and numbers are normalised.
- 05
The same answer next month
Fixed fields, repeatable results.
- 06
Versioned, not silently changed
Change the fields and old readings still hold.
Agree once. Run it on everything.
The cost per document stays low as volume grows.
- Read one nowA document at a time
An agent reads the pages properly. It catches the contradiction, reconciles the handwriting against the printed line, and tells you what it did.
- For the hard ones, and for anything a person is waiting on
- Reports repairs, contradictions and missing values
- Called from your app, your agents, or MCP
- Read the pileTen thousand documents
The same agreed fields, run over the whole corpus on a schedule. It does not reason — that is exactly why it is cheap enough to run on everything.
- One bounded model call per document, not a conversation
- Only reads what is new on each run
- Checks run in SQL over the extracted columns
You pick which serving you want per call, not per lens. Read the hard one properly while somebody waits, and read the other ten thousand overnight for a fraction of the tokens — off the same agreement, at the same version, producing the same fields.
Call it from your stack
One API call, from any system.
- 1
Show it a few documents
Two or three messy ones are enough.
- 2
Approve the fields
Fix what it got wrong, then lock it.
- 3
Point the pile at it
It reads the rest, and everything after.
# 1 · put a document inhttpx.post(f"{SOURCE_URL}/{doc}", content=pdf, headers=auth) # 2 · run the lens — the fields and checks are already agreedstarted = mcp.call_tool("start_extraction", {"lens_id": LENS, "document": doc}) # 3 · read what it wrotereading = mcp.call_tool("get_extraction", {"reading_id": started["reading_id"]})reading["fields"]["total"] # 1658.30, with the region it came from- One bearer token authorises the upload, the run and the read.
- Readings land in one table at an address that does not change.
- Fields come back as JSON, so a schema change bumps a version instead of breaking your reader.
- Failures are rows too — you can query which of last night's documents did not come back.
Where it fits
Documents in, tables out, ready for the rest of Corvic.