Skip to content
B3 · Talking to Models

Few-shot examples

builds on:B1(soft - not required)
Layer 0Plain English · 60 sec

Few-shot prompting means showing the model 2-5 examples of exactly the input/output pattern you want, instead of just describing it. Models are much better at copying a demonstrated pattern than following an abstract description - "show, don't tell" applied to AI.

Layer 1How it actually works

This works because the model is a pattern-completer at its core - giving it several input→output pairs strongly conditions what "the next output" should look like, often more reliably than lengthy instructions. It's especially powerful for consistent formatting, tone-matching, or classification tasks where the "shape" of the output matters more than creative variation.

Layer 2Try it / see it

Ask the model to write a one-line product description with no examples first. Then give it 3 examples of the exact style/length you want and ask for a 4th. Compare consistency.

Quick check

Why does showing a model 2-5 examples (few-shot) often work better than describing what you want?