LLM Node
The LLM Node processes incoming text prompts and generates responses using a local or specified language model. It enables integration of AI-powered conversational or generative text capabilities within your application, without relying on external APIs.
| Number of inputs | 0 |
| Number of outputs | 0 |
Configuration​
prompt (Optional)​
Type: String
A text prompt that guides the behavior of the LLM when generating responses. This can be used to set the context, style, or instructions for the AI's replies. If omitted, a default prompt will be used.
modelPath (Optional)​
Type: String
The initial model to load in the LLM node. Only used when initializeModel is set to true. If the model cannot be loaded (missing file, a chat template llama.cpp does not support, or not enough GPU or CPU memory for its weights, KV cache and compute buffers), creating the node fails with the reason, and so does the graph or engine that contains it. When initializeModel is true, a node is never created without a working model.
initializeModel (Optional)​
Type: Bool
When set, the LLM node loads the model when it is created. Default value is true.
contextSize (Optional)​
Type: Int
The context size, in tokens, the model is loaded with. This bounds how much of the conversation the node can keep — see Conversation history. Larger values remember more but cost memory: the KV cache grows linearly with the context size.
temperature (Optional)​
Type: Float
Sampling temperature; defaults to 0.8. Higher values make replies more varied, lower values more
predictable. Set it to 0 to always take the most likely token, which makes generation
deterministic — useful for tests, where the same prompts must produce the same replies.
seed (Optional)​
Type: Int
Sampling seed. Set it to make generation reproducible at a non-zero temperature; omit it for a
random seed on each run. Ignored when temperature is 0, since that path does not sample.