Skip to content

Zero-Shot Prompting

Platforms: claude openai gemini m365-copilot

Zero-shot prompting means giving the model a task with no examples — just an instruction. It is the simplest form of prompting. The model relies entirely on its training data and instruction-tuning to interpret what you want and produce an appropriate response.

Modern LLMs (large language models) are trained on massive datasets and fine-tuned to follow instructions through a process called RLHF (Reinforcement Learning from Human Feedback). They already know how to perform thousands of tasks — summarization, translation, classification, and more. You just need to describe what you want clearly enough for the model to match your request to patterns it has already learned.

  • Simple, well-understood tasks (summarize, translate, classify)
  • When you don’t have examples handy
  • Quick exploration before investing in more complex prompts
  • Tasks where the standard format is acceptable
{Task description}. {Optional constraints or specifications}.

Filled-in example:

Summarize the following article in 3 bullet points, focusing on the key findings.

Context: You need a formal French translation of an English paragraph.

Translate the following English text to French, maintaining a formal tone:
"We are pleased to announce that our quarterly results exceeded expectations,
driven by strong performance in the European market."

Why this works: Translation is a well-defined task the model has seen extensively in training, and specifying “formal tone” constrains the register.

Context: You need to categorize incoming customer reviews for a dashboard.

Classify the following customer review as positive, negative, or neutral.
Review: "The product arrived on time but the packaging was damaged."
Classification:

Why this works: The instruction is specific and the output space is constrained to three clear options, leaving no room for ambiguity.

Context: You need a quick out-of-office reply before heading on vacation.

Write a professional out-of-office email reply. I'll be away from Feb 15-22
and Jane Smith (jane@company.com) will handle urgent requests.

Why this works: Out-of-office emails have a well-known format, so the model can produce a polished result without any examples.

A powerful variation of zero-shot prompting is Zero-Shot CoT (Chain-of-Thought). Simply appending “Let’s think step by step” to a zero-shot prompt can dramatically improve performance on reasoning tasks (Kojima et al. 2022). This bridges zero-shot prompting and Chain-of-Thought prompting without requiring any examples.

A store has 45 apples. They sell 60% in the morning and half of the remainder
in the afternoon. How many are left? Let's think step by step.