Skip to content

Latest commit

 

History

History
49 lines (25 loc) · 1.58 KB

File metadata and controls

49 lines (25 loc) · 1.58 KB

Objective: Create a reusable prompt for text summarization.

Write a weak prompt: "Summarize this text."

Refine it into a reusable pattern:

    "Summarize the following text in 3 bullet points, focusing on the main arguments and ignoring examples."

Test it with at least two different inputs (e.g., a news article and a technical blog).



Step 1: Weak Prompt

Prompt:

“Summarize this text.”

Step 2: Better Reusable Prompt Pattern

Improved Prompt Pattern:

“Summarize the following text in 3 bullet points, focusing only on the main arguments and ignoring examples.”

Test 1: News Article Example Input Text (News Style)

A city has approved a new public transportation system to reduce traffic congestion and pollution. The mayor argues it will improve daily commutes and boost the local economy. Critics worry about high construction costs and possible delays.

Output Using Improved Prompt

The city approved a new public transportation system.

The goal is to reduce traffic and pollution while improving commutes.

Some critics are concerned about high costs and delays.

Test 2: Technical Blog Example Input Text (Technical Style)

Cloud computing allows businesses to store and process data remotely instead of on local servers. It reduces infrastructure costs and increases scalability. However, it introduces concerns around data privacy and vendor lock-in.

Output Using Improved Prompt

Cloud computing stores and processes data remotely instead of locally.

It reduces infrastructure costs and improves scalability.

It raises concerns about privacy and vendor dependency.