# Zero-Shot Prompting

> The Zero-Shot Prompting is a technique of asking a model to perform a task without giving any examples.

## What is zero-shot prompting?

The technique where a model receives only an instruction without examples of the expected result, relying on its general knowledge. Works well for simple and common tasks.

- Topic: Prompting
- Type: technique

## Example

Wrong:

```text
Classify this review: {{review}}
```

Right:

```text
Classify the review as 'positive', 'negative' or 'neutral'.
Reply with the label only.
<review>
{{review}}
</review>
```

Without examples, the prompt must spell out the allowed labels and format, or the model picks its own.

## Common mistakes

- Expecting an exact output format without describing it.

## Key points

- The task, the expected output format and the allowed labels are spelled out in the prompt.
- The prompt does not refer to examples, formats or labels that are not written out in it.

## Interview questions

### When does zero-shot prompting work well?

For common tasks the model already knows, like summaries, translation or simple classification, when the task and format are stated clearly.

### Zero-shot vs few-shot: which should I use?

Start with zero-shot. Add examples when the model gets the format or edge cases wrong.

### Is zero-shot prompting cheaper?

Usually, yes. Without examples the prompt is shorter and uses fewer input tokens.

## Related cards

- [Few-Shot Prompting](https://wonderium.dev/ai/few-shot-prompting.md)
- [Prompt Engineering](https://wonderium.dev/ai/prompt-engineering.md)
- [Chain-of-Thought](https://wonderium.dev/ai/chain-of-thought.md)

---

- Level: [Artificial Intelligence](https://wonderium.dev/ai.md)
- HTML version: https://wonderium.dev/ai/zero-shot-prompting
- Last updated: 2026-11-25
