Azure Document Intelligence in Foundry Tools provides APIs for extracting information from documents without building an OCR and document-analysis pipeline from scratch. Applications submit a supported file or an accessible document URL, select a model, and retrieve structured analysis results. The service supports printed and handwritten text, document structure, and business fields, with capabilities varying by model, input format, language, and API version.
Choose the model according to the information required downstream. The Read model, identified as prebuilt-read, extracts text, words, and their locations. The Layout model, prebuilt-layout, adds structural information such as paragraphs, paragraph roles, tables, and selection marks. Layout can produce Markdown output, which is useful when preparing documents for search indexing or retrieval-augmented generation because it preserves more structure than a plain text stream.
Prebuilt models extract fields from common document types, including invoices, receipts, identity documents, and supported US tax and mortgage forms. These models return predefined schemas with typed values where applicable, such as dates and currency amounts. Check the supported document variants and locales before selecting a model; a model intended for one jurisdiction or document family should not be assumed to support every equivalent form worldwide.
For business-specific schemas, train a custom extraction model using representative labeled documents. Custom template models suit documents with consistent visual layouts, while custom neural models support more varied layouts and document structures. Custom classifiers identify document types and can support workflows that route different documents to different extraction models. Composed extraction models group compatible custom models behind a single model identifier.
Analysis is asynchronous. Production code should submit an analysis request, persist the operation identifier or result URL, and poll for completion using the REST API or an SDK poller. Handle throttling with bounded concurrency and retry delays, and avoid resubmitting a document simply because a polling request failed. Validate file size, page count, and supported formats before submission, and use page ranges when only part of a document requires analysis.
Treat extracted data as evidence requiring validation rather than guaranteed business truth. Retain source references and relevant confidence scores so reviewers can inspect uncertain values against the original document. Apply schema checks and business rules, such as reconciling invoice totals, before writing results into operational systems. Measure field-level accuracy on a held-out dataset that reflects production scan quality, languages, and layout variations.
Use Document Intelligence Studio to explore models, label training data, and test extraction before integrating through REST or the Python, .NET, Java, or JavaScript SDKs. Secure service access with Microsoft Entra ID and appropriate role assignments where supported, or protect resource keys when key authentication is required. Plan networking and storage access together: private endpoints and restricted storage require compatible connectivity and authorization. Pin the API version and model identifiers, monitor latency and throttling, and budget for analyzed pages, optional capabilities, and applicable custom-model training charges.