Back to guide/Education & Learning

Sentiment Classification

Three diverse examples cover each label, teaching the model the exact classification scheme and output format. The consistent structure (Review/Label) makes the pattern unambiguous.

few-shot-promptingreview_text
Edit View
Prompt
Classify each customer review as Positive, Negative, or Neutral.

Example 1:
Review: "The shipping was fast and the product exceeded my expectations."
Label: Positive

Example 2:
Review: "Broke after two days. Complete waste of money."
Label: Negative

Example 3:
Review: "It works fine. Nothing special but does the job."
Label: Neutral

Now classify this review:
Review: "{{review_text}}"
Label:

Variables to customize

{{review_text}}

Why this prompt works

Three diverse examples cover each label, teaching the model the exact classification scheme and output format. The consistent structure (Review/Label) makes the pattern unambiguous.

Save this prompt to your library

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