Learn Before
Example of a Summarization Prompt with a Sentence Constraint
An example of a prompt for text summarization that includes a specific constraint is the instruction: 'Summarize this text in three sentences.' This command directs a Large Language Model not only to perform the summarization task but also to adhere to a strict output length of exactly three sentences.
0
1
Tags
Ch.4 Alignment - Foundations of Large Language Models
Foundations of Large Language Models
Foundations of Large Language Models Course
Computing Sciences
Related
Example of a Summarization Prompt with a Sentence Constraint
A user provides a language model with the following prompt, which includes an instruction and a text passage. Based on the model's response, which statement best analyzes its performance in following the given instruction?
Instruction: 'Summarize the following text.'
Text: 'The water cycle describes the continuous movement of water on, above, and below the surface of the Earth. The main processes involved are evaporation, where water turns into vapor; condensation, where vapor forms clouds; precipitation, where water falls back to Earth as rain or snow; and collection, where water gathers in bodies like oceans and rivers. This cycle is crucial for sustaining life.'
Model's Response: 'The water cycle is a vital process involving evaporation, condensation, precipitation, and collection, which describes the continuous movement of water throughout the Earth's systems.'
Diagnosing a Failed Summarization Attempt
Examples of Constrained Prompts for Text Summarization
Constructing a Summarization Prompt
Learn After
A user gives a language model the following instruction and text:
Instruction: 'Summarize the following text in exactly one sentence.'
Text: 'The sun is a star at the center of our solar system. It is a nearly perfect sphere of hot plasma, with internal convective motion that generates a magnetic field. Its diameter is about 109 times that of Earth, and its mass accounts for about 99.86% of the total mass of the solar system.'
The model produces this output:
Output: 'The sun is the central star of our solar system. It is a massive sphere of hot plasma that generates a magnetic field. It is significantly larger and more massive than Earth.'
Which of the following statements best evaluates the model's performance?
Applying a Length Constraint to a Prompt
Refining a Summarization Prompt