Icon

ChatGPT prompt on Historical Conversation

You can easily download and run the workflow directly in your KNIME installation. We recommend that you use the latest version of the KNIME Analytics Platform for optimal performance.

This workflow shows how to connect to the model behind ChatGPT and send prompts to it.

The key difference between a LLM and a ChatModel is that a ChatModel can refer to previous messages (conversation)

In order to run the workflow you need an OpenAI API key. If you don't have one already, register with OpenAI and create a new API key under https://platform.openai.com/account/api-keys

URL: OpenAI API Keys https://platform.openai.com/account/api-keys

Annotations and comments
  • Prompt OpenAI's ChatGPT This workflow shows how to connect to the model behind ChatGPT and send prompts to it. In order to run the workflow you need an OpenAI API key. If you don't have one already, register with OpenAI and create a new API key under https://platform.openai.com/account/api-keys To learn more about the workflow, click the left bar and check the description section.
  • First message with empty conversation, but with system prefix
  • Second (human) message with conversation history
  • What was my first message?
  • Authenticate with API key
  • Choose a model e.g. gpt-3.5-turbo
  • Provide an (empty) conversation table that has two string columns (Type, Message)

Nodes

Extensions

Links