Free · Daily brief + weekly playbookDaily 60-sec AI Voice Brief + Weekly Production AI Agent PlaybookGet the brief →
ReleaseResearch Paper · For R&DHabr AI→ original

AlfaStrakhovanie Puts OCR Ahead of the LLM: Manual Processing Staff Falls from 350 to 160

AlfaStrakhovanie receives about 40 million documents a year: contracts, letters, scans and photos with no text layer. The company built an IDP orchestrator platform for them. First, OCR turns a scan into text. Then a local LLM pulls numbers, addresses and amounts out of non-standard contracts. Accuracy is 95–99%, so a human still makes the final decision. The takeaway: put the LLM after OCR, not in place of it.

AI-processed from Habr AI; edited by Hamidun News
AlfaStrakhovanie Puts OCR Ahead of the LLM: Manual Processing Staff Falls from 350 to 160
Source: Habr AI. Collage: Hamidun News.
Listen to article
Article Fact Sheet & Key Figures
ParameterDetails
Primary sourceHabr AI ↗
Editor-in-Chief
Key metric #1160 people now handle documents manually, versus 300–350 at the 2014–2015 peak
Key metric #2Paper is down to 16% of the flow; the rest is scans, photos and digital files
Cloud LLMs and OCR are bannedeverything runs on the company's own servers

AlfaStrakhovanie receives about 40 million documents a year: contracts, court letters, acceptance certificates, delivery notes, scans and photographs. Processing that volume by hand is impossible, so the company built an IDP orchestrator, an intelligent document processing platform that picks the right tool for each document itself. Here is how it works.

A scan of an acceptance certificate arrives with no text layer. First, OCR (optical character recognition) turns the image into text. Then a language model, an LLM, finds the numbers, amounts and line-item names in that text and passes them to the accounting system.

The effect shows in headcount: the manual processing center shrank from 300–350 people at the 2014–2015 peak to 160, even though document volume grew by an order of magnitude. Natalia Koretskaya, director of the operations department, described this in an interview published on the site of Smart Engines, an OCR vendor, so the partner's role is presented in a favorable light.

How it started and why an orchestrator became necessary

About 2 million of the 40 million documents are incoming letters. The company started with high-speed scanners at 400 points of presence and barcode recognition on contracts, which linked each paper original to a record in the accounting system. It then added QR codes, followed by machine learning to classify letters and determine their urgency. This matters: a court letter left unanswered can cost the company a case, and a request to terminate a contract must be answered within the legal deadline.

Once paper dropped to 16% of the flow, it became clear that going digital does not solve anything by itself. Scans and photos have no text layer, so the data must first be extracted. In 2025, the team decided that building a separate chain of operations for each document type was too expensive and unreliable. It built a single platform that different tools plug into. The prototype was built on accounting documents: acceptance certificates, delivery notes, invoices. For an insurer, this is a side stream, so trying an LLM on it carried less risk.

How the pipeline works: OCR, ML and LLM in sequence

The scheme looks like this:

  • If there is no text layer, OCR goes first. One page can hold several documents, rotated in different directions and even belonging to different clients, so they must first be separated, recognized and classified by type.
  • Standard forms supported by Smart Engines (acceptance certificate, invoice, delivery note) are recognized and parsed immediately, without a language model.
  • Non-standard documents — contracts, supplementary agreements, reports, statements, work orders — go through ML or LLM scenarios. The model reads the text, determines the document type and extracts the needed fields: numbers, addresses, amounts, item lists.
  • The result is packaged as JSON or XML, depending on what the next stage expects.

This is where the economics come in. An LLM makes it possible to launch a new document type quickly, with almost no template-specific work, but it costs more than specialized recognition. So a new type may first go through an LLM, and once the partner has ready-made support for it, the company can replace the model with a cheaper and faster tool. The orchestrator exists so that components can be swapped without redesigning the whole process.

There is also a security constraint. The company is tightly regulated and uses neither cloud LLMs nor cloud OCR: everything is deployed inside its perimeter. That means there is no pay-per-use pricing. The company needs its own compute, and the cost of hardware sets the entry threshold. OCR quality also directly affects the cost of the result: the cleaner the recognized text, the less work and fewer errors for the LLM.

What this delivered and where the limits are

One of the year's cases is court correspondence. The same letters arrive by email, through Russian Post and through Gosuslugi. The orchestrator finds duplicates, determines which letter arrived first and checks whether a reply has already been sent. This makes it possible to count deadlines correctly and avoid processing the same request twice. According to Koretskaya, this architecture can withstand a multiple-fold increase in volume without expanding staff, including lawyers.

Adding LLMs and developing the orchestrator over the past year saved "tens of millions of rubles." Over the next 12 months, the company plans nine projects covering 67 document types. The headcount of the manual processing center has barely changed in the past five years, and by her account there were no layoffs: growth is absorbed by automation.

Data extraction accuracy is 95–99%, depending on the quality of the source. Errors remain, so the company uses cross-checks and several levels of control, and a human makes decisions on sensitive data and financial transactions. The LLM is an assistant here: it extracts and structures data, while an employee decides whether to accept a document for accounting.

The practical takeaway for developers and product managers: put the LLM after OCR, not in place of it. Build in the ability to replace the model with a specialized tool when one becomes available. Calculate the cost of local hardware in advance if the cloud is closed to you. And keep a human in the loop as long as a model error costs more than a check. The figures in the article come from the company, with no independent verification.

Story

Key Questions Answered

How it started and why an orchestrator became necessary?

About 2 million of the 40 million documents are incoming letters. The company started with high-speed scanners at 400 points of presence and barcode recognition on contracts, which linked each paper original to a record in the accounting system. It then added QR codes, followed by machine learning to classify letters and determine their urgency. This matters: a court letter left unanswered can cost the company a case, and a request to terminate a contract must be answered within the legal deadline.

How the pipeline works: OCR, ML and LLM in sequence?

The scheme looks like this: If there is no text layer, OCR goes first. One page can hold several documents, rotated in different directions and even belonging to different clients, so they must first be separated, recognized and classified by type. Standard forms supported by Smart Engines (acceptance certificate, invoice, delivery note) are recognized and parsed immediately, without a language model.

What this delivered and where the limits are?

One of the year's cases is court correspondence. The same letters arrive by email, through Russian Post and through Gosuslugi. The orchestrator finds duplicates, determines which letter arrived first and checks whether a reply has already been sent. This makes it possible to count deadlines correctly and avoid processing the same request twice. According to Koretskaya, this architecture can withstand a multiple-fold increase in volume without expanding staff, including lawyers.

ZK
Zhemal Khamidun — Head of AI at Alpina Digital · MIPT (academic supervisor of the Tech Entrepreneurship department). Building AI products since 2019. Hamidun News is a pet project that grew into a production aggregator with 6,000+ readers.
✦ Unified AI Workspace · Nomad

Test Frontier LLMs & Autonomous Agents in One Workspace

Run Claude Opus 5.5, GPT-6, Gemini 3.1, and DeepSeek side-by-side in Nomad AI (nomadnet.ai) — unified model routing, deep research, and multimodal workflows under one subscription.

Try Nomad AI →Launch Nomad Agent
Jemal Hamidun

Editor-in-chief · Cite this analysis

Jemal Hamidun

Head of AI at Alpina Digital · Academic Supervisor of the Tech Entrepreneurship Department at MIPT

Head of AI & CPO of AlpinaGPT at Alpina Digital, Academic Lead of Tech Entrepreneurship at MIPT. Founder of Hamidun News and Vibe Academy.

Ready-to-paste citation for journalists, blogs and Telegram channels

Source: Hamidun News — AlfaStrakhovanie Puts OCR Ahead of the LLM: Manual Processing Staff Falls from 350 to 160 https://news.hamidun.com/en/news/16402/alfastrakhovanie-puts-ocr-ahead-of-the-llm-manual-processing

What do you think?
Loading comments…