deploy-document-understanding-v2
/deploy-document-understanding-v2
Deploy Document Understanding V2 — configure layout-aware extraction, cross-document comparison, automatic classification, document workflow automation. Use when: deploy, provision advanced doc processing.
Assessment and security
- Files in this package
- 3
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 26.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Deploy Document Understanding V2 — configure layout-aware extraction, cross-document comparison, automatic classification, document workflow automation. Use when: deploy, provision advanced doc processing.
Original author description
Deploy Document Understanding V2 — configure layout-aware extraction, cross-document comparison, automatic classification, document workflow automation. Use when: deploy, provision advanced doc processing.
How it works
- When to Use
- How Play 38 Differs from Play 06 and Play 15
- Prerequisites
- Step 1: Deploy Infrastructure
- Step 2: Configure Document Classification
- Step 3: Configure Layout-Aware Extraction
- Step 4: Configure Cross-Document Comparison
- Step 5: Configure Document Workflow
- Step 6: Post-Deployment Verification
- Troubleshooting
SKILL.md preview
---
name: deploy-document-understanding-v2
description: "Deploy Document Understanding V2 — configure layout-aware extraction, cross-document comparison, automatic classification, document workflow automation. Use when: deploy, provision advanced doc processing."
---
# Deploy Document Understanding V2
## When to Use
- Deploy advanced document processing beyond basic OCR extraction
- Configure layout-aware extraction (preserves document structure)
- Enable cross-document comparison (find differences between versions)
- Set up automatic document classification (invoice, contract, report)
- Build document workflow automation (classify → extract → route → archive)
## How Play 38 Differs from Play 06 and Play 15
| Aspect | Play 06 (Doc Intel) | Play 15 (Multi-Modal) | Play 38 (Understanding V2) |
|--------|--------------------|-----------------------|---------------------------|
| Focus | Single-doc OCR+fields | Vision+OCR on images | Advanced understanding |
| Classification | Manual model selection | Page-type routing | Auto-classify any document |
| Comparison | None | None | Cross-doc diff & versioning |
| Layout | Basic fields | Page-level visual | Section/paragraph/table-aware |
| Workflow | Extract only | Extract only | Classify → extract → route → archive |
## Prerequisites
1. Azure Document Intelligence (S0 for Layout + custom models)
2. Azure OpenAI (gpt-4o for classification + comparison analysis)
3. Azure Storage (document upload + processed output)
4. Cosmos DB (classification results, comparison logs)
## Step 1: Deploy Infrastructure
```bash
az bicep lint -f infra/main.bicep
az deployment group create -g $RG -f infra/main.bicep -p infra/parameters.json
```
## Step 2: Configure Document Classification
| Category | Detection Method | Confidence Threshold |
|----------|-----------------|---------------------|
| Invoice | Prebuilt-invoice features + LLM | 0.90 |
| Contract | Legal language patterns + LLM | 0.85 |
| Report | Section headers + tables + LLM | 0.85 |
| Letter | Salutation + signature + LLM | 0.80 |
| Form | Checkboxes + input fields + LLM | 0.90 |
| Unknown | Below all thresholds | → Human review queue |
## Step 3: Configure Layout-Aware Extraction
```python
# Layout extraction preserves document structure
result = doc_intelligence_client.begin_analyze_document("prebuilt-layout", document)
for page in result.pages:
for paragraph in page.paragraphs:
# paragraph.role: title, heading, footnote, body
# paragraph.bounding_regions: exact position on page
for table in page.tables:
# table.cells: row/col structure with spans
for selection_mark in page.selection_marks:
# selection_marks: checkboxes, radio buttons
```
## Step 4: Configure Cross-Document Comparison
```python
# Compare two versions of a document
async def compare_documents(doc_v1, doc_v2):
fields_v1 = await extract_fields(doc_v1)
fields_v2 = await extract_fields(doc_v2)
diff = compute_field_diff(fields_v1, fields_v2)
summary = await summarize_changes(diff, model="gpt-4o")
return { "changes": diff, "summary": summary, "risk_level": assess_change_risk(diff) }
```
## Step 5: Configure Document Workflow
```
Document Upload → Auto-Classify → Type-Specific Extraction
→ Validation Rules → PII Masking → Route to Destination
→ Archive with Metadata → Notify Stakeholders
```
## Step 6: Post-Deployment Verification
- [ ] Classification correctly identifying document types
- [ ] Layout extraction preserving section/table structure
- [ ] Cross-doc comparison detecting field changes
- [ ] Workflow routing documents to correct destination
- [ ] PII masking before archival
- [ ] Human review queue receiving low-confidence docs
- [ ] Processing time < 15s per document
## Troubleshooting
| Issue | Cause | Fix |
|-------|-------|-----|
| Classification wrong | Overlapping doc features | Add more category-specific features to prompt |
| Layout structure lost | Not using Layout model | Switch from Read to Layout model |
| Comparison misses changes | Field normalization wrong | Normalize dates, amounts before diff |
| Workflow routing errors | Classification confidence too low | Lower threshold or add intermediate review |
| Slow processing | Sequential page analysis | Parallelize per-page extraction |
| PII missed in tables | Only scanning body text | Add table cell scanning to PII check |
## Document Understanding Pipeline (Full)
```
Upload → Auto-Classify (gpt-4o-mini) → Select Extraction Model
→ Layout-Aware Extraction (sections, tables, marks)
→ Field Validation (cross-field consistency)
→ PII Masking → Route to Destination
→ If previous version exists: Cross-Doc Comparison
→ Archive with Full Metadata
```
Files in this package (3)
- SKILL.lean.md 5 KB
- SKILL.md 5 KB
- agents/openai.yaml 1 KB
Versions
The database has no other skills named deploy-document-understanding-v2.
Database snapshot: 13.11.2026 · package version 2e51d4ed1da3 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100evaluate-document-understanding-v2
Evaluate Document Understanding V2 — measure classification accuracy, layout extraction quality, cross-doc comparison accuracy, workflow routing, PII detection. Use when: evaluate, audit doc processing. - 100tune-document-understanding-v2
Tune Document Understanding V2 — optimize classification thresholds, layout model selection, comparison sensitivity, workflow routing, throughput, cost per document. Use when: tune, optimize doc processing. - 100cu-sdk-author-analyzer
EXPERIMENTAL. Iteratively author and test a custom Azure AI Content Understanding analyzer for a folder of **document** files (PDFs, page images) of a single type. Walks layout extraction → schema authoring → validation → batch test → agent review → refine cycle using the typed… - 100azure-ai-document-intelligence-dotnet
Azure AI Document Intelligence SDK for .NET. Extract text, tables, and structured data from documents using prebuilt and custom models. Use for invoice processing, receipt extraction, ID document analysis, and custom document models. Triggers: "Document Intelligence",… - 100azure-ai-document-intelligence-ts
Extract text, tables, and structured data from documents using Azure Document Intelligence (@azure-rest/ai-document-intelligence). Use when processing invoices, receipts, IDs, forms, or building cu... - 90gpu-document-processing
Use when processing large PDFs, document collections, or bulk text extraction tasks that benefit from GPU-accelerated processing. Triggers when the user provides large documents or needs bulk document analysis.