PromptOllama 2025.3.28.13-SNAPSHOT¶
BUNDLE¶
com.snowflake.openflow.runtime | runtime-ollama-nar
DESCRIPTION¶
Sends a prompt to Ollama, writing the response either as a FlowFile attribute or to the contents of the incoming FlowFile. The prompt may consist of pure text interaction or may include images. In the case of images the contents of the FlowFile will be used. Since the Web Client Service will also be used to download models the Timeouts should be set high to allow for large model downloads.
INPUT REQUIREMENT¶
REQUIRED
Supports Sensitive Dynamic Properties¶
false
PROPERTIES¶
Property |
Description |
---|---|
Image Model Name |
The name of the Ollama model for images |
Max File Size |
The maximum size of a FlowFile that can be sent to Ollama as an image. If the FlowFile is larger than this, it will be routed to ‘failure’. |
Output Strategy |
Determines response output destination |
Prompt Type |
The type of prompt to send to Ollama |
Response Format |
The format of the response from Ollama |
Results Attribute |
The name of the attribute to write the response to. |
Seed |
The seed to use for generating the response |
Service URL |
The URL to use to communicate with Ollama |
System Message |
The system message to send to Ollama. 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} |
Temperature |
The temperature to use for generating the response. |
Text Model Name |
The name of the Ollama model for text |
Top P |
The top P value to use for generating the response |
User Message |
The user message to send to Ollama. 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} |
Web Client Service |
The Web Client Service to use for communicating with Ollama. Set timeouts greater than 5 mins for model downloads. |
RELATIONSHIPS¶
NAME |
DESCRIPTION |
---|---|
failure |
If unable to obtain a valid response from Ollama, the original FlowFile will be routed to this relationship |
success |
The response from Ollama is routed to this relationship |