Example

Example of Constructing a Contextual Prompt for a Subsequent Sub-Problem

To solve a multi-step problem, the context from previous steps is carried forward. For example, after establishing the answer to the first sub-problem ('Q: When did the environmental study start? A: The environmental study started in 2015.'), this entire question-answer pair is included in the input when posing the second sub-problem ('Q: When did the environmental study end?'). This ensures the model has the necessary information to proceed.

0

1

Updated 2026-04-30

Contributors are:

Who are from:

Tags

Ch.3 Prompting - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences

Related