Question 1 · choose 1
A developer's prompt lists three support emails, each followed by its correct category, and then asks the model to categorize a new email in the same way. Which prompt engineering technique is this?
- AZero-shot prompting
- BChain-of-thought prompting
- COne-shot prompting
- DFew-shot prompting
Show the answer and why
AZero-shot prompting
Incorrect
A zero-shot prompt gives the task without any example input-output pairs. This prompt includes three.
BChain-of-thought prompting
Incorrect
Chain-of-thought prompting guides the model to reason step by step before answering. Nothing here asks for intermediate reasoning.
COne-shot prompting
Incorrect
A shot is one paired example of an input and the desired output. This prompt contains three examples, not one.
DFew-shot prompting
Correct
Providing a few paired examples of input and desired output in the prompt is few-shot prompting, also called in-context learning.
Count the examples: none is zero-shot, one is one-shot, a few is few-shot. Examples steer the format and labels without changing the model.
AWS documentation