01Zero-shot: instruction without examples
Zero-shot learning describes asking an AI to perform a task based only on an instruction, without providing examples of the desired output. 'Classify the following customer feedback as positive, negative, or neutral' is a zero-shot prompt: you are giving the AI the task and the categories, but no examples of how a positive, negative, or neutral classification should look.
Zero-shot works remarkably well for tasks that large language models have seen many examples of in their training: sentiment analysis, summarisation, question answering, translation. The model has already developed strong intuitions about what these tasks require.
Zero-shot is less effective for tasks that are specific to your organisation or context, that require a particular style or format, or that involve nuanced distinctions the model has not seen.
02Few-shot: instruction with examples
Few-shot learning describes including a small number of examples (typically two to five) of the desired input-output pairs in the prompt, before presenting the task you actually want the AI to perform.
Example: 'Classify the following customer feedback. Examples: Feedback: "Great service, very happy" -> Positive. Feedback: "The delivery was late" -> Negative. Feedback: "It arrived" -> Neutral. Now classify: "The product works as expected."'
Few-shot significantly improves performance on tasks requiring specific formatting, organisation-specific classification schemes, particular writing styles, or nuanced distinctions. The examples show the AI what you want rather than just telling it.
03When to use each approach
For standard tasks with clear outputs (basic summarisation, standard translation, factual question answering), zero-shot is usually sufficient and simpler. Adding unnecessary examples to a well-understood task does not improve results and makes prompts longer.
For tasks specific to your organisation's context, terminology, or style, few-shot provides substantial improvement. If you have a specific customer communication style you want the AI to replicate, examples are far more effective than descriptions of the style.
For tasks requiring consistent format or structure (specific output schemas, particular report structures, standardised classification categories), few-shot ensures the format is followed reliably.
A practical workflow design principle: start with zero-shot, evaluate the output quality, and add examples (converting to few-shot) if the output is not meeting your requirements.
Key Takeaways
- 1.Zero-shot learning asks the AI to perform a task from an instruction alone; few-shot includes 2-5 examples of desired input-output pairs.
- 2.Zero-shot works well for standard tasks (summarisation, sentiment, translation) that models have seen extensively in training.
- 3.Few-shot significantly improves performance on organisation-specific tasks, nuanced classification, or tasks requiring particular style or format.
- 4.Start with zero-shot and add examples only if the output quality does not meet requirements; unnecessary examples add complexity without benefit.
- 5.Including examples is more effective than describing the desired style or format in words; show the AI what you want rather than telling it.
References & Further Reading
- [1]
Want to discuss this with an expert?
Book a strategy call to explore how these insights apply to your organisation.
Book a Strategy Call