Skip to main content

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 inputs0
Number of outputs0

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.

initializeModel (Optional)​

Type: Bool

When set the LLM not will initialize the model when it is created. Default value is false.


Values​

Inherits values from its parent, Node.


Actions​

Inherits actions from its parent, Node.

loadModel​

Loads an LLM model.

Parameters​

NameTypeDescription
modelPathStringThe file path of the model file.

setInput​

Sends a request to the LLM model with the given text.

Parameters​

NameTypeDescription
textStringThe text to send to the LLM model.

Events​

Inherits events from its parent, Node.

response​

Emitted when the LLM model responds.

Data​

NameTypeDescription
textStringThe text to received from the LLM model.