← Back to Glossary
Few-Shot vs. Zero-Shot Prompting
Zero-shot asks the model to perform a task with no demonstrations; few-shot provides 1 to 5 example input/output pairs in the prompt.
Why it exists
Providing concrete examples guides model formatting and reasoning without needing model fine-tuning.
How it works
Zero-shot: 'Extract sentiment: Great product.' Few-shot: 'Text: Loved it. -> Pos. Text: Bad. -> Neg. Text: Great product. ->'
Related terms
Where you'll use this
roadmap