Prompt example extracted from Anthropic Prompt Library.
Use examples effectively Examples are one of the most reliable ways to steer Claude's output format, tone, and structure. A few well-crafted examples (known as few-shot or multishot prompting) improve accuracy and consistency.