Automated Bank Statement Verification for Credit Risk Using Open-Source LLMs & RAG: 70%+ Less Manual Review
An on-premise RAG pipeline with open-source LLMs extracts and validates bank statement data for credit checks, keeping sensitive data in-house.
Quick Summary
The Case at a Glance
Challenge
Underwriters checked hundreds of bank statements a week by hand, and compliance rules meant data could not leave the institution.
Solution
Open-source LLMs and a RAG pipeline, running fully on-premise, extract statement data and check it against credit rules.
Results
Manual review time cut by more than 70%, with faster vetting, lower cost and full data privacy.
The Challenge
What Was Getting in the Way
Validating customer bank statements for credit eligibility meant several checks: minimum balance requirements, monthly transaction patterns and account activity over the last three months or more. Underwriters copied data from scanned statements into spreadsheets, filtered dates and values by hand and applied custom logic, across hundreds of applications every week.
The process was slow, costly and inconsistent. Manual date and value checks caused errors, statements came in many different formats, and nothing cross-checked transaction continuity automatically. On top of that, compliance rules required all data to stay on-premise, which ruled out most cloud AI services.
The institution needed an automated way to interpret structured and semi-structured financial documents while respecting strict data privacy rules.
Pain Points
Hundreds of statements checked by hand every week
Errors from manual date and value checks
Many different statement formats
No automatic check of transaction continuity
Data could not leave the institution's own systems
The Solution
How Tatras Built It
Tatras engineered a GenAI-powered document vetting system using open-source LLMs and a RAG pipeline to extract, validate and verify the key eligibility signals.
Reading any statement
Document parsing combined with embeddings extracts transactions, balances and account details through a retrieval-augmented generation pipeline, across layouts from PDFs to scanned images. Regular expressions normalise the many date formats, so transaction histories are validated precisely.
Checking against credit rules
A validation engine checks the extracted values against the institution's credit rules, such as the three-month average balance and transaction frequency, using open-source LLMs (Llama 2 and MixTAO) with prompt engineering for validation.
Private by design
All processing stays within the institution's own infrastructure, with audit and access controls. A FastAPI layer processes uploaded statements in real time and returns a traceable decision flag, so reviewers handle only the exceptions. Using open-source models also kept costs well below commercial alternatives.
The result: manual review time reduced by more than 70%, faster and more efficient vetting with robust handling of varied formats, significant cost savings from open-source LLMs, and an on-premise deployment that meets internal compliance and security standards.
Results
What Changed
70%+
Less manual review time
Faster vetting
Robust handling of varied formats
Lower cost
Savings from open-source LLMs
Fully private
On-premise, meeting compliance standards
Figures: manual review time reduced by over 70%, as reported in the Tatras case study record; other outcomes are not quantified.
Tech Stack
What It Runs On
- Open-source LLMs (Llama 2; MixTAO)
- Prompt engineering for validation
- Transaction classification
- Entity extraction
- Embeddings
- RAG system
- Regex for date validation
- PyTorch
- TensorFlow
- FastAPI
- LangChain
- LlamaIndex
- Fully on-premise, private data pipeline with audit and access controls
Tap any layer to see its full stack.
AI
- Open-source LLMs (Llama 2; MixTAO)
- Prompt engineering for validation
Machine learning
- Transaction classification
- Entity extraction
- Embeddings
Data and retrieval
- RAG system
- Regex for date validation
Development
- PyTorch
- TensorFlow
- FastAPI
- LangChain
- LlamaIndex
Security
- Fully on-premise, private data pipeline with audit and access controls
Proven Results
More Results for Our Clients
- 75%+Less analyst effortOpen-Source LLM Text-to-SQL for Investment Insights: 75%+ Less Analyst EffortAnalysts ask questions in plain English and get SQL-backed answers, charts and explanations from the bank's own database, using open-source LLMs that run inside its environment.Read the case study →
- 97.5%Roof classification accuracyAI Hail Damage Detection on Roofs with Computer Vision: 97.5% Roof Classification AccuracyRoof classification, YOLOv8 object detection and a human-in-the-loop review app, built in Dataiku, assess hail damage on shingle roofs without climbing a ladder.Read the case study →
- Hours → minutesCountry-level analysis timeCountry-Level Investment Forecasting Using Natural Language Querying & RAG: Analysis Cut from Hours to MinutesAn AI research assistant answers plain-English questions about country-level economies by combining structured data with unstructured reports.Read the case study →
- Better liquiditySmarter trade executionAI Trading Platform with Collaborative-Filtering Recommendations for Better Liquidity & Trade ExecutionA scalable trading engine with collaborative-filtering recommendations suggests alternative instruments when assets are unavailable, improving liquidity and execution.Read the case study →
Open-Source LLM Text-to-SQL for Investment Insights: 75%+ Less Analyst Effort
Analysts ask questions in plain English and get SQL-backed answers, charts and explanations from the bank's own database, using open-source LLMs that run inside its environment.
AI Hail Damage Detection on Roofs with Computer Vision: 97.5% Roof Classification Accuracy
Roof classification, YOLOv8 object detection and a human-in-the-loop review app, built in Dataiku, assess hail damage on shingle roofs without climbing a ladder.
Country-Level Investment Forecasting Using Natural Language Querying & RAG: Analysis Cut from Hours to Minutes
An AI research assistant answers plain-English questions about country-level economies by combining structured data with unstructured reports.
AI Trading Platform with Collaborative-Filtering Recommendations for Better Liquidity & Trade Execution
A scalable trading engine with collaborative-filtering recommendations suggests alternative instruments when assets are unavailable, improving liquidity and execution.
FAQs
How can AI verify bank statements?
It extracts transactions, balances and account details from each statement and checks them automatically against the lender's credit rules.
Why use open-source LLMs?
They can run fully on-premise, so sensitive data never leaves the institution, and they cost less than commercial alternatives.
What is RAG used for here?
Retrieval-augmented generation helps the system extract the right data from varied statement layouts.
Which credit rules are checked?
Rules such as the three-month average balance and transaction frequency.
Can it read scanned statements?
Yes. It handles multiple layouts, from PDFs to scanned images.
Do underwriters still review applications?
Only the exceptions. Each statement gets a traceable decision flag.
Where does the data go?
Nowhere. All processing stays within the institution's own infrastructure, with audit and access controls.
Is there a ready-made product for this?
Yes. Docuras, Tatras's intelligent document processing product, is built on the same capabilities.
Get Started
Could AI Do the Same for Your Business?
Book a discovery call and we'll look at your data, your use case and the results worth aiming for.
Book a discovery call