
Explanation:
Few-shot Prompting is the correct answer because:
Definition: Few-shot prompting involves providing the model with a small number of examples (typically 2-10) before asking it to perform a task on new input.
Key characteristic: The developer provides "two example inputs and outputs before the main query" - this is the defining feature of few-shot prompting.
Contrast with other options:
Application: In text classification tasks like sentiment analysis (positive/negative reviews), few-shot prompting helps the model understand the desired format and criteria by showing concrete examples.
Why this approach works: By providing examples, the model learns the pattern and can apply similar reasoning to new, unseen text reviews, improving accuracy compared to zero-shot approaches.
Ultimate access to all questions.
A developer wants to train a model to classify text reviews as positive or negative. They provide two example inputs and outputs before the main query. What type of prompting is being used?
A
Zero-shot Prompting
B
Few-shot Prompting
C
Negative Prompting
D
Guided Prompting
No comments yet.