One-Shot Chain-of-Thought (COT) Prompting
One-shot Chain-of-Thought (COT) prompting is a technique where a single example demonstration, which includes the explicit, step-by-step reasoning process, is provided to a large language model to guide it in solving a similar problem.
0
1
Tags
Ch.2 Generative Models - Foundations of Large Language Models
Foundations of Large Language Models
Foundations of Large Language Models Course
Computing Sciences
Related
One-Shot Chain-of-Thought (COT) Prompting
Improving Model Guidance for Multi-Step Problems
Example of a Multi-Step Arithmetic Word Problem (Tom's Marbles)
You are creating a demonstration to teach a large language model how to solve multi-step arithmetic word problems. The goal is to show the model a clear, step-by-step reasoning process that is easy to follow.
Problem: A library starts the day with 80 books on the 'new arrivals' shelf. During the day, 45 books are checked out. Later, librarians add a new shipment of 22 books to the shelf. How many books are on the shelf at the end of the day?
Which of the following demonstrations is structured most effectively to guide the model?
You are preparing a demonstration to show a language model how to solve a word problem. Arrange the following reasoning steps into the most logical and clear sequence to arrive at the correct answer for the problem below.
Problem: A bakery starts with 20 bags of flour. They use 5 bags for bread and 3 bags for cakes. Later in the day, they receive a delivery of 10 more bags. How many bags of flour does the bakery have at the end of the day?
Learn After
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