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
Step 4 of 5

Negative prompts

A negative prompt lists what you don't want in the result. It matters most for image generation. Stability AI's Stable Image Ultra in Amazon Bedrock, for example, has a separate negative prompt field: you describe the scene you want in the main prompt and list unwanted elements, such as "clouds, text, people", in the negative prompt. Image models handle words like "no" or "without" in the main prompt unreliably and may even draw the thing you mentioned. That's why exclusions go in the negative prompt instead. Text models have no separate field, but you can still state what to avoid ("don't mention competitors") as part of the instruction.

PartWhat it doesExample
InstructionStates the task"Summarize the review in one sentence"
ContextFrames how to read the task"This text is from a hotel review site"
Input dataThe material to work onThe review itself
Output indicatorSets the answer's form"Return only a star rating from 1 to 5"
Negative promptExcludes unwanted content"blurry, watermark, text"