AWS Certified AI Practitioner (AIF-C01) — Question 129
A company wants to enhance response quality for a large language model (LLM) for complex problem-solving tasks. The tasks require detailed reasoning and a step-by-step explanation process.
Which prompt engineering technique meets these requirements?
Answer options
- A. Few-shot prompting
- B. Zero-shot prompting
- C. Directional stimulus prompting
- D. Chain-of-thought prompting
Correct answer: D
Explanation
The correct answer is D, Chain-of-thought prompting, as it allows the model to articulate its reasoning process step-by-step, which is essential for complex tasks. Options A and B do not provide the necessary detailed reasoning process, while C, Directional stimulus prompting, is not specifically designed for enhancing reasoning in LLMs.