Learn Before
Example of Defining Category Semantics in a Polarity Classification Prompt
To enhance clarity in a polarity classification prompt, one can include definitions for each potential label. This involves not only instructing the model to classify the text but also explaining the meaning of each category. For instance, a prompt could state: 'Analyze the polarity of the following text and classify it as positive, negative, or neutral. Here’s what each category represents:'. This approach helps ensure the model's classification aligns with the intended standards.
0
1
Tags
Ch.3 Prompting - Foundations of Large Language Models
Foundations of Large Language Models
Foundations of Large Language Models Course
Computing Sciences
Related
Example of Defining Answer Semantics for Grammaticality Judgment
Example of Defining Category Semantics in a Polarity Classification Prompt
A data scientist is using a language model to classify customer feedback into 'Bug Report' or 'Feature Request'. Their initial prompt is:
Feedback: 'The app crashes when I try to upload a photo.' What kind of feedback is this?They observe that the model's outputs are inconsistent, including responses like 'This is a bug report,' 'It seems like a bug,' and 'The user is reporting a problem with the app.' Which of the following revised prompts best addresses this inconsistency by explicitly defining the required output format and the meaning of the categories?Improving Prompt Specificity for Automated Data Extraction
Refining a Prompt for Feature Request Identification
Example of a Constraint-First Prompt for Grammaticality Judgment
Learn After
Example Definition of the 'Positive' Category for Polarity Classification
Definition of the 'Negative' Category in Polarity Classification
A developer is using a language model to sort user feedback into three categories: 'Bug Report', 'Feature Request', and 'Praise'. The initial prompt is:
Classify the following feedback: [feedback text]. The developer observes that the model often misclassifies suggestions for improvement (e.g., 'It would be great if this button did X') as bug reports. Which of the following prompt modifications is most likely to resolve this specific ambiguity between the 'Bug Report' and 'Feature Request' categories?Definition of the 'Positive' Category in Polarity Classification
Refining a Polarity Classification Prompt
Improving a News Headline Classifier