Learn Before
Constructing a Structured Prompt for a Classification Task
You need a language model to act as a 'Sentiment Analyzer'. The model should take a customer review as input and output one of three sentiment labels: 'Positive', 'Negative', or 'Neutral'. Write a complete, structured prompt for this task. Your prompt must use distinct, labeled fields to clearly separate the instructions, the input data, and to guide the model towards the desired output format.
0
1
Tags
Ch.3 Prompting - Foundations of Large Language Models
Foundations of Large Language Models
Foundations of Large Language Models Course
Computing Sciences
Creation in Bloom's Taxonomy
Cognitive Psychology
Psychology
Social Science
Empirical Science
Science
Related
A developer is creating a prompt to have a language model summarize a news article. The initial prompt, shown below, often results in the model confusing the instructions with the article content itself.
Initial Prompt:
Summarize the following text into three paragraphs. It's about a new AI chip. A new AI chip was announced today by a major tech company. It promises to be 10x faster than previous models...Which of the following revised prompts best uses distinct fields to resolve this ambiguity and improve clarity for the model?
Constructing a Structured Prompt for a Classification Task
Diagnosing Inconsistent LLM Behavior