Learn Before
Analyzing a Prompt's Structure for In-Context Task Learning
A developer provides the following complete text to a large language model to get it to perform a specific information extraction task:
""" Extract the product name and price from the following sentences into a structured format.
Sentence: The new SuperWidget X1 costs $99.99. Extraction: {"product": "SuperWidget X1", "price": "$99.99"}
Sentence: For just $45, you can get the BasicModel 2. Extraction: {"product": "BasicModel 2", "price": "$45"}
Sentence: The premium UltraGadget Pro is on sale for $199. Extraction: """
Analyze the structure of this input. Explain the purpose of each distinct part of the text and describe how this overall structure helps guide the model to produce the desired output without being explicitly retrained.
0
1
Tags
Ch.4 Alignment - Foundations of Large Language Models
Foundations of Large Language Models
Foundations of Large Language Models Course
Computing Sciences
Ch.5 Inference - Foundations of Large Language Models
Ch.1 Pre-training - Foundations of Large Language Models
Analysis in Bloom's Taxonomy
Cognitive Psychology
Psychology
Social Science
Empirical Science
Science
Related
Example of In-Context Learning for Sentiment Classification
Example of an Instructional Prompt in a Few-Shot Setting for Sub-Problem Decomposition
Troubleshooting a Prompting Strategy
Demonstrations in In-Context Learning
A developer wants a language model to consistently translate informal text messages into a formal, professional tone. The goal is to guide the model's output by showing it examples of the desired transformation directly within the query, without altering the model's permanent parameters. Which of the following inputs best applies this in-context learning method?
Analyzing a Prompt's Structure for In-Context Task Learning
A developer is constructing a prompt to teach a language model a new task by providing examples directly in the input. Match each component of the prompt to its specific role in this in-context learning process.
Failure of Standard Few-Shot Prompting for Average Calculation