Few-Shot Prompting Cheat Sheet

How many examples, chosen how, placed where

Few-shot prompting is teaching by demonstration. The examples you pick matter far more than how many you use.

Category: Prompt Engineering Difficulty: Beginner Version: 1.0 Updated: February 23, 2026 Author: Sabir

When to use how many

Shots Use when Watch for
0 The task is common and the format is obvious Drifting format across a batch
1 The format is unusual but the task is simple The model copying the example content, not its shape
3–5 Classification, extraction, house style Cost — examples are in every request
8+ Rarely worth it; consider fine-tuning instead Diminishing returns and context pressure

Choosing examples

FAQs

Do more examples always help?

No. Returns flatten after about five, and every example is paid for on every request. Beyond that point the money is usually better spent on fine-tuning or on better retrieval.

Why does the model keep copying my example content?

Your examples are too similar to each other, so their shared content reads as part of the instruction rather than as incidental. Vary the subject matter and keep only the FORMAT constant.