Learn Before
Example of a Spam Classification Prompt
An example of a prompt for a classification task is instructing a model to identify spam. The prompt might be structured as: 'Classify the following email as spam or not spam. Text: Congratulations! You’ve won a $500 gift card. Click here to claim now.' The model's task is to assign either the 'spam' or 'not spam' label to the provided text.
0
1
Tags
Ch.4 Alignment - Foundations of Large Language Models
Foundations of Large Language Models
Foundations of Large Language Models Course
Computing Sciences
Related
Example of a Spam Classification Prompt
A developer needs to use a language model to automatically sort customer feedback into three categories: 'Positive', 'Negative', or 'Neutral'. Which of the following instructions would be most effective for this specific goal?
Example of an Email Spam Classification Task
A prompt that instructs a language model to pull specific dates and financial totals out of an invoice is an example of a prompt for a classification task.
What is the primary objective of a prompt designed for a classification task when provided to a language model?
Explain why the engineer's prompt fails to function as a prompt for a classification task, and provide an improved prompt instruction that properly sets up the ticket routing task.