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 2 of 5

Context and input data

Context is background that helps the model interpret the task, such as "The following text is from a customer support chat" or "You are answering questions for a bank's employees." It narrows the model's focus and steers its tone and vocabulary.

Input data is the material the model works on: the review to summarize, the email to classify, the document to answer questions about. Context and input are easy to confuse. A quick test: input data is what the instruction acts on, while context tells the model how to read it. Many prompts also include demonstration examples, which the next lesson on prompting techniques covers.