Lead · Prompt Examples
The docs say few-shot examples should be relevant, diverse and wrapped in tags, 3 to 5 of them; give five of the same label and the pattern Claude learns is that the answer is always that label.
Ryan Castillo
·
November 05, 2026
When you ask Claude to classify or to rewrite into a fixed format, the fastest improvement is often not a longer instruction but a few examples. Anthropic calls this few-shot or multishot prompting. This article uses a support-ticket classification prompt to show how to choose examples, how to wrap them in tags, and how to check for yourself whether they help. I read the official guidance on...