Skip to main content

PromptLLM

Description

This processor sends a user defined prompt to a Large Language Model (LLM) to respond.

Tags

AI, LLM, prompt, 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
User Message *User MessageThe user message to send to the LLM. 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.
Assistant MessageAssistant MessageThe assistant message to send to the LLM. 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}. The assistant message is added last

Supports Expression Language, using FlowFile attributes and Environment variables.
System MessageSystem MessageThe system message to send to the LLM. 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}. The system message is added first.

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

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