Automation and AI

Few-Shot Prompting

Also called few-shot learning, one-shot prompting, zero-shot prompting

Giving an AI model a small number of worked examples inside the prompt, so it follows the same pattern, format or tone in its answer.

Quick facts: Few-Shot Prompting

Category
Automation and AI
Also called
few-shot learning, one-shot prompting, zero-shot prompting
Level
Beginner
Affects
AI output quality, brand voice consistency, classification accuracy, team efficiency
Where to see it
ChatGPT, Claude, Gemini, Microsoft Copilot, saved prompt templates
In this article4
  1. How few-shot prompting works
  2. Why it matters
  3. Common mistakes
  4. How to act on it

Few-shot prompting is a way of instructing an AI model by including a handful of worked examples in the prompt, so the model follows the same pattern in its own answer. Zero-shot means giving instructions with no examples; one-shot means giving a single example; few-shot usually means two to five.

How few-shot prompting works

Language models are very good at continuing patterns. When you show them two or three pairs of input and output, they infer the rule connecting them and apply it to the next input, without any retraining. Nothing about the model changes: the examples sit in the prompt for that request only, which is what separates this approach from fine-tuning.

A simple example for classifying customer enquiries might look like this:

  • “Do you cover Croydon?” → Service area
  • “How much is a boiler service?” → Pricing
  • “My engineer didn’t turn up today” → Complaint
  • “Can I change my Thursday appointment?” → ?

The model sees the pattern and answers “Booking change” or similar. You could describe the categories in words, but the examples show the boundaries between them more precisely than a description usually can.

The same technique works for tone. If you want product descriptions in your brand voice, paste three of your best existing descriptions, then ask for a new one. The model picks up sentence length, vocabulary and structure far more reliably than it does from an instruction such as “friendly but professional”.

Why it matters

Most disappointing AI output comes from vague instructions. Few-shot prompting is the quickest fix available to a small business without technical help. It makes output more consistent, which matters when several people in a team are using AI for the same task, and it keeps copy closer to your tone of voice rather than the generic style these tools fall back on.

It is also useful for repetitive marketing jobs: drafting meta descriptions in a set format, tagging reviews by theme, rewriting supplier specifications into plain British English, or sorting search terms by intent.

Common mistakes

  • Examples that are too similar. If all three examples are about the same product, the model may copy details that should change. Vary them.
  • Accidental patterns. If every example is exactly 40 words or starts with “Discover”, the model will copy that too.
  • Weak examples. The model copies quality as well as format. Mediocre examples produce mediocre output.
  • Unbalanced classes. In a classification prompt, four complaints and one booking query nudge the model towards “complaint”.
  • Pasting real customer data. Use made-up or anonymised examples unless your AI tool’s terms and your privacy notice cover the use of personal data.

How to act on it

Pick one repetitive task and write a short prompt in this order: what the task is, two to four varied examples of excellent output, then the new input. Save it as a template so everyone uses the same version. If the results drift, swap in better examples before rewriting the instructions. For persistent rules such as spelling, banned phrases or audience, put them in a system prompt or custom instructions so they apply every time.

Before relying on a template, test it on ten real inputs you already know the right answer for, and count how many it gets right. If it misclassifies the same type of input twice, add an example that covers that case. This small check is what turns a clever prompt into a process the whole team can trust.

For content that has to rank, AI drafts still need a person to add first-hand knowledge and check facts. How I fit AI into research and drafting without diluting quality is part of my content SEO and strategy service.

Do and do not

Do

  • Use varied, high-quality examples
  • Save working prompts as shared templates
  • Anonymise any examples drawn from real customers

Do not

  • Use examples that share an accidental pattern
  • Rely on examples alone for rules that must always apply
  • Publish AI drafts without a human check

Questions people ask about this

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

Zero-shot prompting gives the model instructions only, and relies on it to work out what you mean. Few-shot prompting adds a few examples of the output you want. Zero-shot is quicker to write and fine for simple tasks; few-shot usually gives more consistent results when format, tone or categories matter.

How many examples should a few-shot prompt include?

Two to five is usually enough. More examples can help with subtle distinctions, but they use up space in the context window and can make the model over-copy specific details. If five good examples do not get the result you want, the instructions or the examples themselves probably need work.

Is few-shot prompting the same as training the model?

No. The examples only affect the request they are part of; the model forgets them afterwards and nothing about it changes permanently. Training or fine-tuning alters the model itself using a larger set of examples, which costs more and needs more care, including over any personal data used.

Related terms

Found this useful?

Share it, or ask an AI to summarise it

Back to the glossary

Knowing the term is the easy part

Applying it to your own site and budget is the work. Book a call and I will tell you what actually applies to you.