🌐
Microsoft Learn
learn.microsoft.com › en-us › azure › ai-services › document-intelligence › prebuilt › layout
Document layout analysis - Document Intelligence - Foundry Tools | Microsoft Learn
The layout model supports sections and subsections in the output, which identifies the relationship of sections and objects within each section. The hierarchical structure is maintained in elements for each section.
🌐
Microsoft Learn
learn.microsoft.com › en-us › azure › search › cognitive-search-skill-document-intelligence-layout
Document Layout Skill - Azure AI Search | Microsoft Learn
The Document Layout skill uses the layout model from Azure Document Intelligence in Foundry Tools to analyze a document, detect its structure and characteristics, and produce a syntactical representation in Markdown or text format.
Discussions

Azure Document Intelligence - prebuild-layout - find original page number in markdown result - Stack Overflow
I'm using the Azure Document Intelligence service to analyze different types of documents. I set the output format style in Markdown to be able to have more information regarding the structure and More on stackoverflow.com
🌐 stackoverflow.com
Azure Document Intelligence Layout Model - Word Doc issues
Hello, the layout model still not supports the selection mark extraction and skips images in the word document. Are any enhancements planned for release ? Thanks More on learn.microsoft.com
🌐 learn.microsoft.com
2
1
June 4, 2025
How to read the output of Document Intelligence Prebuilt Layout Model?
Hi there, I'm currently working on an Azure Document Intelligence project, and I have a few questions regarding the pre-built Layout model. Specifically, I'm wondering: Is there any documentation that provides a full specification of the JSON response… More on learn.microsoft.com
🌐 learn.microsoft.com
2
0
AI Document Extraction on Azure - Options, Comparison & Recommendations for Invoice/Contract Processing
I’m not familiar with the dev side but we use a hybrid approach, DI for as much as possible. But since some documents have stamps or notes on them we fallback to OAI for that. More on reddit.com
🌐 r/AZURE
17
4
December 18, 2025
🌐
Microsoft Learn
learn.microsoft.com › en-us › azure › ai-services › document-intelligence › model-overview
Document Processing Models - Document Intelligence - Foundry Tools | Microsoft Learn
Document processing models for OCR, document layout, invoices, identity, custom models, and more to extract text, structure, and key/value pairs.
🌐
Microsoft Azure
azure.microsoft.com › en-us › products › ai-foundry › tools › document-intelligence
Azure Document Intelligence (now part of Azure Content Understanding in Foundry Tools) | Microsoft Azure
The prebuilt option doesn't use samples—the model has already been trained and is ready to use off the shelf to extract key fields from specific document types. ... Layout extracts text using high-definition optical character recognition (OCR) tailored for documents. It also extracts the ...
🌐
Azure Docs
docs.azure.cn › en-us › ai-services › document-intelligence › prebuilt › layout
Document layout analysis - Document Intelligence - Azure AI services | Azure Docs
The new page object detection based ... Document Intelligence layout model assigns certain text blocks in the paragraphs collection with their specialized role or type predicted by the model....
🌐
GitHub
github.com › MicrosoftDocs › azure-ai-docs › blob › main › articles › ai-services › document-intelligence › prebuilt › layout.md
azure-ai-docs/articles/ai-services/document-intelligence/prebuilt/layout.md at main · MicrosoftDocs/azure-ai-docs · GitHub
The layout model supports sections and subsections in the output, which identifies the relationship of sections and objects within each section. The hierarchical structure is maintained in elements for each section.
Author: MicrosoftDocs
🌐
Azure Docs
docs.azure.cn › en-us › search › cognitive-search-skill-document-intelligence-layout
Document Layout Skill | Azure Docs
The Document Layout skill uses the layout model from Azure Document Intelligence in Azure AI services to analyze a document, detect its structure and characteristics, and produce a syntactical representation in Markdown or text format.
🌐
Microsoft Learn
learn.microsoft.com › en-us › azure › ai-services › document-intelligence › concept › retrieval-augmented-generation
Retrieval-Augmented Generation (RAG) with Azure Document Intelligence in Foundry Tools - Foundry Tools | Microsoft Learn
August 15, 2026 - Azure OpenAI on your data applies the Document Intelligence Layout model to extract and parse document data by chunking long text based on tables and paragraphs.
Find elsewhere
🌐
GitHub
github.com › MicrosoftDocs › azure-ai-docs › blob › main › articles › search › cognitive-search-skill-document-intelligence-layout.md
azure-ai-docs/articles/search/cognitive-search-skill-document-intelligence-layout.md at main · MicrosoftDocs/azure-ai-docs · GitHub
The Document Layout skill uses the layout model from Azure Document Intelligence in Foundry Tools to analyze a document, detect its structure and characteristics, and produce a syntactical representation in Markdown or text format.
🌐
Azure Glossary
azureglossary.com › reference › glossary › document-intelligence-layout-model
Document Intelligence layout model - Azure Glossary
Document Intelligence layout model is a prebuilt Document Intelligence model that extracts text, tables, selection marks, structure, and layout information without custom training. In Azure, it helps teams understand document structure, bootstrap custom model work, support search indexing, ...
🌐
Microsoft Learn
learn.microsoft.com › en-us › azure › ai-services › document-intelligence › faq
Azure Document Intelligence in Foundry Tools (formerly Azure AI Form Recognizer) FAQ | Microsoft Learn
Document Intelligence provides a layout model that provides a visual decomposition of the document into lines, paragraphs, sections, headers, and footers. You can then choose to retrieve the results in markdown format, to further chunk the document ...
🌐
Stack Overflow
stackoverflow.com › questions › 78424757 › azure-document-intelligence-prebuild-layout-find-original-page-number-in-mar
Azure Document Intelligence - prebuild-layout - find original page number in markdown result - Stack Overflow
The sample code below finds the original page numbers in the Markdown result generated by the Azure Document Intelligence service. It prints the content that you've marked with Markdown context from the Excel file with page numbers: with open(path_to_xlsx_file, "rb") as f: poller = document_intelligence_client.begin_analyze_document( "prebuilt-layout", analyze_request=f, content_type="application/octet-stream" ) result: AnalyzeResult = poller.result() # Process the analysis result for page in result.pages: print(f"----Analyzing layout from page #{page.page_number}----") for word in page.words: # Check if the word is marked with Markdown context if word.content.startswith("```") and word.content.endswith("```"): print(f"Markdown Content: {word.content}, Confidence: {word.confidence}, Offset: {word.span['offset']}, Length: {word.span['length']}")
🌐
Microsoft Learn
learn.microsoft.com › en-us › samples › azure-samples › document-intelligence-code-samples › document-intelligence-code-samples
Azure Document Intelligence code samples - Code Samples | Microsoft Learn
October 22, 2024 - ... Layout model: Extract and anlayze text, tables, and document structure. ... Prebuilt models: Add intelligent document processing to your apps and flows without having to train and build your own models.
🌐
Microsoft Learn
learn.microsoft.com › en-us › answers › questions › 2281048 › azure-document-intelligence-layout-model-word-doc
Azure Document Intelligence Layout Model - Word Doc issues - Microsoft Q&A
June 4, 2025 - ... The Azure Document Intelligence Layout Model is designed to analyze documents and extract structured data, which includes understanding the layout of headers, tables, and other elements.
🌐
Azure
ai.azure.com › catalog › models › Azure-AI-Document-Intelligence
Catalog / Models / Azure-AI-Document-Intelligence
... Read model allows you to extract ... model, on top of text extraction, extracts structural information like tables, selection marks, paragraphs, titles, headings, and subheadings....
🌐
Medium
tech-depth-and-breadth.medium.com › azure-ai-document-intelligence-for-rag-use-cases-4e242b0ba7de
Azure AI Document Intelligence for RAG use cases | by Anurag Chatterjee | Medium
December 18, 2025 - Use a model to inform Azure AI Document Intelligence about the type of data you expect to be in the documents you’re analyzing. If your forms have a common structure or layout, you can increase the accuracy of the results and control the structure of the output data by using the most appropriate model.
🌐
Microsoft Learn
learn.microsoft.com › en-us › answers › questions › 1380741 › how-to-read-the-output-of-document-intelligence-pr
How to read the output of Document Intelligence Prebuilt Layout Model? - Microsoft Q&A
The span, length, and offset fields are significant in finding word spans in lines or sentences in the output of the Azure Document Intelligence pre-built Layout model.
🌐
Reddit
reddit.com › r/azure › ai document extraction on azure - options, comparison & recommendations for invoice/contract processing
r/AZURE on Reddit: AI Document Extraction on Azure - Options, Comparison & Recommendations for Invoice/Contract Processing
December 18, 2025 -

Hey everyone,

I'm working on an application that uses AI to extract structured data from commercial documents - invoices, contracts, purchase orders, that kind of stuff. I've been testing Claude and Google's multimodal models and they work really well for this use case.

However, I need to evaluate what Azure offers since that's our cloud environment or what other options could be considered. After digging into it, I found there are basically two main paths:

1. Azure Document Intelligence (formerly Form Recognizer)

This is their dedicated document processing service. It has prebuilt models for invoices, receipts, contracts, tax forms, etc. Pricing is around $10/1,000 pages for prebuilt models, $30/1,000 for custom extraction. Seems very accurate for structured documents and returns proper JSON with confidence scores and bounding boxes.

2. Azure OpenAI with GPT-4o Vision

Send document images directly to GPT-4o, use prompt engineering to define extraction schema, and use Structured Outputs for guaranteed JSON compliance. More flexible but apparently more expensive (~$0.05-0.07/page) and potentially less accurate on complex tables.

3. Hybrid approach

Microsoft's own samples show using Document Intelligence Layout model to convert PDFs to Markdown first, then feeding that to GPT-4o for the actual extraction. Supposedly gives you the best of both worlds - accurate OCR + flexible schema extraction.

My questions for those who've built similar systems:

  • If you're using Azure, which approach did you go with? How's the accuracy and cost working out in production?

  • For those using Document Intelligence prebuilt models - how well do they handle non-standard invoice formats or documents in multiple languages? Do you end up needing custom models anyway?

  • Anyone tried the hybrid approach (Doc Intelligence + GPT-4o)? Is the added complexity worth it vs just using GPT-4o directly on images?

  • How does Azure Document Intelligence compare to Claude or Google Document AI in your experience? I've had good results with Claude's vision capabilities but wondering if a specialized service like Document Intelligence would be more reliable at scale.

  • For high volume processing (let's say 50k+ pages/month) - what's been most cost-effective?

  • Any gotchas or lessons learned you wish you knew before starting?

Would really appreciate hearing about real-world experiences. Most of what I've found is marketing material or basic tutorials, not much on how these solutions hold up in production with messy real-world documents.

Thanks!

Top answer
1 of 5
2
I’m not familiar with the dev side but we use a hybrid approach, DI for as much as possible. But since some documents have stamps or notes on them we fallback to OAI for that.
2 of 5
2
We basically do #3, but use gpt-5.2 or whatever better model, not 4o. We're not overly concerned about cost because we're doing a one-time ingestion, not offering a service or something. Q&A... > If you're using Azure, which approach did you go with? How's the accuracy and cost working out in production? Like I said, #3. > For those using Document Intelligence prebuilt models - how well do they handle non-standard invoice formats or documents in multiple languages? Do you end up needing custom models anyway? We just use the layout model to get markdown and it does just fine. The second-phase OpenAI models do quite well at "figuring it out" from the markdown. When I did this with GPT-4o it did fine and the reasoning models just made it even better. No custom models. Our documents were in multiple languages, no issues. You can even answer in English if the documents are in another language. > Anyone tried the hybrid approach (Doc Intelligence + GPT-4o)? Is the added complexity worth it vs just using GPT-4o directly on images? I did extensive testing on this. DocIntel Layout + LLM was the best. The input file matters, see the last answer. > How does Azure Document Intelligence compare to Claude or Google Document AI in your experience? I've had good results with Claude's vision capabilities but wondering if a specialized service like Document Intelligence would be more reliable at scale. Haven't tried it, but I'll say DocIntel had no problem scaling to our ~2.6M pages of burst ingestion when we needed it. It did that in like 12 hours. We bought the pre-paid quantity for a discount on the first month to deal with the initial burst of pages. > For high volume processing (let's say 50k+ pages/month) - what's been most cost-effective? For us it's consistency and simplicity. I don't think you'll get cheaper than DocIntel + LLM if your documents are varied. I tried all kinds of other things like `docling` and `markitdown`, it just doesn't compare to DocIntel's Layout model. My cost modeling was even back with 4o that to process our documents it was an order of magnitude more expensive to just have the LLM do everything, versus use DocIntel to get Markdown, then the LLM to do the extraction. > Any gotchas or lessons learned you wish you knew before starting? So many... FLATTEN YOUR DOCUMENTS TO PDF BEFORE THEY GO TO DOCINTEL, IT MATTERS. We were ingesting a large quantity of Microsoft Word documents and what we quickly realized is Word features are invisible to DocIntel. Things like numbered bullets, table of contents, footnotes, header/footer, pretty much anything "dynamic" was apparently just a markup in the document that is rended when opened by Word. Like bullet "3.1.2" is really just a marker for "[Ordered List Bullet Level 3]", so the markdown output never had "3.1.2" in it, so if you need to understand "what step does XYZ happen in", you'd never get a step number. When DocIntel cracks the .docx open it just parses the XML and doesn't account for those things. When you take the same document and save it as a PDF using Word it "flattens" or "hard codes" everything. Taking that PDF to DocIntel you'll get much better results. Want to test yourself? Feed a docx through DocIntel save the markdown as "Test-Alpha.md", save the docx as a PDF, and feed that PDF through DocIntel and save the markdown as "Test-Beta.md" and then give them both to ChatGPT and ask it to "compare and contrast the files from a missing data or context standpoint that would be useful to have when having AI analyze these documents". It's going to tell you Test-Beta has way more formatting. So how do you do this flattening en masse? I wrote a janky python script that uses the Word COM-style calls to open the docx in an invisible window and save it as a PDF. There is another option to upload it to OneDrive and download the PDF, but I haven't tested if this is the same. If you think you will ever need to use that DocIntel output again, save the .json somewhere and save yourself the cost of a repeated conversion. There's a lot of cool stuff in there with bounding boxes and image figures and stuff.
🌐
PyPI
pypi.org › project › azure-ai-documentintelligence
azure-ai-documentintelligence · PyPI
Azure AI Document Intelligence ... data from your documents. It includes the following main features: Layout - Extract content and structure (ex....