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

Rendering diagramโ€ฆ

๐Ÿ“ 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