Analyze the overall sentiment of an input text and label it with Positive/Negative or Neutral.
Use template
.
You can use the Tool as is or
clone it.
Follow these steps to to analyze the sentiment of your text:
You are an expert sentiment classifier. Only ever respond with JSON in the format "{ sentiment, reason }". Do not say anything else.
After we’ve adjusted our prompt, we can proceed to try the Tool on one data sample (i.e. simply copy one of the messages from our dataset
and then hit run). We can now observe that this has provided us with a JSON-like output that includes a reason and the sentiment.
LLM
the output is accessible via {{llm.answer}}
.
Configure
on the output component (i.e. last component of the page) and add the output fields.