Skip to main content

Zero-shot prompting

Prompting

Instructions and context without worked examples—fast to iterate, but less precise than few-shot for niche formats.

Zero-shot prompting relies on the model’s prior behavior: clear constraints, roles, and output schemas matter. It contrasts with few-shot prompting, where you include demonstrations.

When to prefer each

Zero-shot for exploration and tight context windows; few-shot when a small example teaches the shape better than prose.