Icon

01 Three Steps GenAI - exercise

<p>This workflow demonstrates how <strong>a simple prompt</strong> can be used to determine the sentiment of product reviews.</p><p>The reviews are read from an Excel file, transformed into sentiment classification prompts, and sent to a connected LLM. The model returns the sentiment for each review, which is then cleaned and formatted for easier analysis.</p>
Annotations and comments
  • 01 3 Steps GenAI - Sentiment Analysis This workflow demonstrates how a simple prompt can be used to determine the sentiment of product reviews. The reviews are read from an Excel file, transformed into sentiment classification prompts, and sent to a connected LLM. The model returns the sentiment for each review, which is then cleaned and formatted for easier analysis.
  • Read data and create the prompt which instructs an LLM
  • Set up the OpenAI API key, authenticate, and select the LLM
  • Send the prompt, receive the sentiment, and prepare the output for display
  • Authenticate
  • Connect to LLM
  • Prompt the LLM Call the output column "Sentiment Prediction"
  • Read reviews
  • Create prompt
  • Application password
  • Select API key name
  • Join API name and SecretID
  • API key names and secretID
  • Remove whitespace from the response
  • Format text for display

Nodes

Extensions

Links