CertBrain
Sign in
← Back to decks
Sign in to save your progress.Sign in

Anatomy of a Prompt

A prompt is the input you send a foundation model to get a response, and most prompts are built from a small set of parts: an instruction, context, input data, a description of the output you want and, for image models, a negative prompt. This lesson takes a prompt apart, so you can tell which…

9 cards

Anatomy of a Prompt

In this lesson · 5 sections

Terms you'll meet

Tap a card to see what it means.

Step 1 of 5

A prompt is the input you send a foundation model to get a response, and most prompts are built from a small set of parts: an instruction, context, input data, a description of the output you want and, for image models, a negative prompt. This lesson takes a prompt apart, so you can tell which part to fix when a response goes wrong, a skill the exam tests through short scenarios.

The instruction

The instruction is the task itself: "Summarize this review in one sentence", "Classify this email as personal or commercial", "Translate this paragraph into Spanish." It's the one part almost every prompt needs. AWS's prompt guidance stresses keeping it simple, clear and complete. If a classification task should pick from fixed labels, the instruction should name those labels, or the model will invent its own wording. AWS also suggests placing the question or instruction near the end of the prompt, after any long text, so the model knows what to do with everything it has just read.