
Two prompts, same task. The first says: "Rewrite this paragraph so it sounds friendlier." The second says the same thing but shows two before-and-after pairs first. The second almost always comes back closer to what you had in mind. The real question is whether the extra work was worth it for that particular job.
Zero-shot and few-shot are not beginner and advanced versions of the same thing. They solve two different kinds of uncertainty, and picking the wrong one costs you either time or precision. Most people guess. Here's how to decide on purpose.
Zero-shot prompting: instructions and nothing else
A zero-shot prompt states the task, the constraints, and the output you expect. No examples attached.
Rewrite each customer complaint below as a single sentence in plain English. Keep it under 20 words. Do not add opinions.
That's the whole prompt. It works because the task is common and the shape of the answer is obvious: a list of short sentences, one per complaint. Ask for a subject line, a three-bullet summary, or a JSON object with named fields and you'll get something usable on the first pass.
Zero-shot shines when you're still deciding what you want. You can test five variations of the wording in the time it takes to write one polished example. Shorter prompts are also easier to read later, when you've forgotten why you chose that phrasing.
Where it slips is adjectives. "Formal." "Punchy." "Friendly but professional." These words carry a private definition in your head and a statistical average in the model's output. Zero-shot rarely fails loudly. It returns something plausible and slightly off, which is worse, because you might ship it.
Few-shot prompting: showing instead of describing
Few-shot puts two or three finished examples ahead of the live input. Rather than describing the register you want, you demonstrate it. The usual shape is an instruction, then a few labeled pairs, then the new item:
Rewrite each note in the house voice.
Input: "Payment failed again, third time this week."
Output: "Your payment didn't go through this time. Here's how to fix it."
Input: "App crashed when I uploaded a PDF."
Output: "The upload didn't complete. Try the file again or send it to us."
Input: [your live item]
Two or three examples is the sweet spot. One can be read as a coincidence rather than a rule. Four or five rarely change the output and eat the context you might want for the actual content. And examples don't replace clear instructions. They narrow them. Say what you want, then show it.
Three jobs where examples earn their keep
Tone matching
Tone is the hardest thing to specify in words and the easiest to show. If your voice is "warm, direct, no exclamation marks, never says simply," two samples of approved copy will outperform a paragraph of adjectives. One trick that saves a lot of back-and-forth: include a short example of the voice you don't want, with a one-line note explaining why it's wrong. Labeled negatives draw the boundary faster than positive examples alone.
Formatting
When output has to match a template exactly — a fixed heading order, a specific set of fields, a changelog entry with three lines and a date — examples remove guesswork. Show one filled sample using dummy content. Prose instructions like "use a table where appropriate" get interpreted. A filled table gets copied.
Classification with fuzzy edges
Categories like Billing, Bug, and Feature Request sound obvious until a customer asks for a refund on a buggy feature, or asks about the price of a plan they can't find. One example per awkward overlap tells the model which label you prefer when both would be defensible. Decide the rule once, show it, and your labels stay consistent across hundreds of items.
When zero-shot is the better call
- The task is generic: summarizing, translating, rewriting, pulling out names and dates.
- The categories are self-explanatory and don't overlap.
- The format is conventional and you'd accept normal variation in wording.
- You're still exploring the task and writing examples would lock in a direction too early.
- Prompt length matters. Long example blocks push the live input toward the edges and slow everything down.
A habit worth building: run zero-shot first, read the result, then decide what's missing. If the first attempt is eighty percent right, one example that fixes the gap beats rewriting the whole prompt.
A decision checklist
- Can you state the rule in one sentence? Try zero-shot.
- Does the output need to match a specific voice? Add two examples of approved copy, plus one labeled negative.
- Does the output feed another tool or a template? Add one filled example of the exact shape.
- Are any categories ambiguous at the edges? Add one example per tricky boundary.
- Did zero-shot come back close but consistently wrong in the same way? Add one example that fixes that specific pattern.
- Still off after three examples? The instruction is the problem, not the examples. Rewrite the task sentence and keep the examples as they are.
Writing examples that actually help
- Keep them short. A 40-word example teaches the pattern. A 400-word one teaches the subject matter and invites copying.
- Match the real inputs. If most items are messy one-liners, don't show tidy paragraphs.
- Vary the surface, not the rules. Different topics, identical format.
- Label the output you want, not the one you'd tolerate.
- Separate the live input clearly with a heading like "Input:" and put it last.
- Hold the examples steady while you test instruction changes, so you're varying one thing at a time.
Start with zero, add examples where the output drifts
The practical rule is simple: zero-shot is your default, few-shot is your correction. Send the task with clear instructions, look at what comes back, and ask one question. Is the model missing information, or is it missing a demonstration?
If it understands the request but keeps getting the shape or the tone wrong, show it two examples. If it doesn't understand the request, no number of examples will save the prompt — fix the instruction instead. That single distinction resolves most prompting decisions in under a minute.
Keep a small library of example pairs you've already approved: three for tone, three for your most common output format, a handful for your classification edges. When a new task needs a particular voice or structure, you'll usually find something that fits, which turns a ten-minute prompt-writing session into a quick copy and paste.
Photo: Pezibear / Pixabay



