Skip to Content
Solution PlaysPlay 06: Play 06 β€” Document Intelligence πŸ“„

Play 06 β€” Document Intelligence πŸ“„

Extract, classify, and structure document data with OCR + LLM.

Feed PDFs, invoices, receipts, and forms into Azure Document Intelligence for OCR, then GPT-4o extracts structured fields into typed JSON. Handles multi-page documents, handwriting, tables, and stamps.

Quick Start

cd solution-plays/06-document-intelligence az deployment group create -g $RG -f infra/main.bicep -p infra/parameters.json code . # Use @builder for extraction, @reviewer for accuracy audit, @tuner for throughput

Key Metrics

  • Field extraction: β‰₯95% (prebuilt), β‰₯90% (custom) Β· Processing: <10s/page Β· PII recall: β‰₯99%

DevKit

PrimitiveWhat It Does
3 agentsBuilder (OCR/extraction), Reviewer (accuracy/PII audit), Tuner (model selection/cost)
3 skillsDeploy (117 lines), Evaluate (110 lines), Tune (105 lines)

Architecture

πŸ“ Full architecture details β€” data flow, security architecture, scaling guide

Cost Estimate

ServiceDev/PoCProductionEnterprise
Document Intelligence$0 (Free)$100 (Standard S0)$400 (Standard S0)
Azure OpenAI$40 (PAYG)$250 (PAYG)$900 (PTU Reserved)
Blob Storage$2 (Hot LRS)$25 (Hot LRS)$80 (Hot GRS)
Container Apps$10 (Consumption)$80 (Dedicated)$250 (Dedicated HA)
Cosmos DB$5 (Serverless)$50 (Autoscale)$200 (Autoscale)
Key Vault$1 (Standard)$3 (Standard)$10 (Premium HSM)
Application Insights$0 (Free)$25 (Pay-per-GB)$80 (Pay-per-GB)
Event Grid$0 (Free)$2 (Basic)$10 (Basic)
Total$58/mo$535/mo$1,930/mo

πŸ’° Full cost breakdown β€” per-service SKUs, usage assumptions, optimization tips

πŸ“– Full docs Β· 🌐 frootai.dev/solution-plays/06-document-intelligenceΒ 

FAI Manifest

FieldValue
Play06-document-intelligence
Version1.0.0
KnowledgeF1-GenAI-Foundations, T3-Production-Patterns
WAF Pillarssecurity, reliability, responsible-ai
Groundednessβ‰₯ 85%
Safety0 violations max
Last updated on