Back to Browse
✍️Prompt
Few-Shot Classification Template
A reusable template for few-shot learning that dramatically improves classification accuracy. Works for sentiment, intent, topic, and custom categories.
Prompt Content
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:Few-Shot Classification Template
No variables detected in this prompt.
132 words942 chars~236 tokens
Live Preview
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:Related Prompts
Generate stunning cinematic landscape photographs with dramatic lighting, golden hour warmth, and professional composition. Perfect for Midjourney and DALL-E.
photographylandscapecinematicgolden hour+1
midjourney
2847
A comprehensive system prompt that turns any LLM into an expert code reviewer. Catches bugs, security issues, and suggests improvements.
code reviewsystem promptprogrammingbest practices+1
4123
Generate compelling e-commerce product descriptions that convert. Includes SEO keywords, emotional hooks, and benefit-focused copy.
copywritingecommerceproduct descriptionsmarketing+1
1956
Prompt
Create detailed anime-style character designs with consistent style. Works great for game characters, illustrations, and concept art.
animecharacter designillustrationconcept art+1
stable-diffusion
3201
Statistics
Copies3,210
Likes1,654
Added4/26/2026
Author
NLPCoach
Framework
generic
Tags
few-shotclassificationNLPsentimenttechnique
Categories
Prompt EngineeringTechniques