← Back to case studies
Case study — AI document analysis Delivered

AI that reads credit agreements — and shows its work.

A financial law firm assessing client credit agreements by hand — scanned contracts, schedules, annexes and BIK reports — now runs an on-premise OCR + AI pipeline that reads a file in a matter of minutes and can trace every extracted number back to the exact page it came from.

  • Reading a file dropped from hours to a matter of minutes, so the offer goes out the same day.

  • Every number is checkable — it links back to the page it came from.

  • Frontend, backend and AI stay inside the firm — client data never leaves (GDPR).

The problem

Assessing one client meant reading a stack of scans by hand: the loan agreement, payment schedules, annexes, a BIK report — mixed formats, mixed scan quality. Pulling out the numbers, reconstructing the schedule and estimating what the client could gain took hours per case and gated how fast an offer went out.

At ~50 agreements a month, the manual read was the bottleneck of the whole practice, and plain AI wasn't an answer the firm could accept — a lawyer can't put an unverifiable number in front of a client.

What I built

A hybrid OCR (EasyOCR/Tesseract) + LLM pipeline extracts every parameter of the loan with a full audit trail — what used to take hours now takes minutes. Each field carries its value, source document, page number, exact text snippet and confidence score, so a human verifies any number in seconds instead of re-reading the file.

On top of extraction: payment-schedule reconstruction, cost analysis, early-repayment and refinancing benefits, commission and insurance refunds, and flagging of legal catches and abusive clauses. The frontend serves a summary — legal risks and financial picture — ready to turn into a client offer the same day.

The documents are sensitive financial data, so the whole system — frontend, Python backend and the AI-model API — runs on-premise at the firm. Nothing leaves their infrastructure (GDPR).

Stack

Python · EasyOCR · Tesseract · LLM · OCR pipeline · On-premise

Book a free 30-min call