AI engineering glossary · Prompt context engineering

What is chain-of-thought prompting?

Chain-of-thought prompting (also called CoT prompting): A technique that asks a model to write out its intermediate reasoning steps before giving a final answer. Showing the work helps on maths, logic and multi-step questions, because each step conditions the next. It costs extra output tokens.

Level: beginnerTopic: Prompt context engineering

Chain-of-thought prompting: an example

'A shop sells 3 pens for Rs 45. What do 7 pens cost? Think step by step.' The model writes 45/3 = 15 each, then 7 x 15 = 105.

Related terms

More Prompt context engineering terms

Where you learn it

Chain-of-thought prompting is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.