Learn Before
Applying Calculation Annotation Formatting
A developer wants to ensure a Large Language Model provides an accurate, step-by-step solution to a word problem. The model's output should be formatted so that all arithmetic operations are enclosed in ≪...≫ for an external calculator to process, and the final numerical answer is preceded by ####. Given the model's unformatted reasoning below, rewrite it to apply this specific annotation structure.
0
1
Tags
Ch.3 Prompting - Foundations of Large Language Models
Foundations of Large Language Models
Foundations of Large Language Models Course
Computing Sciences
Application in Bloom's Taxonomy
Cognitive Psychology
Psychology
Social Science
Empirical Science
Science
Related
Triggering an External Calculator with Calculation Annotation
Mechanism of Tool Invocation and Result Substitution
A user wants a language model to solve a word problem by showing its work and then providing a final answer. The model should format its calculations using
≪...≫so an external tool can execute them accurately, and use####to mark the final answer. Review the model's response below and identify the primary error in its formatting.Problem: A farmer has 3 fields, and each field produces 150 bushels of corn. If the farmer sells 200 bushels, how many are left?
Model's Response: First, I need to find the total production. ≪There are 3 fields, so 3 * 150 = 450 bushels total≫. Then, the farmer sells 200 bushels. The remaining amount is ≪450 - 200≫. So the final answer is 250.
Applying Calculation Annotation Formatting
A developer is designing a system where a Large Language Model solves math word problems. The system must ensure arithmetic accuracy by offloading calculations to an external tool and must also present the final answer in a clearly identifiable way. Which of the following model outputs best applies a formatting strategy to achieve both of these goals?