Avoid Few-Shot Overfitting in Claude Prompts
When adding 3 to 5 multishot examples inside <examples> tags, make them diverse enough that Claude learns the underlying pattern rather than copying one case or picking up unintended spurious patterns.
<examples> <example>Order arrived late -> Category: Shipping | Sentiment: Negative | Urgency: Medium</example> <example>Love the new colour options! -> Category: Product | Sentiment: Positive | Urgency: Low</example> <example>Need invoice updated before fiscal close today -> Category: Billing | Sentiment: Neutral | Urgency: High</example> </examples> Classify this message in the same format: <message>{{MESSAGE}}</message>Fill in the blanks (1)
Nobody has confirmed this prompt yet. If you try it, tell others whether it worked.
No comments yet.