AI GLOSSARY / TOPIC

Prompts and context

What should I put in a prompt?

Prompt

The input you give an AI model: a request, instructions, examples or other material.

Where you’ll use it
“Write two error messages under 20 words.”
Keep in mind
A clear prompt helps direct the response; it does not guarantee a correct result.
Source: Google Cloud — Prompt engineering: overview and guide ↗

Context

Information available to the model for the current response.

Where you’ll use it
The audience, form rules and original message supplied with your request.
Keep in mind
Mentioning a file is not the same as making its contents available.
Source: Google Cloud — Prompt engineering: overview and guide ↗

Token

A unit a model processes. In text, a token may be a word, part of a word or punctuation.

Where you’ll use it
A long document uses many tokens before the model writes an answer.
Keep in mind
A token is not always one word.
Source: Google for Developers — Machine Learning Glossary: Generative AI ↗

Context window

The amount of information a model can process in a request, measured in tokens.

Where you’ll use it
A large file and long conversation compete for available space.
Keep in mind
A larger window is capacity, not a guarantee that every detail will be used correctly.
Source: Google for Developers — Machine Learning Glossary: Generative AI ↗

System prompt

Instructions set by an AI application to guide behavior, alongside the user’s current request and other context.

Where you’ll use it
A support app can instruct its assistant to use plain language and avoid inventing opening hours.
Keep in mind
This differs from a user’s task prompt and from model training. Instruction names and priorities vary by product; writing a rule does not guarantee compliance.
Source: Google AI for Developers — Text generation: system instructions ↗

Structured output

An AI response organized into a specified format, often using a schema to define its fields and allowed values.

Where you’ll use it
A design inventory could return one record per screen with fields for its name, status and owner.
Keep in mind
A valid structure does not make its contents true. A made-up owner can still fit the required text field. Validate the values as well as the shape.
Source: Google AI for Developers — Structured outputs ↗

Schema

A description of how data should be organized, including its fields, types and rules.

Where you’ll use it
An appointment record might require a date, a clinic name and an available-or-full status.
Keep in mind
The schema is the rule for the shape; structured output is a response that follows it. A schema can check required fields without verifying the underlying appointment.
Source: JSON Schema — Creating your first schema ↗

Temperature

A response-generation setting that changes how randomly a model selects from possible next tokens.

Where you’ll use it
A writing tool may use a higher setting to explore more varied label suggestions.
Keep in mind
Temperature is not a creativity or truth score. Lower settings do not guarantee correct or identical answers, and available controls vary by model and app.
Source: Google for Developers — Machine Learning Glossary: Generative AI ↗

Prompt engineering

Designing, testing and revising prompts for a task.

Where you’ll use it
Compare two versions of the same request against the same checklist.
Keep in mind
The prompt is the input; prompt engineering is the practice of improving it.
Source: OpenAI — Prompt engineering ↗

Context engineering

Selecting and maintaining the information available to a model during work.

Where you’ll use it
Keep the source policy and accepted constraints available while removing irrelevant discussion.
Keep in mind
It includes sources, history and tool results, not just the wording of a prompt.
Source: Anthropic — Effective context engineering for AI agents ↗

Few-shot prompting

Including a few input-and-output examples to demonstrate the pattern you want.

Where you’ll use it
Show one accurate confirmation before requesting another.
Keep in mind
Examples guide a response without fine-tuning the model. Poor examples can teach the wrong pattern.
Source: OpenAI — Prompt engineering ↗

Chat history

The saved sequence of messages in a conversation or account.

Where you’ll use it
An earlier correction may be available later in the same conversation.
Keep in mind
Visible history is different from what a model receives for a particular answer, and from cross-chat memory.
Source: Anthropic — Use Claude’s chat search and memory to build on previous context ↗

Iteration / follow-up

A cycle of reviewing a result, changing the request and checking the next result.

Where you’ll use it
Point out an invented response time and ask for a corrected message.
Keep in mind
Repeating “try again” without naming the problem gives little direction. Stop when the task checks pass.
Source: OpenAI — Prompt engineering ↗

New entries reviewed October 24, 2026; original entries reviewed October 22. Examples are fictional. Product access and data terms vary.