Glake
Get in touch
Development · Manufacturing

AI-powered document processing

The system reads scanned UPDs, VAT invoices, and waybills, enters the details into an Excel register, and flags any field it couldn’t recognize with high confidence. It runs on the company’s own server, so documents are never sent to outside services

Corestone
Corestone · source documents processed with no manual entry
Discuss a similar projectAll case studies
AI-powered document processing
96.7–100%
UPD field recognition accuracy in acceptance testing
100%
match rate on “Document color” and “Stamp” fields
2
recognition levels: text and image
3
document types: UPDs, VAT invoices, and waybills
01 · The challenge

What the client needed

Since 2013, Corestone has helped manufacturers get their products listed in the registry of Russia’s Ministry of Industry and Trade. A listing confirms that a product is made in Russia and opens the door to government contracts and incentives. Corestone runs a lot of projects, and each one generates a large volume of accounting source documents.

These are the UPDs (universal transfer documents), VAT invoices, and waybills that come with every delivery. The accounting team compiles them into registers that capture each document’s number, date, supplier, buyer, contract reference, amount, stamps, EDI markers, and line items. The documents arrive as scans of varying quality.

Entering all of this by hand was slow, and with this many documents, it was easy to get an amount, number, or date wrong.

There was one more constraint: the documents are sensitive and can’t be sent to outside cloud services.

So Corestone needed the register to be generated automatically, with all processing kept inside its own infrastructure.

What stood in the way
Manual entry
Accountants copied details and line items from hundreds of UPDs, VAT invoices, and waybills into registers by hand.
Entry errors
At this volume, it’s easy to mix up an amount, number, or date — and hard to track down the mistake later.
No cloud allowed
The documents are sensitive, so they can’t go to outside cloud services for recognition. Processing has to stay in-house.
02 · The solution

What we built

01

Registers with no manual entry

An employee points the system to a folder in the company’s file storage, and it recognizes the documents and builds an Excel register — no downloading or uploading files. Documents merged into one file are split and processed one by one.

02

Accurate even on poor scans

Recognition works on two levels, so results stay accurate even on rotated or faded scans. Fields the system can’t read are flagged, not guessed.

03

Nothing leaves the company

The system runs on the company’s own server, so documents are never sent to outside cloud services.

03 · Demo

How documents move through the system

Here’s the employee’s workflow, step by step: from logging in to getting the finished register.

Starting a run: folder link and processing mode
Starting a run: folder link and processing mode
Step 1

Log in and start

The employee opens the app in a browser and signs in with a username and password. Access depends on role: admins see every run, regular users see only their own. In the “UPD recognition” section, the employee pastes a link to the document folder in storage, picks a processing mode, and clicks “Start processing.”

Job status while processing runs
Job status while processing runs
Step 2

Tracking progress

The system pulls the documents from storage and processes them one at a time. The screen shows how many documents are in the folder and how many are already done. Each document goes through recognition, type detection, and stamp detection in turn.

Preview: original and new file names, supplier, number, and date
Preview: original and new file names, supplier, number, and date
Step 3

Preview

When processing finishes, a preview of every recognized document opens. Scroll the table to the right to see each document’s type, number, date, supplier, buyer, contract reference, amount, stamps, e-signatures, and line items.

History of processed batches with links to results
History of processed batches with links to results
Step 4

Register and history

The register is exported from the preview to Excel and saved to a results folder in storage, next to the renamed documents (file names follow the company’s template). The “History” section keeps every past run with links to its results, so you can go back to any processed batch.

More screenshots

Document type, stamp, buyer, and contract reference
Document type, stamp, buyer, and contract reference
Amount, document color, stamps, EDI markers, and e-signatures
Amount, document color, stamps, EDI markers, and e-signatures
Line items: name, quantity, and amount
Line items: name, quantity, and amount
04 · Tech stack

Stack and approach

Python + FastAPI
The system’s core: runs processing and serves results to the web interface
Tesseract and Docling
Level 1 recognition: extract text and tables from the scans
LLM
Level 2 recognition: reads the details straight from the image where the text didn’t come through cleanly
OpenCV and pdfplumber
Scan prep: deskewing, rotation, and PDF parsing
Nextcloud and Docker
The company’s document storage, plus the containers that run the system on its server

Also used: SQLite — run history · openpyxl — building the Excel register

How it works

Employee · web app
Login with username and password
role-based permissions
Folder link
in Nextcloud storage
Processing status
and preview
Company server · Docker · documents never leave
Scan preparation
OpenCV, pdfplumber
Level 1: text and tables
Tesseract, Docling
Level 2: reading the image
LLM, for poor scans
Document analysis
type, stamps, signatures
Output · Excel and history
Excel register
openpyxl
Results folder in Nextcloud
next to the renamed documents
Run history
SQLite
05 · Results

What the client got

Accounting now processes hundreds of documents with no manual entry, and sensitive data never leaves the company.

96.7–100%
UPD field recognition accuracy in acceptance testing
100%
match rate on “Document color” and “Stamp” fields
0
documents sent outside the company
Rerunning a batch gives the same result
Fields the system can’t read are flagged, not guessed
06 · For your business

Who else this works for

A similar setup fits any team that retypes data from documents into spreadsheets or business systems and can’t let those documents leave the company.

Accounting and finance teams
Entering details from UPDs, invoices, and acceptance certificates into registers, checking stamps and signatures, and exporting to Excel or an accounting system
Logistics and warehousing
Processing waybills and shipping documents, building a delivery register, and flagging documents that need review
Legal teams
Parsing scanned contracts and appendices, pulling out parties, amounts, and deadlines, and building a contract register
Banks, insurers, and leasing companies
Entering data from client documents in-house, without sending anything to outside services

We build solutions like this around your needs: turnkey AI products, AI agents and automation, integrations, and data.

Our services
Get in touch

Want results like these?

Tell us about your project — we’ll talk it through and show you how to make this work for your business

We’ll set up a short call
We’ll scope your task and estimate it within 1 business day
You’ll get a clear implementation plan and transparent pricing
Alexander Yarygin
Founder, Glake
Replies personally
What can we help with?
Select one or more
or
Chat on LinkedIn

More case studies

AI sales automation for new-build apartments
DevelopmentReal estate

AI sales automation for new-build apartments

Application intake, document scanning, and reservations — no manual data entry

Tera
AI operations monitoring agent
DevelopmentMarketplaces

AI operations monitoring agent

Pulls Wildberries metrics, computes KPIs, and flags sales and ad anomalies

MPstats
AI sales assistant for technical products
DevelopmentB2B trade

AI sales assistant for technical products

Picks gases and equipment by spec, finds alternatives, and creates CRM deals in three channels

S-GAS
All case studies