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

Attachment Rule

Embedded Object Grooper.Core

Specifies the conditions under which a document type will be attached to another document type.

Remarks

An Attachment Rule defines logic used by the Mark Attachments activity to determine whether a document should be attached to its neighboring documents. Each rule compares the current document with its immediate siblings and decides if it meets the criteria to be considered an attachment.

Rules may operate in two modes:

  1. Rule-based: If no AI model is specified, the rule uses only structural and type-based heuristics to determine attachment relationships.
  2. AI-enhanced: When a model and Instructions are provided, the rule leverages an LLM to analyze document content and decide if two documents are related. This is especially useful for semi-structured or unstructured documents where conventional rules are insufficient.

The Instructions field provides the LLM with a custom prompt describing the criteria for determining document relationships. Optionally, a QuotingMethod can be used to extract relevant portions of the document to keep LLM inputs concise and focused.

The result of each rule is either:

  • 1: Attach to the previous document.
  • -1: Attach to the next document.
  • 0: No attachment.

Multiple Attachment Rules may be defined in a rule set, and the first one to return a non-zero result determines the attachment behavior for the current document.

Properties

NameTypeDescription
General
Generative AI Options

See Also

Used By

Notification