Skip to content

Zero-shot Prompting

An approach where models are given a task without examples — only an instruction. The model solves it based on the knowledge acquired during training.

Example

Determine the sentiment of the review: "Fast delivery, everything is great."

The model responds with «positive» without any examples.

Zero-shot vs Few-shot

Zero-shot Few-shot
Examples 0 2–5
When Simple tasks Complex format
Context usage Less More

When to Use

  • The task is well-known to the model;
  • No desire to spend context on examples;
  • Need for a quick prototype.

If the format is complex or the model makes errors — add examples, moving to few-shot.

See Also

← All terms