Learn Before
Crafting an Effective Prompt with Demonstrations
A user is trying to get a language model to create a username from a full name. The desired format is the first initial of the first name followed by the full last name, all in lowercase. The user's initial prompt is: Create a username for the name: Ada Lovelace. The model incorrectly responds with AdaL. Rewrite the prompt to include one clear demonstration that will guide the model to produce the correct output, alovelace.
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
Example of a Prompt for Calculating the Average of 1, 3, 5, and 7
Insufficiency of Simple Demonstrations for LLM Reasoning Tasks
A user wants a language model to extract the main sentiment from a sentence and express it as a single emoji. The initial prompt, 'What is the sentiment of this sentence, as an emoji: The movie was a spectacular triumph!', results in the model responding with text like 'The sentiment is positive.' Which of the following revised prompts is structured to be the most effective at teaching the model the desired task?
Improving LLM Classification Consistency
Crafting an Effective Prompt with Demonstrations
Example of a Few-Shot Prompt for Polarity Classification