Back to guide/General Productivity

Few-Shot Learning

Providing 3 labeled examples teaches the model the exact output format and classification logic without needing a long explanation. The model generalizes the pattern to new inputs.

ai-prompt-examplescustomer_feedback
Edit View
Prompt
Convert the following customer feedback into a structured tag. Here are examples:\n\nFeedback: "The app crashes every time I try to upload a photo"\nTag: bug:upload, severity:critical, component:media\n\nFeedback: "Would love a dark mode option"\nTag: feature-request:ui, priority:low, component:settings\n\nFeedback: "Checkout is confusing, I almost gave up"\nTag: ux-issue:checkout, severity:high, component:payments\n\nNow classify this feedback:\nFeedback: "{{customer_feedback}}"\nTag:

Variables to customize

{{customer_feedback}}

Why this prompt works

Providing 3 labeled examples teaches the model the exact output format and classification logic without needing a long explanation. The model generalizes the pattern to new inputs.

Save this prompt to your library

Organize, version, and access your best prompts across ChatGPT, Claude, and Cursor.