Context
Chain-of-thought
Asking the model to reason step by step before answering — helps some tasks, hurts others.
What it is and why it exists
Generating intermediate reasoning gives the model more computation per answer and improves multi-step problems. It adds tokens and latency, can leak into user-facing output, and is largely built into reasoning models already.
Quick prototype
“Think step by step.”
In production, at scale
Use structured reasoning sections that are stripped before display, or a reasoning model with a capped budget. Skip it for classification and extraction where it adds cost without accuracy.
Vendors and tools
| Reasoning models | Built-in thinking |
|---|---|
| DSPy | ChainOfThought modules |
How it fails
- Reasoning text shown to users
- Paying for reasoning on trivial tasks
What the interviewer asks next
Is the chain of thought a faithful explanation?
Not necessarily. It often helps accuracy but isn’t guaranteed to reflect the actual computation, so don’t use it as an audit trail.