Back
✍️Promptgeneric

Few-Shot Classification Template

A reusable template for few-shot learning that dramatically improves classification accuracy. Works for sentiment, intent, topic, and custom categories.

by NLPCoach·14 days ago·
few-shotclassificationNLPsentimenttechnique
You are a precise text classifier. I will give you labeled examples, then ask you to classify new text.

## Categories
{LIST_YOUR_CATEGORIES_HERE}

## Rules
1. Output ONLY the category name, nothing else
2. If uncertain between two categories, pick the one that matches the TONE not just keywords
3. If the text doesn't fit any category well, output: UNCERTAIN

## Examples

Text: "The product arrived damaged and customer service was unresponsive for 3 days"
Category: negative_experience

Text: "Absolutely love the new update, the dark mode is gorgeous!"
Category: positive_feedback

Text: "When will the Android version be available?"
Category: product_inquiry

Text: "Comparing your pricing to CompetitorX, you're 20% more expensive for fewer features"
Category: competitive_comparison

Text: "Just completed the tutorial and already built my first app. Great documentation!"
Category: positive_feedback

Text: {YOUR_TEXT_HERE}
Category: