Grooper Help - Version 25.0
25.0.0026 2,185

DI Layout

Quoting Method Grooper.Cloud

Injects layout and semantic data from Azure Document Intelligence layout analysis into the prompt.

Remarks

The DI Layout quoting method integrates results produced by the DI Analyze activity, which leverages Azure Document Intelligence to extract text, layout, and semantic elements from document pages. This method enables advanced AI workflows by supplying rich, context-aware content—such as page structure, regions, and extracted text—directly into prompts for large language models (LLMs).

Role in Grooper

DILayout is used to quote layout analysis results for documents or pages, supporting both region-based and page-based quoting. It allows users to select the Azure model, output format (Markdown or JSON), and filter which pages or regions are included. The quoted content can be tailored for extraction, spatial grounding, or other AI-driven tasks.

Usage and Configuration

  • Configure 'Model Name' to match the Azure model used in DI Analyze.
  • Select 'Quote Format' to determine the output structure (Markdown, JSON, or both).
  • Use 'From Pages' to load results from individual pages, or from the folder for merged results.
  • Enable 'Use Location' to restrict quoting to defined regions on the Data Instance.
  • Set 'Page Filter' to specify which pages to include.
  • Ensure the DI Analyze activity has been run and results are available for quoting.

How It Works

DI Layout loads the Azure DI results (saved as JSON files by DI Analyze) from the Batch Folder or Batch Page, processes the content according to the selected options, and injects the formatted results into the AI prompt. It supports both Markdown and JSON quoting, with options to filter by page or region, and to clean or transform the quoted data for optimal AI consumption.

Integration with DI Analyze

  • DILayout requires that the DI Analyze activity has already processed the document and saved results.
  • The 'Filename' property must match the output file generated by DI Analyze.
  • Quoted content reflects the selected model and analysis options from DI Analyze.

Properties

NameTypeDescription

Used By

Notification