Artificial Intelligence
Chain-of-thought prompting
Appears inAIF-C01Gen AI Leader
Prompt engineering technique where the model is instructed to make its reasoning explicit step by step before giving the final answer, improving performance on logical or mathematical reasoning tasks.
On the exam
In AIF-C01 (Domain 3) and GENAI-L (Domain 3) it's compared with zero-shot and few-shot. Question: improve a model's accuracy on a complex math problem → explicitly ask it to "think step by step" (chain-of-thought).
Related terms
- Few-shot promptingPrompt engineering technique where several examples of the desired input-output are included in the prompt before the actual request, helping the model understand the expected format or style without fine-tuning. Zero-shot includes no examples; one-shot includes exactly one.
- ReAct promptingAn advanced prompting technique that combines Reasoning and Acting: the model alternates between thinking step by step and executing concrete actions (such as calling a tool or API), observing the result before continuing to reason.