Overview
A technique to increase LLM performance by having the LLM work step-by-step through a prompt by giving appropriate examples beforehand.
Thinking Step-by-Step
Prompting follows the form of:
- Question
- Thought
- Action
- Observation
As an example:
- Question - What is the elevation range for the area that the eastern sector of the Colorado orogeny extends into?
- Thought - I need to search Colorado orogeny, find the area that the eastern sector of the Colorado orogeny extends into, then find the elevation range of the area.
- Action - Search[Colorado orogeny]
- Observation - The Colorado orogeny was an episode of mountain building (an orogeny) in Colorado and surrounding areas.
- Thought - It does not mention the eastern sector. So I need to look up eastern sector.
- Action - Lookup[eastern sector]
- Observation - (Result 1 / 1) The eastern sector extends into the High Plains and is called the Central Plains orogeny.
- Thought - The eastern sector of Colorado orogeny extends into the High Plains. So I need to search High Plains and find its elevation range.
- Action - Search[High Plains]
- Observation - High Plains refers to one of two distinct land regions