chain of thought
/ˌtʃeɪn əv ˈθɔːt/ (chayn uv THAWT) noun
- Having a model reason through intermediate steps before giving its answer, which improves accuracy on multi-step problems. Asked to trace the bug before proposing a fix, the model found that the cache key, not the parser, was wrong: chain of thought paid off.
Origin
From the 2022 paper 'Chain-of-Thought Prompting Elicits Reasoning in Large Language Models' by Wei et al.
In practice
For debugging and design questions, ask for the diagnosis before the fix. Reasoning written out is also reasoning you can check.
Say to your AI
Before changing any code, explain what you think is causing the bug and what evidence supports it. Then propose the fix.
In plain words
- make the AI think step by step
- show its reasoning
- explain before answering
- it jumps to the wrong conclusion
See also few-shot prompting eval agentic