Zero-shot prompting asks a language model to complete a task from instructions alone, without task-specific examples in the prompt. It relies on the model’s pre-trained knowledge and its ability to interpret the requested task. It is the simplest prompting approach: state what is needed, provide the relevant input, and let the model infer the expected response. section 5.3.2
A direct instruction such as “Classify this movie review as positive or negative” is zero-shot prompting when no labeled reviews or output demonstrations accompany it. Likewise, requests such as “Tell me about Paris hotels” can establish a basic baseline before a prompt is made more structured or augmented with examples. section 5.3.2
Use zero-shot prompting when the task can be expressed clearly in an instruction:
- Specify the task directly, including the action the model should take and the input it should use. section 5.3.2
- Use it first for straightforward tasks, where an advanced model can often infer the intended operation without demonstrations. section 5.3.2
- Treat its output as a baseline: add examples with few-shot prompting when a particular pattern or format must be followed. section 5.3.2
- Use more deliberate prompting approaches for complex reasoning tasks rather than expecting a minimal instruction to be consistently sufficient. section 5.3.2 section 5.5
The central trade-off is simplicity versus control. Zero-shot prompts are quick to write and can work surprisingly well, especially with more advanced models. However, complex or nuanced requests may produce inconsistent results because the model must infer the desired structure and decision process from minimal direction. Few-shot prompting supplies examples to demonstrate a target pattern, while chain-of-thought prompting is used for more complex reasoning. section 5.3.2 section 5.5
Direct task instruction
Prompt: “Classify this movie review as positive or negative.” This is zero-shot because the prompt names the task but provides no task-specific example showing how a review should be labeled. The model is expected to recognize sentiment analysis from its prior training and follow the instruction. section 5.3.2
Zero-shot prompting is part of prompt engineering: crafting inputs that guide a language model toward desired outputs. As prompts move from simple queries to engineered instructions, they offer more ways to guide behavior and improve output quality. For production use, prompt choice remains connected to model selection and its trade-offs in performance, customization, privacy, and cost. section 5.3.2 section 5.7











