Live Portfolio Demo

Invoice Extraction Agent

LangGraph StateGraph Qwen2.5-VL Vision Human-in-the-Loop SQLite Storage
Try a scenario:

Upload Invoice

Images, PDF, JPEG, PNG

Drag & drop invoice here

Supports PDF, PNG, JPG, WEBP
Invoice preview
invoice.png —

Agent Architecture

Technology Stack
LangGraph StateGraph
Directed graph agent orchestration
Qwen2.5-VL
Vision-Language Model for OCR extraction
MemorySaver Checkpointer
In-memory state persistence & replay
HITL Interrupt Pattern
Human correction for low-confidence docs
SQLite Storage
Duplicate detection + persistent storage

LangGraph Pipeline

Real-time node execution flow
input_handler Hash & validate file
classifier Is this an invoice?
extractor Qwen2.5-VL field extraction
◈ confidence_router
HIGH ≥ 85%
storage Save to SQLite
LOW < 85%
re_examiner Retry (max 2×)
EXHAUSTED
human_interrupt HITL correction
Idle — upload an invoice or try a demo above

Extracted Data

Waiting for input…
Pending
Run the pipeline to see extracted fields
Human Review Required
Confidence below threshold — please verify & correct

Invoices Database

SQLite — extracted & stored records
Total rows: 3
ID Invoice # Vendor Buyer Date Total Confidence Source Stored At
001 INV-2024-00632 GlobalTech Inc. XYZ Retail Co. 2024-01-18 $8,320.00 97% Auto 2024-01-18 09:14
002 INV-2024-00714 Apex Supplies Ltd. MegaCorp Ltd. 2024-02-05 $3,780.50 71% — HITL HITL 2024-02-05 14:32
003 INV-2024-00801 Vertex Systems BlueStar Org. 2024-03-02 $21,000.00 91% Auto 2024-03-02 11:08
Done!