Learn Before
Example of a One-Shot CoT Prompt with Arithmetic Problems
A one-shot Chain-of-Thought (CoT) prompt can be constructed by combining a solved demonstration with an unsolved target problem. For example, a prompt can first present the 'Tom's marbles' problem along with its complete, step-by-step logical reasoning (calculating initial marbles, additions from winning or gifts, and subtractions from losing) to reach the final answer of . After this full demonstration, the prompt introduces a new word problem, such as 'Jack's apples'. Guided by the preceding example, a language model is encouraged to output a structured sequence of intermediate calculations (such as subtracting eaten apples and adding given apples) before stating the correct final answer of .
0
1
Tags
Foundations of Large Language Models
Ch.2 Generative Models - Foundations of Large Language Models
Foundations of Large Language Models Course
Computing Sciences
Related
Few-Shot Chain-of-Thought (CoT) Prompting
A user provides the following text to a large language model:
Question: A cafeteria had 23 apples. If they used 20 to make lunch and bought 6 more, how many apples do they have?
Answer: The cafeteria started with 23 apples. They used 20, so they had 23 - 20 = 3 apples. Then they bought 6 more, so they now have 3 + 6 = 9 apples. The final answer is 9.
Question: Roger has 5 tennis balls. He buys 2 more cans of tennis balls. Each can has 3 tennis balls. How many tennis balls does he have now?
Which statement best analyzes the structure of this prompt and its intended effect on the model's problem-solving process?
Constructing a One-Shot CoT Prompt
Evaluating a Prompt for a Language Model
Example of a One-Shot CoT Prompt with Arithmetic Problems