
Ultimate access to all questions.
Deep dive into the quiz with AI chat providers.
We prepare a focused prompt with your quiz and certificate details so each AI can offer a more tailored, in-depth explanation.
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
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.