Learn Before
Analyzing a Flawed Prompt
A user wants a language model to categorize customer feedback into one of three categories: 'Positive', 'Negative', or 'Neutral'. They provide the model with the following text:
Input: The checkout process was confusing and took too long.
The model's responses are inconsistent, sometimes generating a long paragraph instead of a single category label. Based on the typical structure of an effective instruction-based prompt, identify two key components that are missing and explain how their absence causes the inconsistent output.
0
1
Tags
Ch.1 Pre-training - 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
Example of a Complete Prompt for Polarity Classification
A user provides the following text to a large language model:
`Classify the sentiment of the following movie review. The sentiment can be one of {positive, negative}.
Review: "This film was a masterpiece of storytelling and cinematography." Sentiment:`
Which of the following options correctly breaks down the components of this prompt and their respective functions?
Analyzing a Flawed Prompt
Improving Prompt Structure for Better LLM Outputs