Why Technique Matters
Most people use one approach for every prompt: ask and hope. This works for simple, familiar tasks. It breaks down the moment you need the model to handle something specialized, multi-step, or structurally unusual.
Three well-studied techniques cover the vast majority of real-world prompting needs: zero-shot, few-shot, and chain-of-thought. Each is suited to a different class of problem. Knowing which to reach for is one of the highest-leverage skills in applied AI work.
Zero-Shot Prompting
Zero-shot prompting means asking the model to perform a task with no examples provided. You describe what you want and let the model draw entirely on what it learned during training.
This works reliably for tasks the model has encountered many times in its training data: summarization, translation, sentiment classification, reformatting text, answering common factual questions. For these tasks, the model already has strong patterns to draw on.
[paste paragraph here]
Brown et al. (arXiv:2005.14165) demonstrated that large language models can perform tasks with zero examples when the task is described clearly, drawing on patterns absorbed during pre-training. This was a foundational finding: models are not blank slates that require training on every new task. They generalize.
Few-Shot Prompting
Few-shot prompting means including a small number of worked examples, typically two to five, directly in the prompt. The model uses these to understand the exact format, terminology, and pattern you expect.
Brown et al. (arXiv:2005.14165) showed that providing even a handful of examples dramatically improves performance on tasks that are specialized, unusual, or require a specific output structure that the model would not guess correctly on its own.
Message: "I was charged twice for my subscription."
Category: Billing
Message: "The app crashes every time I open it."
Category: Technical
Message: "I want to send back the item I ordered."
Category: Returns
Message: [new customer message here]
Category:
The examples do two things at once. They define the valid output values (Billing, Technical, Returns, General), and they show the model the format of the response. Without them, the model might return a full sentence instead of a single-word category, or invent categories you did not intend.
Chain-of-Thought Prompting
Chain-of-thought (CoT) prompting asks the model to reason through a problem step by step before giving its final answer. The simplest form is adding "Let's think step by step" at the end of a prompt, or explicitly asking the model to show its reasoning.
Wei et al. (arXiv:2201.11903) demonstrated that chain-of-thought prompting significantly improves performance on arithmetic, commonsense reasoning, and symbolic reasoning tasks. The key insight: the model produces better answers when it externalizes its reasoning, because each intermediate step constrains what comes next.
Without chain-of-thought:
With chain-of-thought:
Let's think step by step.
With those four words, the model will typically show its work: calculate the apple cost, calculate the orange cost, then add them. Each intermediate result is verified before the final answer. Error rates on multi-step problems drop substantially.
Choosing the Right Technique
The choice is not arbitrary. Each technique has a natural home.
| Technique | Best for | When to avoid |
|---|---|---|
| Zero-shot | Common tasks, clear descriptions, general-purpose requests | Specialized formats, domain jargon, when output structure is critical |
| Few-shot | Classification, specialized terminology, consistent output format | Simple tasks where examples add length without value |
| Chain-of-thought | Math, logic, multi-step reasoning, traceable decisions | Simple lookups, creative tasks where rigidity is unwanted |
You can also combine techniques. A few-shot prompt that also asks the model to reason step by step is valid and often powerful for complex classification tasks that require justification alongside the label.