Prompt Engineering: Summarise Without Losing the Point
A summary is a short version of a longer text. A good summary keeps the main point and drops the rest.
No length limit
Three reviews, no limit given. The summary can wander.
Summarise these three reviews of the Aurora Ceramic Mug.
Review 1: The mug is a good size and the blue colour looks nice on the shelf.
Review 2: It arrived with a small chip on the rim, so I asked for a replacement.
Review 3: It survives the dishwasher every day and the coffee stays warm.Two sentences, both sides kept
The same reviews, with a length and a rule. The summary must keep the praise and the complaint.
Summarise these three reviews of the Aurora Ceramic Mug in two sentences. Keep the praise and the complaint.
Review 1: The mug is a good size and the blue colour looks nice on the shelf.
Review 2: It arrived with a small chip on the rim, so I asked for a replacement.
Review 3: It survives the dishwasher every day and the coffee stays warm.Example
Summarise these three reviews of the Aurora Ceramic Mug in two sentences. Keep the praise and the complaint, and name the product.
Review 1: The mug is a good size and the blue colour looks nice on the shelf.
Review 2: It arrived with a small chip on the rim, so I asked for a replacement.
Review 3: It survives the dishwasher every day and the coffee stays warm.Key points
- A summary is a short version of a longer text.
- A summary keeps the main point. It drops the detail that does not change the point.
- A review summary must keep both sides. Praise and complaint both belong in it.
- A length limit forces the choice. Two sentences cannot hold everything, so the prompt must name what matters.
- The prompt names the length and the point to keep. Then the summary can be checked against the reviews.
This example runs the tightest version of the prompt. The reply is checked by reading the reviews again. Praise present. Complaint present. Nothing added.
Note
A summary that drops the complaint is not shorter. It is wrong.
Try it Yourself
Edit the code, then press Run.
Running is simulated · Rust Playground
Exercise
A summary of three reviews keeps only the praise. What is the problem?