Zero-Shot and Few-Shot Prompting
When a single instruction is enough, and when examples are needed. How to write effective few-shot examples and why format consistency matters.
Zero-Shot: No Examples Needed
A zero-shot prompt is a request with no demonstration examples. You describe the task and expect the model to handle it from its training.
Modern models (for example GPT-6.2 Astra, Claude Opus 5.5, Gemini 4 Argon) perform well on zero-shot tasks. Most of them are reasoning models that think before they answer, so OpenAI advises starting with zero-shot and adding examples only when that falls short.
Zero-shot classification example:
Classify the sentiment of the following review. Reply with one word: positive, negative, or neutral.
Review: "Delivery arrived on time, the product matches the description, but the packaging was slightly dented."
For clearly defined tasks with an obvious format, zero-shot works great.
The rest of this lesson opens after a free sign-up
Sign up with email or Google: the first two lessons of every course stay open for good, and the whole catalog is open for 7 days. No card needed.


