Chain-of-Thought Prompting
Learn how to divide complex reasoning into intermediate steps using chain-of-thought prompts.
We'll cover the following...
Chain-of-thought (CoT) prompting is a technique for improving the reasoning abilities of LLMs. It works by providing the LLM with a few examples of correct chain-of-thought solutions to a problem. This helps the LLM learn how to decompose the problem into intermediate steps, and to reason about each step in turn.
For example, consider the following problem:
The even numbers in this group add up to an odd number: 2, 10, 5, 13, 14, 3, 1. Is this statement true or false?
A possilbe chain-of-thought solution to this problem might be:
- First, we need to identify the even numbers in the group. These are 2, 10, and 14. 
- Next, we need to add up these numbers. The sum is 26. 
- Finally, we need to check whether 26 is an odd number. It is not, so the statement is false. 
By providing the LLM with a few examples ...