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

Extracted

Quoting Method Grooper.GPT

Selects all or part of the document, optionally applying preprocessing options.

Remarks

The Extracted quoting method provides a flexible way to control what content from a document is supplied as a quote to the AI model.

This method is designed for scenarios where you want to include only specific portions of a document, or to apply preprocessing to the content before it is sent to the AI.

Configuration and Use:

  • Use the 'Quote Extractor' property to specify a Value Extractor. All values matched by the extractor will be concatenated and used as the quote. This is useful for targeting specific fields, patterns, or regions within a document.
  • If 'Quote Extractor' is not set, the entire document is quoted, making this method suitable for both targeted and full-document quoting.
  • The 'Preprocessing' property allows you to apply text preprocessing options, such as tab or paragraph marking. This can help the AI model better interpret tabular data, lists, or natural language by making structural elements explicit in the text.
  • The 'Document Level' property determines whether extraction is performed on the entire Document Instance or on a specific field or section. Enable this option to ensure extraction covers the whole document context.

Typical Use Cases:

  • Supplying only the most relevant extracted values to the AI, reducing prompt size and focusing the model's attention.
  • Improving AI understanding of complex layouts (such as tables) by marking tabs or paragraphs.
  • Quoting the entire document when no extractor is specified, with or without preprocessing.

How It Works:

When invoked, the method:

  1. Determines the extraction scope based on the 'Document Level' property.
  2. Runs the specified Value Extractor (if any) to collect matching content, or uses the full document if not set.
  3. Applies preprocessing if configured.
  4. Concatenates the results and supplies them as the quote to the AI model.

This approach enables precise control over what information is provided to the AI, supporting both simple and advanced quoting strategies.

Properties

NameTypeDescription

See Also

Used By

Notification