Few-shot prompting means giving Claude one or more examples of desired input and output before asking the actual question. Claude recognizes the pattern and follows it.
Words like "professional", "friendly" or "concise" are interpreted differently by Claude and you. An example removes all ambiguity — Claude sees exactly what you mean.
Combine the two techniques for maximum power — give Claude an example that also shows the reasoning:
Your faith is your fortune. What you believe within, you will see without.— Florence Scovel Shinn
Test yourself — completely optional, but fun! 🎯
Question 1 of 3
What is the difference between zero-shot and few-shot prompting?
Question 2 of 3
Why is few-shot more precise than describing the desired format with words?
Question 3 of 3
What should you think about when creating few-shot examples?