Few-shot prompting teaches a model a task by showing it a handful of examples in the prompt.
Key points
- The GPT-3 paper, Language Models are Few-Shot Learners, showed that large models can learn tasks from examples in context [1].
- Zero-shot means no examples, one-shot means one, and few-shot usually means two to about ten [2][3].
- Examples communicate tone, length and structure better than written rules, which makes them useful for matching a Brand Voice [4].
- Examples should be varied and representative; near-identical examples lead the model to copy them too closely [4].
- Few-shot prompting is part of Prompt Engineering and a common way to steer AI Personalization in cold email.
How few-shot prompting works
A Large Language Model (LLM) continues the text it is given. If that text contains several pairs of inputs and correct outputs followed by a new input, the most likely continuation is a correct output for the new input. Brown and colleagues demonstrated this at scale in 2020, showing that GPT-3 could translate, answer questions and do simple arithmetic from a few examples, with no change to the model's weights [1]. IBM describes few-shot prompting as a form of in-context learning, where the model adapts from examples provided at inference time [2]. The technique is cheap and fast to adjust compared with fine-tuning, because changing behavior only means editing the examples. That is why it is one of the first tools in Prompt Engineering.
Choosing good examples
The examples do more work than the instructions, so they deserve care. Anthropic recommends examples that are relevant to the real task, diverse enough to cover edge cases, and clearly marked off from the instructions, often with tags [4]. Diversity matters because a model tends to copy surface features; if every example email opens with a question, so will every output. Order and balance also matter: in a classification task such as Sentiment Analysis of replies, include examples of each label so the model does not lean toward one. The Prompt Engineering Guide notes that even the format of examples, such as consistent labels, affects accuracy [3]. Test the result against real inputs and swap examples that cause repeated mistakes.
Few-shot prompting for outreach
In cold email, few-shot prompting is the most practical way to make AI drafts sound like a specific sender. Instead of describing a Brand Voice in adjectives, the prompt shows three or four emails the sender actually wrote and that earned replies. The model then picks up the sender's Email Copywriting habits: sentence length, greeting style, how the Call to Action (CTA) is phrased, and what the sender never says. Examples can also show how to use research: one input with company notes and one output with a single, accurate Icebreaker. The same approach works for classifying replies for Reply Detection or grading prospects during Lead Qualification. Keep examples free of Personal Data you do not need, and refresh them when the offer or the Value Proposition changes.
Related terms
Outreach without the busywork.
PineLead finds new B2B prospects every day, qualifies them against your criteria and writes the first email in your voice. You approve — PineLead sends.
Start free with 100 credits →