What you will learn
Use carefully chosen demonstrations to show a pattern in context.
In simple words
Few-shot examples show the model what a good transformation looks like within the current request. They are especially useful when the output format or decision rule is subtle.
Visual explanation: Show, then ask
Demonstration tokens establish a pattern before the new input arrives.
WATCH THE IDEA
Show, then ask
- 1Observe: Example
- 2Transformation: Pattern
- 3Outcome: New input
Observe: Example. Demonstration tokens establish a pattern before the new input arrives.
The diagram highlights Example, Pattern, New input. Use the labels to trace the main relationship from left to right.
Real-world example: Ticket normalisation
A team maps messy user messages into a fixed issue taxonomy.
What the team decides: Show reviewed examples of input-to-label transformations in the prompt.
Risk to avoid: Examples that are inconsistent or biased teach the wrong pattern.
Technical explanation
Few-shot examples show the model what a good transformation looks like within the current request. They are especially useful when the output format or decision rule is subtle.
Common misconception
This concept is not a guarantee of a correct outcome by itself. Its value depends on suitable evidence, careful implementation, and evaluation against the real task.
QUICK QUIZ
What is the purpose of a few-shot example in a prompt?
Practical application
Show reviewed examples of input-to-label transformations in the prompt.
Key takeaway
Examples in the prompt guide this response, not the model's permanent weights.
Next concept
Continue with System Instructions.
Was this lesson helpful?
Lesson discussion
Comments are reviewed before publication. Keep discussion focused on learning and do not post private information.
Loading discussion…
Your quiz answer and current lesson are saved on this device. Sign in to explore account-backed learning features.
Content version 1 · Last reviewed 2026-10-16