Learn Before
Crafting a Constraining Command for an LLM
A data scientist is using a large language model to classify thousands of user product reviews. For their data processing pipeline to work correctly, the model's output for each review must be only one of the following three words: 'satisfied', 'dissatisfied', or 'neutral'. Write a single, imperative sentence that you would add to the end of their prompt to ensure the model provides the output in this exact 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
Application in Bloom's Taxonomy
Cognitive Psychology
Psychology
Social Science
Empirical Science
Science
Related
Example of a Prompt with a Post-Input Instruction for Polarity Classification
A developer is building an automated system to sort customer support tickets. The system requires a language model to categorize each ticket's sentiment so it can be routed correctly. For the system to work, the model's output must be exactly one of the following words: 'Positive', 'Negative', or 'Neutral'. Which prompt most effectively uses a direct, imperative command to achieve this specific, constrained output?
Crafting a Constraining Command for an LLM
Diagnosing a Failing Data Labeling Pipeline