Back to the lessonPreparing the printout…

Prompt Engineering · Module 2 — Design: Prompts and Prompting Strategies

Period 4 · Prompt Anatomy

[video] Lecture video — Period 4: Prompt Anatomy — /api/lesson-media/videos/4d3653ff-a3ca-4f63-bf8e-bb93c553e599-1794892500104-5855e83bb2c7a471.mp4

Flashcards · Prompt anatomy

Prompt anatomy — A practical breakdown of a prompt into functions. It is not a compulsory sentence order.

Instruction — The action you ask the system to perform.

Sum Net_Sales_Amount for each Store_Region.

Context — The purpose and audience: who uses the answer and for what decision.

A retail manager reviewing regional activity.

Input — The source material or data. If the model cannot access it, the input is missing.

Output specification — The required structure and content of the result.

A four-row table ranked highest to lowest, plus two observations.

Constraint — A defined boundary on the answer: what to include or avoid.

Do not invent currency or infer profit.

Role (optional) — Sets the assistant's purpose or tone. It cannot make a numerical answer accurate.

Provider layouts — OpenAI, Google and Anthropic group the same needs differently; none is mandatory. Compare layouts by testing outputs against one rubric.

Does this sentence earn its place? — Keep a sentence only if removing it would change an observable property of the answer.

Exact field names — Naming real columns (Net_Sales_Amount, Store_Region) keeps the task checkable; asking for fields that do not exist invites invention.

Prompt Engineering · Period 4 · Prompt Anatomy · printed on November 20, 2026