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.
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.
The new message to be added to the conversation.
Select the column that specifies the alternating sender roles assigned to each message. Example values are 'Human' and 'AI'.
Select the column containing the messages composing the conversation history.
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.
To use this node in KNIME, install the extension KNIME Python Extension Development (Labs) from the below update site following our NodePit Product and Node Installation Guide:
A zipped version of the software site can be downloaded here.
Deploy, schedule, execute, and monitor your KNIME workflows locally, in the cloud or on-premises – with our brand new NodePit Runner.
Try NodePit Runner!Do you have feedback, questions, comments about NodePit, want to support this platform, or want your own nodes or workflows listed here as well? Do you think, the search results could be improved or something is missing? Then please get in touch! Alternatively, you can send us an email to mail@nodepit.com.
Please note that this is only about NodePit. We do not provide general support for KNIME — please use the KNIME forums instead.