Testing with Generative AI study guide
Chain of Thought (CoT) Prompting
Chain of Thought (CoT) is an advanced prompt engineering technique that asks an LLM to work through intermediate steps before a final answer. It can help on some tasks, but does not guarantee correct reasoning or improved results.
Practical example
Instead of asking "What is 15 * 4?", a CoT prompt adds: "Let's think step by step." By generating intermediate tokens (the reasoning steps), the LLM gives itself more "computational time" and context to arrive at the correct final token.
Exam scenario and common trap
Scenario: An LLM fails a complex logic puzzle in a zero-shot prompt. The Trap: "The model is too small to solve logic puzzles." The Correct Answer: Implement Chain of Thought. Asking for intermediate steps may help some tasks, but evaluate it on representative examples and independently verify the answer.
Related syllabus sections cover this topic. Reference sections: 2.1.2. See the official ISTQB syllabus for exam scope. Examples are independent; QA-ace is not affiliated with ISTQB.