New Jobs Simplified, AI University
← Back to courses

Prompts & Prompt Engineering

Chain-of-Thought Prompting

This lesson covers the concept of Chain-of-Thought Prompting, a method to improve the output of generative models by making them think before answering. It involves providing step-by-step reasoning in the prompt to enable complex reasoning. Chain-of-Thought Prompting can be used to improve the performance of generative models.

Why It Matters

Chain-of-Thought Prompting matters because it addresses the problem of limited reasoning capabilities in generative models. By enabling models to think before answering, it can improve their output quality and make them more useful in real-world applications. This is especially important in tasks that require complex reasoning and decision-making.

Key Points

Chain-of-Thought Prompting involves providing step-by-step reasoning in the prompt to enable complex reasoning in generative models.
The method uses phrases like "Let's think step-by-step" to prime reasoning in the model's answer.
Chain-of-Thought Prompting can be used to improve the performance of generative models in tasks that require complex reasoning.
The method involves providing examples in the prompt that demonstrate the reasoning the model should do before generating its response.
Chain-of-Thought Prompting can be used to improve the output of generative models by making them think before answering.
The method is an improvement over direct questioning, which may not elicit the desired outcome.
Chain-of-Thought Prompting can be used in various applications, including natural language processing and decision-making tasks.

Key Concepts

Chain-of-Thought

A method of making generative models think before answering by providing step-by-step reasoning in the prompt.

Thoughts

The reasoning processes provided in the prompt to enable complex reasoning in generative models.

Tree-of-Thought

A method that explores intermediate steps and makes them more thoughtful to improve the output of generative models.

Self-Consistency

A technique that aims to enable more complex reasoning in generative models by sampling from multiple 'thoughts' and making them more thoughtful.

Prompt Engineering

The process of designing and optimizing prompts to elicit the desired outcome from generative models.

From the books
“step-by-step,” which is illustrated in Figure 6-16.7 Figure 6-16. Chain-of-thought prompting without using examples. Instead, it uses the phrase “Let’s think step-by-step” to prime reasoning in its an…”
“processes of human reasoners with the aim of improving the output of the model. Chain-of-Thought: Think Before Answering The first and major step toward complex reasoning in generative models was thro…”
“method can improve performance, it becomes n times slower where n is the number of output samples. Tree-of-Thought: Exploring Intermediate Steps The ideas of chain-of-thought and self-consistency are …”

Quick Quiz

1. What is the main goal of Chain-of-Thought Prompting?

To improve the output quality of generative models
To reduce the complexity of generative models
To enable direct questioning of generative models

2. What is the purpose of providing step-by-step reasoning in the prompt in Chain-of-Thought Prompting?

To confuse the generative model
To make the generative model think before answering
To elicit a specific response from the generative model

3. What is the primary benefit of using Chain-of-Thought Prompting?

Improved performance of generative models
Increased complexity of generative models
Reduced output quality of generative models