Learn
Learn hub Foundations Prompting SQL & data Visualization RAG Chatbots Prototypes Agents & launch
Weekly practice
01020304050607 08091011121314
Phase 1

Week 2. Prompt patterns: role/constraints, few-shot, decomposition.

Problem statement

You own an AI-assisted weekly incident summary for executives. Leadership wants consistent tone, bounded length, and predictable structure—but engineering wants flexibility when incidents are messy.

Outcomes

You can draft prompts using role + constraints + format, few-shot examples, and decomposition (split complex asks into steps).

Deliverables

  1. Three prompt variants for the same incident narrative (see data/incident_sample.md).
  2. Written comparison: which variant you’d pilot first and one tradeoff (verbosity, control, maintenance).

Links