Classifying 1.4 lakh documents with a vision model that never left the building
A backlog of 1.4 lakh scanned documents sorted into their categories by a Llama vision model running on an in-house server. No cloud service, no API, no file leaving the local network. Every classification carries a confidence score, and anything below the threshold goes to a person.
- Client
- Organisation with a large backlog of mixed scanned documents
- Documents classified
- 1.4 lakh
- Files that left the network
- 0
- External AI services used
- 0
- Primary classifier
- Llama vision
Scanned pages of many kinds, sorted into their categories.
Inference and storage both on the in-house server.
No cloud model, no API key, no vendor platform.
Run locally, with a confidence score on every answer.
The organisation had 1.4 lakh scanned documents of many kinds: forms, letters, invoices, statements, certificates, drawings, handwritten notes. They needed to be sorted into their categories before anything else could be done with them, and sorting by hand at that volume was not realistic.
The constraint ruled out the obvious answer. The material was sensitive, and the brief was explicit: no online AI service, no cloud platform, no third-party API. Nothing could leave the local network. Whatever classified the documents had to run on the organisation’s own server, inside their own building.
We treated the constraint as the design, not an obstacle. A vision model reads a page the way a person does, from the layout, the stamps, the tables and the handwriting, not only from the text, which matters when scans are uneven and the OCR is unreliable. A Llama vision model, run locally on the in-house server, became the primary classifier.
We did not ask the model to be right every time. We asked it to say how sure it was. Every classification comes with a confidence score, and a threshold decides what happens next: above it, the category is accepted; below it, the document goes to a person. Human input is spent only where the model is uncertain.
The pipeline runs entirely on the in-house server. Documents are read from local storage, passed to the model in batches, and written back with a category and a score. No request goes out to any provider, and the server needs no internet access to do its work.
A review console shows each batch with its categories and confidence, and a queue of everything that fell below the threshold. A reviewer sees the model’s suggestion and the alternatives it considered, then confirms or changes the category in a click. The threshold is a setting, so the balance between automation and review can be shifted as trust in the model builds.
All 1.4 lakh documents sorted into their categories with no file leaving the local network and no external service involved. The model handled the clear cases on its own; people handled the ambiguous ones, with the model’s suggestion in front of them rather than a blank form.
The organisation now has a classifier it owns and can keep running on its own hardware, with a review loop that shows exactly where it is uncertain.
A locally run model does not have to match a cloud service to be the right choice; it has to be good enough on the clear cases and honest about the rest. The confidence score is what makes that work. Showing reviewers what the model considered, not just its answer, made review faster and made the model’s mistakes easy to spot and correct.
Tell us what you are trying to make usable.
Paper archives, scanned PDFs, handwritten forms, scattered documentation or a workflow no existing product fits — describe the problem and we will tell you honestly what is achievable.
No form-filling marathon. Describe the problem and the goal; we will reply with what is and is not achievable.