Chat Model Prompter

This node prompts a chat model using the provided user message, with an existing conversation history as context.

If you want to reduce the amount of consumed tokens, consider reducing the conversation table length to a reasonable (e.g. 5 conversation steps) length before feeding it into the node.

Options

System Message

The first message given to the model describing how it should behave.

Example: You are a helpful assistant that has to answer questions truthfully, and if you do not know an answer to a question, you should state that.

New message

The new message to be added to the conversation.

Conversation settings

Message roles column

Select the column that specifies the alternating sender roles assigned to each message. Example values are 'Human' and 'AI'.

Messages column

Select the column containing the messages composing the conversation history.

Input Ports

Icon

A chat model.

Icon

A table containing the conversation history, or an empty table.

Output Ports

Icon

A table containing the updated conversation history.

Popular Predecessors

  • No recommendations found

Popular Successors

  • No recommendations found

Views

This node has no views

Workflows

  • No workflows found

Links

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.