Show & Tell — Few-Shot Prompting
Teach AI your exact pattern with examples
Teaching a New Skill 🏫
Remember learning to tie your shoelaces? Nobody just said "tie your shoes" and walked away. They sat next to you, showed you step by step, and let you copy. You learned by seeing examples first. Few-shot prompting works exactly the same way. Instead of just telling the AI what to do, you SHOW it a few examples first. The AI sees your pattern and applies it to your real question. One example = one-shot. Two or more examples = few-shot. Both are incredibly powerful.
🤔 Why Not Always Use Zero-Shot?
Zero-shot is great, but sometimes AI needs to see your specific pattern. When does few-shot win? ✅ When you want a very specific output format ✅ When you're doing repeated classification tasks ✅ When the AI keeps misunderstanding the 'shape' of your answer ✅ When you have a custom style that's hard to describe in words
🍕 One-Shot: Learning from a Single Example
You run a pizza restaurant and want AI to format orders consistently. Show ONE example first:
AI learned the format from ONE example and applied it perfectly.
😊 Few-Shot: Teach a Classification System
Teach AI to classify product reviews with your custom emoji system:
Without the examples, AI wouldn't know your emoji classification system!
💡 Rules for Good Few-Shot Examples
Quick Quiz
Test what you learned from this chapter. No pressure — it's just for you!
What is "one-shot" prompting?