Learn Before
Example of a Zero-Shot Prompt for Polarity Classification (Negative Sentiment)
A zero-shot prompt combines an instruction that defines the task with a new input for the model to process, without providing any prior examples. For instance, to classify the sentiment of a negative text, the prompt would be structured as follows:
'Assume that the polarity of a text is a label chosen from {positive, negative, neutral}. Identify the polarity of the input.
Input: The traffic is terrible during rush hours, making it difficult to reach the airport on time.'
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
Related
Example of a Complete Prompt for Polarity Classification
Components of an Instruction-based Prompt
Zero-Shot Learning with LLMs
Example of a Zero-Shot Prompt for Polarity Classification (Negative Sentiment)
Examples of Instruction-based Prompts for Polarity Classification
Using Descriptive Prompts for Novel Classification Tasks
Challenge of Prompting LLMs for Many-Category Classification
Example of a Zero-Shot Prompt for Polarity Classification (Positive Sentiment)
Example of a Zero-Shot Prompt for Polarity Classification (Positive Sentiment on Food)
Adapting Prompt Detail to an LLM's Task Familiarity
A developer needs a large language model to classify incoming customer support tickets. The goal is to sort each ticket into one of three specific categories: 'Technical Issue', 'Billing Inquiry', or 'General Feedback'. Which of the following prompts is best structured to achieve this task reliably and consistently?
Diagnosing Ineffective Prompt Instructions
Crafting an Instruction for a Novel Task
Instructing LLMs with Detailed Descriptions
Learn After
A developer wants a large language model to determine the sentiment of a user's comment. The model should not be given any prior examples within the prompt itself, and the output must be one of the following labels: {positive, negative, neutral}. Which of the following prompts best follows these requirements?
Crafting a Zero-Shot Prompt for Sentiment Analysis
Diagnosing a Flawed Zero-Shot Prompt