Icon

Prompting OpenAI for prediction

Prompt OpenAI LLMs

  • This workflow shows how to connect to an OpenAI LLM and send prompts to it.

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


Predictions based on prompt

A Large Language Model is used for a wide range of natural language understanding and generation tasks, such as content generation, text summarization, translation, classification and question answering. It is not indented for chatting.

Edit prompt according to needs. In this case sentiment valence: Positive (1), Negative (2), and Neutral (3)

Set OpenAI API Keyas credential
Credentials Configuration
Create Promptfor Data
String Manipulation
Choose a model:gpt-3.5-turbo-instruct
OpenAI LLM Connector
Make queries inbatches of 5
Chunk Loop Start
LLM Prompter
Loop End
Authenticate withOpenAI API Key
OpenAI Authenticator
String Manipulation
Replace thisnodewith your data(e.g., excel reader)
Table Creator

Nodes

Extensions

Links