D5Intermediate
Few-Shot vs Zero-Shot Comparison
30 minWhen you need formatted output
Format: Compare the output quality of giving AI examples vs not giving examples.
Zero-Shot (no examples):
"Classify the following user feedback as: positive, negative, neutral"
Few-Shot (with examples):
"Classify user feedback. Here are examples:
Feedback: 'This app is amazing!' -> positive
Feedback: 'The interface is confusing, can't find features' -> negative
Feedback: 'A new version was released' -> neutral
Now classify the following feedback: ..."
Practice scenarios:
- Email classification (urgent/normal/spam)
- Code review comment generation
- Product description rewriting
- Customer service reply generation