What Is It?

With the chain of thought method, we provide ChatGPT with an example problem and its solution (with reasoning). We then ask it to solve our similar problem.

Use Cases

Often ChatGPT can struggle with complex problems of mathematics and arithmetic. With chain of thought method, it will understand how the example problem was solved, and then use the same chain of thought to solve follow up questions.

💡 Example

<aside> ⌨️ I am going to provide an example problem and its solution. I would like you to read and understand the logic used. I then want you to answer all follow up questions in the same way, showing your reasoning.

Q: Andy has $150. He will spend $50 on a train ticket, and $23 on lunch. He then needs to give half of his remaining money to a friend. How much money will Andy have at the end?

A: Andy had $150. He spent $50 on a train ticket.

$150 - $50 = $100

Andy spend $23 on lunch.

$100 - $23 = $77

He then gave away half of his remaining money.

$77 ÷ 2 = $38.50 $77 - $38.50 = $38.50

Andy has $38.50 remaining.

</aside>