Academy › Projects › Project 3

Project 3: Document AI Pipeline

IntermediateWeek 2Azure FunctionsDocument IntelligencePydanticStreamlit

Problem: Indian SMBs manually key in invoice and GST details. Extract fields automatically with confidence scores and human review. (This maps to DocumentsAI.)

Architecture:

Upload (UI/email) → Blob → Event Grid → Azure Function
  → OCR (Document Intelligence) → LLM extraction with JSON schema (structured output)
  → Validator (GSTIN regex, totals = sum of lines, dates) → Confidence score
  → if low confidence → Human Review UI → corrected data saved as training/eval data
  → Export: Excel / Tally / ERP API

Step by step:

  1. Gather 20 sample invoices (create fakes; never use real customer data).
  2. Run OCR to get the text plus layout.
  3. Define a Pydantic schema: vendor, GSTIN, invoice_no, date, line_items, tax, total.

Checking your access…