GTM Engineering term, AI and agents

Few-Shot Prompting

Few-shot prompting is giving a language model a handful of worked input and output examples inside the prompt, so it copies the pattern, format and judgment on a new input.

Also called: few-shot, few-shot prompting, zero-shot, one-shot, in-context learning, example prompting

Few-Shot Prompting sits under every stage: it's part of the data and systems the whole funnel runs on, near related terms like Prompt engineering, Chain of Thought (CoT) and System prompt (the blue squares).

Few-shot prompting is giving a language model a handful of worked examples inside the prompt before the real task. Each example pairs an input with the output you want. The model then copies the pattern on new input. It is the simplest way to get consistent format, tone and judgment from AI without training anything.

How it works

Models are very good at continuing patterns. Show three examples of a messy job title mapped to a clean persona, and the fourth one usually comes back in the same shape. The examples carry rules that are hard to write in words, like tone, length and where the line sits between two categories.

The family of approaches:

  • Zero-shot: instructions only. Works for simple, common tasks.
  • One-shot: one example. Good for locking in an output format.
  • Few-shot: several examples, often three to five. Best for judgment calls and edge cases.

A few-shot prompt has three parts. First, the instructions and rules. Second, the examples, each with a clear input and output, ideally in the same format you will parse. Third, the new input. Put stable examples in the system prompt so they apply to every call. Rotate examples only when testing.

Pick examples on purpose. Include at least one hard case for each category and one "none of the above" case. If every example is a clear-cut yes, the model learns to say yes.

Example

A RevOps team needs to map 40,000 free-text job titles to five buyer personas (all numbers hypothetical). They test three prompts on 200 hand-labeled titles.

Prompt Examples given Correct on test set
Zero-shot 0 148 of 200 (74%)
One-shot 1 162 of 200 (81%)
Few-shot 5, including tricky titles 186 of 200 (93%)

The five examples that moved the needle:

  • "VP Revenue Operations" maps to Ops Leader, not Sales Leader.
  • "Head of Growth" at a 30-person company maps to Marketing Leader.
  • "Founder & CEO" maps to Executive.
  • "Sales Ops Analyst" maps to Ops Practitioner.
  • "Student" maps to None.

Zero-shot kept tagging RevOps titles as sales leaders. One example of the right call fixed most of those errors.

By company size

Small business: An owner writing social posts gets a much better result by pasting three past posts they liked and saying "write the next one like these." That is few-shot prompting, and it beats a long description of brand voice.

Mid-market: GTM engineers use few-shot prompts for title normalization, lead classification, reply categorization and email drafts. They keep the examples in version control and measure changes with evals.

Enterprise: Teams maintain example libraries per region, product line or language. Examples must be scrubbed of customer data before they go into shared prompts.

Few-shot prompting vs fine-tuning

Few-shot examples steer the model for one request and cost a few hundred tokens. Fine-tuning trains a model on many examples so the behavior sticks without a long prompt. Few-shot is fast to change and needs no training data pipeline. Fine-tuning can make sense at very high volume or for a narrow, stable task. Most GTM teams never need it.

Why it matters for GTM teams

Most "the AI doesn't get it" complaints are really "we never showed it what good looks like." Examples fix that faster than longer instructions. We'd build every high-volume GTM prompt with three to five carefully chosen examples, cover the tricky cases first, and return answers as structured output so automation can trust the shape. Add chain of thought when the examples need to show reasoning, not just answers.

Common mistakes

  • Using only easy examples, so the model never learns the hard boundary.
  • Examples that contradict the written instructions.
  • All examples sharing one length or tone you never meant to require.
  • Pasting real customer names and emails into shared prompts.
  • Changing examples without re-running a test set, so quality drifts.
  • Using so many examples that the real input gets lost.
  • Formatting examples one way and asking for output in another, which confuses the model about which pattern to follow.

FAQ

What is the difference between zero-shot, one-shot and few-shot prompting?

Zero-shot gives the model only instructions and no examples. One-shot adds a single example, and few-shot adds several, often three to five. More examples usually help with format and judgment calls, up to the point where they crowd the prompt or start to repeat each other.

How many examples should a few-shot prompt include?

Many teams start with three to five and test from there. Cover the hard cases and the main categories, not five versions of the easy case. If you need dozens of examples to get it right, the task may suit fine-tuning or a clearer rule set better.

Is few-shot prompting the same as fine-tuning?

No. Few-shot examples live in the prompt and affect only that request, and you can change them in seconds. Fine-tuning changes the model itself using many examples and takes more time, data and cost. Try few-shot first, since it solves most GTM formatting and tone problems.

See all AI and agents terms ↳