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.
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 (Gemini) extracts the parameters of a loan with a full audit trail. 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.
The proof of concept was run on 11 test agreements (128 pages). I delivered the client a report from the PoC and an implementation plan with a quote. The AI extracts and checks; a lawyer makes the call.
The documents are sensitive financial data and this PoC calls a cloud model, so a production version needs an anonymisation gate before the model and a data-processing agreement — which is what I then built into Kruczek.
Stack
Python · EasyOCR · Tesseract · Gemini · OCR pipeline