PaPoo
cover

What is zero-shot prompting?

Zero-shot prompting is asking an AI model to do a task without giving it any worked examples first.

Why it matters

It is the simplest way to use a large language model: you describe the task in plain language and let the model infer the pattern from its pretraining. That makes it useful when you want:

In practice, many teams start with zero-shot prompting before adding examples or tools.

How it works

The model has already learned broad language patterns during pretraining. A zero-shot prompt asks it to apply that prior knowledge to a new instruction without showing input/output pairs.

A typical zero-shot prompt includes:

The model then generates an answer based only on the instruction and the input. This is different from few-shot prompting, where you include examples to steer the output format or behavior.

Zero-shot prompting works best when the task is already common in the model’s training distribution, or when the instruction is very clear.

Tiny concrete example

Prompt:

Classify this email as billing, technical, or other:
"My invoice was charged twice this month."

Possible response:

billing

No examples were provided; the model inferred the task from the instruction alone.

Common pitfalls / when NOT to use it

If you need stable output across many inputs, zero-shot is often a starting point, not the final prompt design.

Related terms

同じ著者の記事