Skip to content
Myndeo

Definition

Zero-shot

In short

A model’s ability to carry out a task with no examples given in the prompt, based on the instruction alone.

What is zero-shot used for?

Large language models have been trained on such volumes of text that they can carry out many tasks without any prior demonstration: translating, summarising, categorising a message, answering a question. Zero-shot refers to a prompt that contains only the instruction, with no example of the expected result.

It is the quickest way to test a use case: no data to prepare, no training. When the results lack consistency or do not follow the required format, you add a few examples: that is few-shot.

ZERO-SHOT: NO EXAMPLES FEW-SHOT: WITH 2 EXAMPLES Classify this customer message: “urgent” or “not urgent” No examples it relies on its training “No parcel yet, I leave tomorrow!” → ? The model’s answer “Probably urgent, since the customer…” Classify this customer message: “urgent” or “not urgent” “My payment won’t go through.” → urgent “Do you have this jumper in blue?” → not urgent “No parcel yet, I leave tomorrow!” → ? The model’s answer “urgent”, just like the examples The simplest to set up More consistent results
Same instruction, two approaches: with no examples, the model answers in its own way; with two solved examples, it follows their format exactly.

How a zero-shot request works

  1. 1 Step 1 The instruction You describe the task, for example: “Classify this message into one of these categories: complaint, quote, enquiry”.
  2. 2 Step 2 The content You attach the text to be processed, with no example answer.
  3. 3 Step 3 Interpretation The model draws on what it learned during training to understand and carry out the instruction.
  4. 4 Step 4 The check You review the answers on a sample of real cases before rolling out the use case.

Business use cases

  • Customer service Sort incoming messages by reason, using a simple list of categories.
  • Market watch Summarise articles or reports and extract their key points.
  • International Translate an email or a product sheet, with a review for any text intended for publication.
  • Customer reviews Detect sentiment (positive, neutral, negative) without annotating a corpus first.

Zero-shot or few-shot?

Zero-shot Few-shot
Prompt content The instruction alone The instruction plus a few examples
Preparation None Choose representative examples
Format consistency Variable Higher: the model imitates the examples
Ideal for Common tasks, quick tests A precise format, categories specific to your business

In both cases, the model is not retrained: the examples only apply for the duration of the request.

Frequently asked questions

  • For common, well-phrased tasks, often. For categories specific to your business or a strict format, a few examples (few-shot) or reference sources (RAG) generally improve consistency.

  • One-shot provides a single example in the prompt, few-shot provides a handful. Zero-shot provides none.

  • For many uses, yes: a clear instruction is enough, without retraining the model. Fine-tuning remains useful for a very specific, high-volume task where the prompt alone does not deliver consistent enough results.

30-minute call · no commitment

Ready to make the move to AI?

Book a 30-minute call. Together we’ll pinpoint your most profitable use cases, with no commitment.