Example of a Prompt Template for Response Refinement
A prompt template for refining a Large Language Model's output explicitly states the inputs the model will receive to guide the revision. For example, the model can be instructed with the following template: 'You will be provided with a question, its corresponding response, and some feedback on this response.' This structure ensures the LLM uses all three components—the original question, the initial response, and the feedback—to generate an improved answer.
0
1
Tags
Ch.3 Prompting - Foundations of Large Language Models
Foundations of Large Language Models
Foundations of Large Language Models Course
Computing Sciences
Related
Crafting a Refinement Prompt
Example of a Prompt Template for Response Refinement
An AI model provided an initial response to a prompt and was then instructed to generate feedback on its own work. Based on the information below, which follow-up prompt is best designed to guide the model toward a more comprehensive and refined answer?
Initial Prompt: "Summarize the main causes of the Roman Empire's decline."
Initial Response: "The Roman Empire fell mainly due to barbarian invasions."
Generated Feedback: "This response is overly simplistic. It correctly identifies one factor but fails to mention crucial internal factors such as economic instability, political corruption, and overexpansion."
Arrange the following actions into the correct logical sequence to guide a language model through one cycle of improving its own output.
Learn After
A developer is building a system where a Large Language Model (LLM) iteratively improves its own answers. The process involves three stages: 1) The LLM generates an initial response to a user's question. 2) The LLM generates critical feedback on its own initial response. 3) The LLM uses all the information to generate a final, improved response. Which of the following prompt structures, given to the LLM in the third stage, is best designed to produce a high-quality, refined answer?
Constructing a Refinement Prompt
Diagnosing a Flawed Refinement Prompt