A confidence score on every field extracted
Document processing for operations paperwork
One pipeline that classifies incoming paperwork, extracts the fields operations teams need, and gives a confidence score for every field. Adding a new document type is a setup step rather than a new project.
2025 to 2026. Kartik Vij.
Tell me about your problem
Three or four lines are enough: the process, who works on it, and roughly how many hours a week it takes. I reply within two working days.
The problem
A home loan produces a great deal of paperwork: cheques, printed and handwritten; bank drafts and deposit slips; salary slips and account statements; sale deeds, powers of attorney and lease agreements, often in a regional language; and passbooks, rent receipts and utility bills. Every one of them is read by a person who types a few fields from it into a system, and the legal team alone deals with hundreds of document types that matter before a loan can be approved or paid out.
The reading is slow, the typing is error-prone, and the same document is often read twice by two teams that need different fields from it. None of that reading leaves anything behind. The next time a similar document arrives, the work starts again from the beginning.
The constraints
The documents vary in a way that defeats a single model. Handwriting on a cheque and a typed sale deed in a regional script are different problems. Many legal documents are scanned at low quality and run to dozens of pages. And the output has to be trustworthy enough for operations teams to act on, which means the system has to say not only what it read but how sure it is, field by field, so that a person checks the uncertain fields and trusts the rest.
It also had to be one reusable pipeline. Adding the next document type could not mean building a new system.
What I built
A single pipeline with a defined way to add a new document type: collect examples, define the fields that matter and what they look like, train the system to recognise the type, and set up the extraction of its fields. Every document that passes through is classified, routed to the extraction configured for its type, and returned as structured fields with a confidence score on each one. All examples and corrections collect in one place, so the models improve from the work the operations teams are already doing.
For the hardest class, property legal documents, the pipeline renders each page at high resolution, cleans it, and converts it to structured text before extraction, handling Hindi, Marathi, Gujarati and English. From a sale deed it returns the parties, the registration details and office, the property's address, area and boundaries, the sale amount, and a confidence score per field, in English, with an audit log of what it read and why.
The vision and language models underneath are tuned for these documents and run on the company's own infrastructure, so the data never leaves and the cost is computing time rather than a vendor's per-page fee. The output feeds the systems that need it: the title research system reads the deed fields it extracts, and a planned assistant for credit assessment will read statements and salary slips through it.
The result
Every extraction carries a confidence score per field, so the operations team reviews what the system is unsure about and trusts the rest. The first document types, cheques, slips, statements and deeds, are in production, and the same process for adding a document type is how the next hundred types will be added.
The economics, as a worked example rather than a measured result, because the system is new: a business that scans 50,000 pages a month and pays an extraction service around $0.05 a page spends about $2,500 a month, and that figure rises with every new document type and every busy month. This pipeline runs on one server the company already pays for, and adding a document type is a few days of setup rather than a new monthly bill.
What I would do differently
I would build the correction loop into the operations screen on the first day. Corrections are the training data, and when they are captured where people already work, the pipeline improves without anyone being asked to label anything. That loop arrived after the first document types were live, and the types that came after it improved faster.
If your business has a problem like this
Somewhere in most businesses there is a process that takes far too long, or a bill that nobody can explain. Write to me with the details. Within two working days I will tell you whether it is worth fixing, and what the smallest system to fix it would be.
