Essay

Critique and Refine a Few-Shot Prompt

A developer is creating a few-shot prompt to classify customer reviews as 'Positive', 'Negative', or 'Neutral'. They find the model's performance is unreliable. Below are two examples from their prompt.

Example 1: Review: "The product arrived on time and exceeded my expectations. Fantastic quality!" Classification: After analyzing the review, the resulting sentiment is Positive.

Example 2: Review: "The item broke after just one use. Very disappointed with the purchase." Classification: After analyzing the review, the resulting sentiment is Negative.

Critique the structure of the input-output pattern used in these examples. Explain why this structure might be suboptimal for guiding the model, and propose a revised, simpler structure that would likely improve performance.

0

1

Updated 2025-10-02

Contributors are:

Who are from:

Tags

Ch.3 Prompting - Foundations of Large Language Models

Foundations of Large Language Models

Computing Sciences

Foundations of Large Language Models Course

Evaluation in Bloom's Taxonomy

Cognitive Psychology

Psychology

Social Science

Empirical Science

Science