Improving a Prompt for Text Classification
A developer is using a large language model to classify customer feedback as 'Positive', 'Negative', or 'Neutral'. They use the following prompt structure:
'Here is some customer feedback: [customer feedback text]. What is your analysis?'
The model often responds with a detailed paragraph explaining the sentiment instead of a single-word label. Identify the primary weakness in this prompt and explain how you would modify it to guide the model to consistently output only one of the three desired labels.
0
1
Tags
Ch.3 Prompting - Foundations of Large Language Models
Foundations of Large Language Models
Foundations of Large Language Models Course
Computing Sciences
Analysis in Bloom's Taxonomy
Cognitive Psychology
Psychology
Social Science
Empirical Science
Science
Related
A user wants to classify a piece of text using a large language model. They provide the following prompt:
'The movie was incredibly boring and the plot was predictable. What do you think?'
Which of the following statements best analyzes the primary weakness of this prompt for a classification task?
Example of an LLM Generating a Descriptive Negative Output for Polarity Classification
Improving a Prompt for Text Classification
You are tasked with creating a prompt to determine the sentiment of a customer review. Arrange the following components into the most effective and clear structure for a large language model.