Grooper Help - Version 25.0
25.0.0017 2,127
  • Overview
  • Help Status

AI Extract Field Options

Data Field Data Element Extension Grooper.GPT

Defines options controlling how AI Extract and AI Table Reader work for a Data Field.

Remarks

The 'AI Extract Field Options' class provides advanced configuration for how Grooper's AI Extract method interacts with a specific Data Field. These options allow you to fine-tune the instructions and alignment strategies used by the LLM (Large Language Model) when extracting data, ensuring that field values are accurately located, labeled, and mapped back to the document.

Role in Grooper

  • Used to customize the extraction and alignment behavior for individual fields when using AI Extract or AI Table Reader.
  • Supports both single-value fields and columns within tables, adapting to a wide range of document layouts and data types.
  • Enables integration of field-specific instructions, value lists, and header detection into the LLM prompt, improving extraction accuracy and reliability.

How It Works

  • Each Data Field can be extended with an 'AI Extract Field Options' object, allowing you to override default extraction behavior.
  • Options such as alignment mode, inclusion of value lists, and header detection are used to generate more precise LLM prompts and to interpret the LLM's output in a way that best matches the document's structure.
  • These settings are especially important for fields with complex value types, choice lists, or when extracting from tables with dynamic headers.

Configuration and Usage

  • Configure the alignment mode to control how extracted values are mapped back to the document (e.g., by value, by quote, by label).
  • Enable or disable inclusion of value lists to guide the LLM toward valid field values.
  • For table columns, enable header detection to allow the LLM to identify and use the correct column header during extraction.

Example Scenario

Suppose you have a field with a fixed set of valid values (a choice list) and want the LLM to only return those values. By enabling 'Include List Values', the LLM prompt will include the list, increasing the likelihood of valid results. For a table column with dynamic headers, enabling 'Detect Header Cell' ensures the LLM can correctly identify the column in the document.

These options provide granular control over AI-driven extraction, supporting robust, accurate, and context-aware data capture in Grooper.

Properties

NameTypeDescription
Notification