Show answerHide answer
Correct answer: B A zero-shot prompt that specifies the categories with their descriptions and the required output format.
Explanation
Explanation:The scenario describes a classification task with thirty well-defined categories and clear category descriptions. This is an ideal case for a zero-shot prompt.
When the categories and their definitions are explicitly provided in the prompt, the model has all the necessary context to perform the classification without needing examples (few-shot prompting) or complex reasoning steps. Anthropic's prompt engineering guidance recommends starting with the simplest approach: clearly define the task, provide the category descriptions, and specify the desired output format (e.g., strict JSON or a single category label). This minimizes token usage and latency while maximizing consistency.
Why the other options are incorrect:
A (Chain-of-thought) is unnecessary here. Routing a ticket into one of thirty defined categories is a direct classification task, not a multi-step logic puzzle. CoT would add latency and token cost without improving accuracy.
C (Inventing new categories) violates the constraint of a defined taxonomy. A classifier must map to the provided set, not hallucinate new labels.
D (No category descriptions) would force the model to guess the meaning of the categories, inevitably leading to misclassifications and inconsistent outputs.
References:
- Anthropic prompt engineering guidance: Start with clear instructions, explicit definitions, and desired output formats; use zero-shot when the task and categories are well-defined.

