Learn Before
Few-Shot Chain-of-Thought (COT) Prompting
Few-shot Chain-of-Thought (CoT) prompting is a technique that involves providing a language model with one or more demonstrations of CoT reasoning within the prompt. Each demonstration consists of a problem paired with the detailed, step-by-step thought process used to arrive at the solution, guiding the model on how to reason through similar problems.
0
1
References
Reference of Foundations of Large Language Models Course
Reference of Foundations of Large Language Models Course
Reference of Foundations of Large Language Models Course
Reference of Foundations of Large Language Models Course
Reference of Foundations of Large Language Models Course
Reference of Foundations of Large Language Models Course
Tags
Ch.2 Generative Models - Foundations of Large Language Models
Foundations of Large Language Models
Foundations of Large Language Models Course
Computing Sciences
Ch.3 Prompting - Foundations of Large Language Models
Related
Few-Shot Chain-of-Thought (COT) Prompting
A user wants a language model to solve multi-step logic puzzles. They provide the following prompt. Analyze the structure of the demonstration provided within this prompt.
[START OF PROMPT] Q: A farmer has 15 sheep. All but 8 died. How many are left? A: Let's think step by step. 1. The phrase "All but 8 died" is a bit tricky. It means that 8 sheep are the ones that did *not* die. 2. Therefore, the number of sheep left is 8. The final answer is 8. Q: In a race, a runner overtakes the person in 2nd place. What position is the runner in now? [END OF PROMPT]What is the key element in the provided demonstration that guides the model to reason through the new puzzle?
Constructing a One-Shot Chain-of-Thought Prompt
Improving Language Model Performance on a Multi-Step Task
Example of One-Shot Chain-of-Thought (COT) Prompting
Learn After
Comparison of Few-Shot and Zero-Shot CoT Prompting
Difficulty of Creating Few-Shot CoT Demonstrations
A developer wants to improve a language model's ability to solve multi-step logic puzzles. They decide to construct a prompt that includes examples to guide the model. Which of the following prompt structures best implements the technique of providing multiple, detailed, step-by-step reasoning demonstrations before presenting the final problem to be solved?
Constructing a CoT Demonstration
Analyzing a Prompt for Structured Data Extraction