Grooper Help - Version 25.0
25.0.0023 2,165
  • Overview
  • Help Status

Layout Objects

Quoting Method Grooper.GPT

Provides a quoting method that supplies the AI model with a page-by-page map of all visible content and layout elements in a document, including text, lines, barcodes, and checkboxes.

Remarks

The Layout Objects quoting method is designed to give the AI model a comprehensive, spatially-aware representation of a document's visual and textual structure. This method is ideal for advanced AI workflows that require both the content and its exact position on each page.

Overview

Layout Objects generates a detailed JSON schema and corresponding data for each page in the document. The schema describes arrays of text segments, lines, barcodes, and checkboxes, each with their content and bounding rectangles. This enables the AI to understand not just what is present on the page, but where each element is located.

The quoting method is especially useful for tasks such as:

  • Layout analysis and document understanding.
  • Table extraction and visual question answering.
  • Any scenario where the spatial relationship between elements is important.

How It Works

  1. For each page, the method collects all relevant layout objects:
    • Text segments, with their content and bounding rectangles.
    • Lines (horizontal and vertical), defined by their endpoints.
    • Barcodes, including symbology, value, and bounds.
    • Checkboxes, with checked state and bounds.
  2. The data is structured according to a generated JSON schema, which is provided to the AI alongside the actual layout data.
  3. Optionally, a plain text version of the content can be included for reference.

Configuration

  • Use the 'Quote Extractor' property to target specific content within the document. If not set, the entire document's layout is included.
  • Enable 'Include Plain Text' to provide a plain text version of the document content in addition to the structured layout data.

Use Cases

  • Supplying the AI with a complete map of the document's structure for layout-driven extraction or analysis.
  • Enabling workflows that require both the content and its position, such as form understanding or visual data extraction.

Properties

NameTypeDescription

See Also

Used By

Notification