Example

Example of an Article Summarization Prompt with a Word Constraint

An example of a constrained text transformation task involves prompting a language model with the instruction 'Summarize the following article in no more than 50 words:', followed by a source text detailing urban sustainability challenges. The model is expected to output a concise overview, such as 'Urban areas are grappling with sustainability challenges, such as rising pollution, traffic congestion, and infrastructure demands...', adhering strictly to the prescribed length constraint.

0

1

Updated 2026-04-30

Contributors are:

Who are from:

Tags

Foundations of Large Language Models

Ch.3 Prompting - Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences