Skip to main content

SummarizeText

Description​

This processor uses a Large Language Model (LLM) to summarize the content of a FlowFile. It sends the content to an LLM service and writes the summary back to the FlowFile or as an attribute.

Tags​

AI, LLM, summarization, text processing

Properties​

In the list below required Properties are shown with an asterisk (*). Other properties are considered optional. The table also indicates any default values, and whether a property supports the NiFi Expression Language.

Display NameAPI NameDefault ValueAllowable ValuesDescription
LLM Provider Service *LLM Provider ServiceController Service:
LLMService

Implementations:
StandardAnthropicLLMService
StandardOpenAILLMService
The provider service for sending evaluation prompts to LLM
Content *ContentThe content to be summarized. FlowFile attributes may be referenced via Expression Language, and the contents of the FlowFile may be referenced via the flowfile_content variable. E.g., ${flowfile_content}

Supports Expression Language, using FlowFile attributes and Environment variables.
Output Strategy *Output StrategyFlowFile
  • FlowFile
  • Attribute
Determines response output destination
Results Attribute *Results AttributeThe name of the attribute to write the response to.

This property is only considered if:
  • the property Output Strategy has a value of Attribute
Max File SizeMax File Size10 MBThe maximum size of a FlowFile that can be summarized. If the FlowFile is larger than this, it will be routed to 'failure'.

Dynamic Properties​

This component does not support dynamic properties.

Relationships​

NameDescription
failureFlowFiles that cannot be processed are routed to this relationship
successFlowFiles that are successfully processed are routed to this relationship

Reads Attributes​

This processor does not read attributes.

Writes Attributes​

This processor does not write attributes.

State Management​

This component does not store state.

Restricted​

This component is not restricted.

Input Requirement​

This component requires an incoming relationship.

System Resource Considerations​

This component does not specify system resource considerations.

See Also​