Veridock
AI document automation built for Indian CA firms. A privacy-first pipeline that turns scanned invoices into validated, vendor-matched ledger data — 9 phases complete, 150 tests passing, running in production.
By the Numbers
- 9 — Phases Complete
- 150 — Tests Passing
- 3 — OCR Pipeline Layers
- 7 — Database Tables
The Problem
Chartered Accountancy firms drown in manual document entry. Every invoice that arrives gets read, keyed in, and cross-checked by hand — slow, error-prone, and impossible to scale during filing season.
The constraint that shaped everything: privacy. This is Indian client financial data, so the system was built privacy-first from day one rather than bolted on later.
Architecture
A FastAPI backend scaffolds the whole system: PostgreSQL via Supabase (7 tables), JWT authentication through fastapi-users, and Brevo webhooks feeding documents into the pipeline. Celery workers backed by Redis handle async processing, with uploads stored in Cloudflare R2.
The core is a 3-layer OCR pipeline: OpenCV preprocessing cleans the scan, Claude Haiku extracts structured fields, and a GSTIN validation layer verifies the output against India's GST identifier format. Extraction is never trusted blindly — it is validated before it lands in the ledger.
Key Features
- 3-Layer OCR Pipeline — OpenCV preprocessing, Claude Haiku extraction, and GSTIN validation. Each layer catches what the previous one can't.
- Vendor Matching That Learns — Fuzzy matching handles messy vendor names, Haiku disambiguates ambiguous cases, and alias learning records the resolution — so the system gets more accurate with every document processed.
- Async Processing — Celery and Redis keep OCR and matching off the request path. Documents flow in via Brevo webhooks and process in the background.
- Privacy-First Storage — Client documents live in Cloudflare R2 with access controlled through authenticated APIs, built for the sensitivity of Indian client financial data.
- Production Discipline — 9 phases built and shipped with 150 passing tests behind them.
Tech Stack
Python · FastAPI · PostgreSQL/Supabase · Celery · Redis · OpenCV · Claude Haiku · Cloudflare R2 · Brevo