Example

Example of Final Problem Solving in Least-to-Most Prompting

In least-to-most prompting, after all intermediate sub-problems have been sequentially answered, the final solution is derived by providing the language model with the original problem alongside the full context of all previously generated sub-problems and their corresponding answers. For example, to answer the original question "What was the duration of the environmental study?", the model receives the context that the study started in 2015 and ended in 2020. Using this comprehensive context, the model correctly synthesizes the final answer: the duration was 5 years.

0

1

Updated 2026-04-30

Contributors are:

Who are from:

Tags

Foundations of Large Language Models

Ch.3 Prompting - Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences

Related