Question 1 · choose 1
A logistics company wants Gemini to sort incoming emails into its own seven internal categories and always answer in the same short JSON format. The instructions alone give inconsistent results. Which prompting technique should the team add?
- AFew-shot prompting with varied example emails and answers
- BZero-shot prompting with a shorter, simpler instruction
- CRole prompting that makes the model a logistics expert
- DAsking the model to explain its reasoning before answering
Show the answer and why
AFew-shot prompting with varied example emails and answers
Correct
Few-shot prompts include examples of good responses; they are often used to regulate output format, phrasing and patterns, which is exactly the inconsistency here.
BZero-shot prompting with a shorter, simpler instruction
Incorrect
Zero-shot means no examples; removing words from the instruction does not show the model the expected format.
CRole prompting that makes the model a logistics expert
Incorrect
A persona does not demonstrate the seven categories or the exact output format.
DAsking the model to explain its reasoning before answering
Incorrect
Explaining reasoning helps with complex reasoning tasks; here the problem is format and category consistency, and extra text makes the output longer.
Examples teach patterns that instructions alone leave open. Keep examples varied and consistently formatted, and keep the clear instructions too.
Google Cloud documentation