Back to Basics

What Do Zero Shot and Few Shot Actually Mean?

What Do Zero Shot and Few Shot Actually Mean?
AI Tutorials Team 16 April 2026

Zero shot and few shot sound like machine learning jargon and describe something everyday: whether you showed the model examples of what you wanted. The terms come up constantly in documentation and research, and the underlying decision is one you make every time you write a request.

What does zero shot mean?

Asking a model to do something without giving any examples. Classify this review as positive or negative, with no sample classifications provided. The model works from the instruction alone, drawing on what it learned during training about what those words mean.

Almost everything anyone types into a chat window is zero shot. It works because modern models were specifically trained to follow instructions, which was not true of earlier systems.

What does few shot mean?

Including a small number of worked examples in the prompt before the real request. Two or three input and output pairs showing exactly the transformation you want, then the item you actually need handled.

The model is not learning in any lasting sense. Nothing is updated, and the examples vanish when the conversation ends. It is pattern matching within the current input, which is why the technique is more accurately called in-context learning.

When do examples genuinely help?

  • Specific formats. When the exact shape of the output matters and describing it takes longer than showing it.
  • Subjective judgements. Where your definition of a category differs from the obvious one.
  • Style matching. Tone is far easier to demonstrate than to describe.
  • Edge cases. Showing how you want ambiguous items handled.
  • Repetitive work. Anything you will run hundreds of times, where consistency matters more than flexibility.

When are examples unnecessary?

For common tasks with an obvious right answer. Summarising, translating, explaining, correcting grammar and answering questions all work well zero shot, and adding examples wastes tokens without improving anything.

They can actively hurt, too. If your examples share an incidental feature, such as all being short or all concerning the same subject, the model will copy that feature. Three examples that happen to be one sentence long will produce one-sentence answers whether or not you wanted them.

How many examples are worth including?

Between two and five for most purposes. One is often too few to establish a pattern, and gains flatten quickly after about five. Beyond that you are paying tokens on every request for diminishing benefit, and at that point fine-tuning starts to look more sensible.

Variety matters more than quantity. Three examples covering different situations teach more than ten near-identical ones.

What is one shot, and why does the counting matter?

One shot is exactly what it sounds like: a single example. The terms come from research, where the number of examples is a variable being measured, which is why the vocabulary is precise about something that seems trivial.

In benchmark results this matters. A model reported as scoring well few shot may perform noticeably worse zero shot, and comparisons between models are only meaningful when the same conditions applied to both.

Where do the examples go?

Before the real request, and clearly separated from it. A consistent structure helps: label each example, keep the same format throughout, and make the final item obviously the one to be answered rather than another example.

Order has a measurable effect too. Models are influenced by the last example more than the first, so putting the case most like your typical input at the end is a small improvement worth taking.

How should you use this in practice?

Start zero shot, because it is quicker and often sufficient. If the output is nearly right but consistently wrong in the same way, add two or three examples demonstrating the correction. Choose them to include an awkward case rather than three easy ones.

And check what your examples have in common before blaming the model for copying something you did not intend. That single check resolves most of the strange behaviour people attribute to few shot prompting.