Learn Before
Constructing a Prompt for Email Classification
You are designing a system to classify emails. You have a variable, {email_text}, which will contain the full body of an email. Your task is to write a complete prompt template that instructs a language model to classify the email as either 'Spam' or 'Not Spam'. Your template must include the {email_text} variable and the necessary fixed text to guide the model.
0
1
Tags
Ch.3 Prompting - Foundations of Large Language Models
Foundations of Large Language Models
Foundations of Large Language Models Course
Computing Sciences
Application in Bloom's Taxonomy
Cognitive Psychology
Psychology
Social Science
Empirical Science
Science
Related
A developer needs a language model to generate a one-sentence summary of a customer review. To do this, the developer will place the customer's review into a pre-defined text structure. Which of the following structures uses its fixed, unchanging text most effectively to instruct the model to perform this specific task?
Constructing a Prompt for Email Classification
Example of a Prompt Template for Semantic Similarity
A developer is using the text structure 'Here is some text: {unstructured_text}. What are the key-value pairs?' to extract information from a user's message. The model's responses are often conversational and not in the desired structured format. Which of the following changes to the fixed, instructional text would be most effective at guiding the model to produce a structured key-value pair output?