Skip to the workspace
Pebellslearn by building
Core Prompting Techniques  ›  Lesson

Zero-Shot Prompting

Zero-Shot Prompting 12 minA zero-shot prompt gives the task with no examples, so its instruction, labels and output format must be precise.

prompt engineering / Zero-Shot Prompting

Explore each scene at your own pace.

01 · The rule

The rule

Zero-Shot Prompting

The simplest way to use a model is to describe the task and let it go, with no examples at all. For Spoke & Chain's triage that can work surprisingly well — or produce labels like "Bicycle Maintenance Inquiry (Positive Sentiment)". The difference lies entirely in how precise the instruction is.

The rule

No examples means the instruction must carry everything.

A zero-shot prompt gives a task and no worked examples. The model relies on what it learned in training about tasks like this. That is often enough for common jobs — summarise, translate, classify into obvious groups — because modern models have been trained heavily to follow instructions.

With no examples to copy, though, every detail you leave unsaid is a guess. A strong zero-shot prompt pins down:

  • The exact task — "classify", not "tell me about".
  • The allowed answers — a closed list, when there is one.
  • Definitions for borderline cases — what counts as a refund?
  • The input boundary — delimiters around the data.
  • The output format — exactly how the answer should look.
Classify the customer email between the <email> tags into exactly one
category: repair, order, refund, other.
- refund: the customer wants money back, even if other topics appear.
- order: buying, tracking or changing a purchase.
- repair: fixing or servicing a bike.
- other: anything else.
Reply with the category only, in lowercase.

<email>
The bell I bought is cracked. Can I just get my money back?
</email>

Expected output: refund.

Scene 1 of 5
Hover to wake the cannons. Drag to move, or use arrow keys when focused. Press Enter to fire a shot.