All projects

Finance & Insurance

Aloan

AI-powered commercial lending origination, underwriting and portfolio monitoring

Built the document-AI service, Claude model routing and evaluation pipeline, and the LLM credit-policy and credit-memo features behind a commercial lending product that takes a loan from application to covenant monitoring.

Aloan: AI-powered commercial lending, from application to monitoring

1 / 5
Aloan: AI-powered commercial lending, from application to monitoring

Aloan: AI-powered commercial lending, from application to monitoring

0.97–0.99

Field-level F1 on tax returns

5–20 min

Full loan package spread

1–3%

Extracted fields analysts correct

$2–15

AI cost per loan package

Stack

Java 21 / Spring BootAngularPython / FastAPILangChainAmazon Bedrock (Claude)Amazon TextractPostgreSQL + pgvectorNeo4j AuraDBTemporalAmazon EKS / Terraform

Overview

Aloan is a commercial lending platform for banks, credit unions and other lenders. It combines AI document intelligence with a deterministic financial analysis engine, taking a business loan from application through credit policy evaluation, approval, closing and covenant monitoring.

The central idea: AI reads and organizes the evidence; deterministic software calculates the numbers; policy rules evaluate the requirements; human professionals make the credit decision.

The problem

A single commercial loan can involve several entities, owners and reporting periods, with evidence spread across tax returns, financial statements, bank statements and other documents.

  • Manual spreading: figures are re-keyed into spreadsheets, which is slow and error-prone.
  • Untraceable numbers: reviewers cannot easily see where a value came from.
  • Inconsistent policy checks: written credit policy is applied by hand, deal by deal.

My role

I worked as an AI engineer on Aloan's engineering team. I built the AI side of the product: the document-AI service with its model routing and evaluation pipeline, and the LLM features in the credit workflow that turn written policy into rules and draft credit memos. The Aloan team builds the synthetic loan packages, labels the golden sets and reviews extractions; I built the tooling they use for that work.

What I built

Document-AI service

  • A FastAPI service that reads PDFs with PyMuPDF and Amazon Textract, then classifies each document and extracts financial facts linked to their source page with LangChain.
  • Model routing on Amazon Bedrock: Claude Haiku 4.5 for simple fields, Claude Sonnet 4.6 for complex documents, and a retry on Sonnet when Haiku fails validation.
  • Golden-set evaluation with field-level F1 and a CI gate that blocks any prompt, schema or model change that lowers quality.

Credit policy and memo AI

  • Policy-to-rule conversion: written credit policy becomes proposed rules that credit staff approve as versioned CEL rules.
  • Credit memo generation from approved facts only, with every number checked against stored values.

Results

  • Extraction accuracy: field-level F1 of 0.97–0.99 on tax returns and 0.92–0.97 on operating statements.
  • Model routing: 5–15% of Claude Haiku 4.5 results retried on Claude Sonnet 4.6.
  • Analyst corrections: analysts correct 1–3% of extracted fields.
  • Spreading time: a full loan package spread in 5–20 minutes.
  • AI cost: about $2–15 per loan package.

Tech stack

LayerTechnologies
FrontendAngular, Angular Material, NgRx Signal Store, TypeScript
BackendJava 21, Spring Boot 3, Python FastAPI, Pydantic, LangChain
AIAmazon Bedrock (Claude Sonnet 4.6, Claude Haiku 4.5, Titan Embeddings V2), Amazon Textract, PyMuPDF
DataPostgreSQL + pgvector, Neo4j AuraDB, Amazon S3
WorkflowTemporal (Java SDK, Python AI worker)
InfrastructureAmazon EKS, Terraform, Helm, GitLab CI, Argo CD, Datadog

Related case studies