Few-Shot Learning means giving the AI 2-5 examples before asking it to do a task. "Here are 3 examples of how to classify emails as spam/not spam. Now classify this one." AI learns the pattern from examples and applies it. Much more accurate than zero-shot (no examples) for complex or specific tasks. Works via "in-context learning"—AI infers the pattern without changing model weights. Sweet spot: 2-5 examples, more doesn't help much.
Use few-shot when zero-shot quality isn't good enough: domain-specific tasks, exact output format, consistent style, or when accuracy matters. Start with 2-3 examples, test, add more if needed. Diminishing returns after 5 examples. For 100+ examples or long-term use, consider fine-tuning instead. Few-shot works great for: classification, extraction, formatting, style matching.
Ai Vocabulary
Show AI examples first