Prompts & Agents

Zero-Shot Prompting

Asking the model to perform a task with only an instruction, no examples in the prompt.

In common use since 2020

Zero-shot prompting is asking an LLM to perform a task with only an instruction — no examples, no demonstrations, just a description of what you want. The model relies entirely on what it learned during pretraining and instruction tuning to generalise to the new task. Modern frontier LLMs are remarkably good at zero-shot: most everyday tasks (summarisation, translation, classification, basic coding) work well with nothing more than a clear sentence describing the goal.

The simplicity of zero-shot is its strength:

  • Cheap on tokens — no example overhead, just the instruction and the input.
  • Fast to ship — write a sentence, test, iterate.
  • No data needed — useful when you have no labelled examples to draw from.
  • Easy to maintain — one instruction is easier to keep clean than five examples plus an instruction.

Where zero-shot breaks:

  • Format-sensitive tasks — without examples the model may use a different format each time. JSON schemas, structured extraction and consistent style benefit hugely from few-shot.
  • Niche domains — medical, legal, scientific or proprietary jargon often needs examples to anchor the model.
  • Subtle distinctions — "extract only the primary issue from this support ticket" is hard zero-shot; an example showing the call clarifies it instantly.
  • Format consistency at scale — a zero-shot prompt that works 80% of the time is unusable in production where you need 99%.

The progression most teams follow:

  1. Zero-shot — write a clear instruction, see how far it gets.
  2. Add few-shot examples — when format or quality is short.
  3. Add chain-of-thought — when reasoning is short.
  4. Add retrieval — when the model lacks specific knowledge.
  5. Fine-tune — when prompting plus retrieval still does not close the gap.

In 2026 zero-shot is dramatically more capable than it was three years ago. GPT-5, Claude Sonnet 4 and Gemini 2.5 zero-shot at quality levels that would have required fine-tuned models in 2022. That progress means many production LLM features now ship with simple zero-shot prompts that would have been infeasible before, freeing teams to focus on integration, evaluation and product surface rather than prompt-craft.

For a US engineer adopting AI, the practical advice is: write the simplest zero-shot prompt that could possibly work, measure it on your eval set, and only add complexity (examples, chain-of-thought, retrieval) when measurement says you need to. Premature prompt elaboration is one of the most common time sinks in early AI projects.

Keep exploring

Looking for something else? The full glossary covers 120+ AI terms updated for 2026.

Open the glossary
Chat on WhatsApp