Glossary
AI terms for product managers
The 94 ideas the lessons teach, in plain words. Each one links to the lesson where you can try it on a real model and see what it changes.
A
Ablation
Removing one part of a prompt or system at a time to see how much it really contributes. It shows which ingredients matter and which are just habit.
Try it inWriting Good Prompts →
Abstaining
Letting the model say "I don't know" instead of guessing. Explicit permission cuts made-up answers, at the risk of being too cautious.
Try it inHallucination & Grounding →
Acceptance Criteria
The conditions a feature must meet to count as done, written in the ticket. Concrete numbers and examples settle far more of an agent's choices than a sentence of intent.
Try it inSpec-Driven Development →
Agent Loop
The cycle an agent repeats: the model decides on the next step, calls a tool, reads the result and goes again until it can answer. Each lap is another model call.
Try it inHow an AI Agent Works →
Agents
A model that decides its own next steps and tools until a goal is met. Flexible with unexpected requests, but costs more and can wander.
Try it inWorkflows vs. Agents →
AGENTS.md
A file at the top of a repository that coding agents read before every task: how to run the tests, where things go, and the team's rules. Some tools call it CLAUDE.md or a rules file.
Try it inThe Rules File →
AI Reviewer
A model that reads a pull request and approves it or asks for changes. It catches what it can see in the diff; without the ticket it can't tell when the code does the wrong thing.
Try it inReviewing AI-Written Code →
Approvals
Requiring a person to confirm an agent's action before it happens, typically for money, deletions or anything that can't be undone.
Try it inHuman-in-the-Loop →What the Coding Agent May Touch →
Autonomy
How much an agent may do without asking. More autonomy is faster and cheaper to run; less is safer.
Try it inHuman-in-the-Loop →
B
Benchmark
A public test that scores models on the same tasks. Useful for a first shortlist, but it measures someone else's tasks: your own evals decide what works for your feature.
Bug Reports
What someone writes when the product misbehaves. Steps to reproduce, the exact error and the expected result let whoever fixes it, person or coding agent, find the cause instead of guessing.
Try it inThe Bug Report Is the Prompt →
C
Cascades
Trying a cheap model first and escalating to a stronger one only when the answer looks unsure or fails a check.
Try it inModel Routing →
Chunking
Splitting documents into smaller passages before embedding them, so search can return just the part that answers a question. Chunks too small lose context; too big add noise.
Try it inPrompting vs. RAG vs. Fine-tuning →Retrieval-Augmented Generation →
CI Gate
The rule that a change merges only when continuous integration (the automated build and tests) passes. It's only as strict as the tests, and an agent that may edit them can turn it green.
Try it inLet the Agent Edit the Tests? →
Clarifying Questions
Questions an agent asks before it acts, to fill gaps in its instructions. They help only when someone can answer them; an agent told to keep going asks none and guesses.
Try it inThe Bug Report Is the Prompt →
Code Review
Someone other than the author reading a change before it merges, to catch bugs, security holes and code that doesn't do what the ticket asked. With coding agents, there is far more code to read than there are people to read it.
Try it inReviewing AI-Written Code →
Coding Agent
An AI agent that writes, changes and tests code from a ticket or a prompt, often opening its own pull requests.
Try it inSpec-Driven Development →The Bug Report Is the Prompt →The Rules File →Let the Agent Edit the Tests? →What the Coding Agent May Touch →
Compaction
Squeezing the older part of a conversation into a summary while keeping the latest messages word for word, so a long chat fits the context window. It's lossy by design: exact numbers and passing details are what a summary drops.
Try it inMemory & Long Conversations →
Context Engineering
Deciding what goes into the context window on each request (instructions, history, retrieved documents, tool results) and what to leave out. Quality and cost both depend on it.
Try it inWriting Good Prompts →How an AI Agent Works →Memory & Long Conversations →Retrieval-Augmented Generation →The Rules File →
Context Window
The most tokens a model can take in at once: instructions, conversation history, documents and the reply together. What doesn't fit is cut, so the model can forget early turns.
Try it inHow an LLM Answers a Prompt →
Cost
What a run costs in model calls: the tokens in and out on every call, times the price per token. Agents, reasoning and big models multiply it.
E
Edge Cases
The unusual inputs a feature must still handle correctly: the 31st day, the expired card, the second discount code. They're where a ticket's gaps show, and where a coding agent guesses.
Try it inSpec-Driven Development →
Embeddings
Lists of numbers that represent the meaning of a piece of text, so texts with similar meanings get similar numbers. They power semantic search and RAG.
Try it inEmbeddings & Semantic Search →Retrieval-Augmented Generation →
Evals
Tests for an AI feature: run a fixed set of inputs, grade the outputs with code, people or an LLM judge, and compare versions. They turn "seems better" into a number.
F
Few-Shot Examples
Worked examples included in the prompt, showing an input and the output you want. They teach format and judgement faster than describing them.
Try it inWriting Good Prompts →
Fine-tuning
Further training a model on your own examples so it learns a style or pattern. Good for consistent behavior; poor for facts, which go stale and are hard to update.
Try it inPrompting vs. RAG vs. Fine-tuning →
Frontier Model
The largest, most capable models a lab offers. Best on hard problems, but slower and many times pricier per token than smaller models.
Try it inReasoning Models →Model Routing →
G
Grounding
Giving the model the facts it needs (documents, data, search results) and asking it to answer only from them, ideally citing where each answer came from.
Try it inHallucination & Grounding →
Guardrails
Checks around a model that block bad inputs or outputs, such as attack detection, content filters, format checks or limits on what actions are allowed.
Try it inHow an AI Agent Works →Prompt Injection & Guardrails →
H
Hallucination
A confident answer the model made up. It sounds the same as a correct one, so it has to be caught with grounding, checks or evals.
Try it inHallucination & Grounding →
Handoffs
Passing work and context from one agent to another. Each handoff adds time and cost, and can lose details on the way.
Try it inMulti-Agent Systems →
Human Review
People checking an AI's work, either before an action (approval) or afterwards on a sample, to catch errors and improve the system.
I
Inference
Running a trained model to get an answer, as opposed to training it. Every request your product sends is an inference call, and that's what you pay for per token.
Try it inHow an LLM Answers a Prompt →Prompt Caching & Cost →
J
Jailbreak
A user's own attempt to talk a model past its rules, for example with role-play or "ignore your instructions". Unlike prompt injection, the attacker is the person typing.
Try it inPrompt Injection & Guardrails →
JSON Schema
A description of the exact fields, types and allowed values a JSON reply must have. Providers can enforce it, so replies always parse.
Try it inStructured Outputs →
K
Keyword Search
Classic search that matches the words you typed. Precise for names and codes, but misses results that say the same thing in other words.
Try it inEmbeddings & Semantic Search →
L
Latency
How long a user waits for an answer. It grows with output length, model size, reasoning and the number of calls in a chain.
Try it inReasoning Models →
Least Privilege
Giving an agent only the tools and permissions the task needs, so a successful attack or mistake can do little harm.
Try it inPrompt Injection & Guardrails →What the Coding Agent May Touch →
Live Traffic
What real users actually send, which always includes cases your test set didn't imagine.
Try it inProduction Monitoring →
LLM
Large language model: a model trained on huge amounts of text to predict the next token, which is how it writes answers, code and summaries. Claude, GPT and Gemini are LLMs.
Try it inHow an LLM Answers a Prompt →
LLM-as-Judge
Using a second model with a rubric to grade answers that have no single right wording, such as tone or helpfulness. Cheaper than people, but it must be checked against human grades.
Try it inEvaluating AI Changes →
M
Max Tokens
A cap on how long the reply can be. The model stops when it hits the cap, even mid-sentence, which keeps cost and latency predictable.
Try it inHow an LLM Answers a Prompt →
MCP
Model Context Protocol: an open standard for connecting AI assistants to tools and data. A server describes its tools once and any MCP client (Claude, ChatGPT, Cursor) can use them.
Try it inTool Design & MCP →
Memory
What an agent carries from step to step or session to session: the conversation so far, notes it saved, or facts stored for later. It all costs context and tokens.
Try it inHow an AI Agent Works →Memory & Long Conversations →
Model Choice
Picking which model handles a task. Bigger models are better at hard cases and cost more; most traffic doesn't need them.
Try it inModel Routing →
Monitoring
Watching a live AI feature: sampling real conversations, grading them and tracking failures, cost and latency, then turning failures into new test cases.
Try it inProduction Monitoring →
O
Open-Weight Model
A model whose weights are published, so you can run it on your own servers or a host of your choice. More control over data and cost, but you take on running it.
Try it inModel Routing →
Orchestration
Coordinating several model calls or agents: who does what, in which order, and how results are combined.
Try it inMulti-Agent Systems →
Output Format
Telling the model exactly what shape to reply in, such as one word, a list or JSON. It's often the single change that most improves results a program has to read.
Try it inWriting Good Prompts →
P
Parsing
Turning the model's reply into data your program can use. Free text often fails to parse; enforced schemas make it dependable.
Try it inStructured Outputs →
Pass Rate
The share of test cases that pass every grader. A single number to compare prompt or model versions.
Try it inEvaluating AI Changes →
Pricing
Model APIs charge per token, with separate prices for input and output tokens; output usually costs several times more. Bigger models cost more per token.
Try it inPrompt Caching & Cost →
Prompt Caching
The provider remembers the start of a prompt it has just seen and charges much less to reuse it. Put the fixed parts (instructions, documents) first so they can be cached.
Try it inPrompt Caching & Cost →
Prompt Design
Choosing what goes into a prompt: the task, the format you want back, definitions of your categories, examples and edge cases. Each part can be tested to see whether it helps.
Try it inWriting Good Prompts →
Prompt Injection
An attack that hides instructions in content the model reads, such as an email, web page or document, to make it do something its user didn't ask for.
Try it inPrompt Injection & Guardrails →
Prompting
Changing what you tell the model to change what it does. The cheapest, fastest fix, and the right one for rules you can write down.
Try it inPrompting vs. RAG vs. Fine-tuning →
Pull Request Size
How many lines a change touches. Reviewers, human or AI, find far fewer problems in a big one, so teams cap the size of an agent's PRs.
Try it inReviewing AI-Written Code →
R
RAG
Retrieval-augmented generation: search your own data for the passages relevant to a question, then give them to the model to answer from. It supplies facts the model was never trained on.
Try it inRetrieval-Augmented Generation →Prompting vs. RAG vs. Fine-tuning →
Reasoning
Models that think step by step before answering, spending hidden "reasoning tokens". It helps multi-step problems and is wasted on easy ones.
Try it inReasoning Models →
Red Teaming
Deliberately attacking your own AI feature before launch, with injections, jailbreaks and misuse, to find what gets through while it's still cheap to fix.
Try it inEvaluating AI Changes →Prompt Injection & Guardrails →
Regressions
Things that used to work and broke after a change. Evals exist mostly to catch these before users do.
Reliability
How often a system does the right thing across many runs, not just in a demo. Models vary from run to run, so it has to be measured.
Reranking
A second, more careful pass that reorders search results by how well they actually answer the question, before the model sees them.
Try it inRetrieval-Augmented Generation →
Review Load
How much reading a team's review policy asks of people each day. Coding agents raise it faster than teams can add reviewers.
Try it inReviewing AI-Written Code →
Risk Policy
Written rules for which actions an agent may take on its own and which need a person, kept in its instructions so fewer cases reach a reviewer.
Try it inHuman-in-the-Loop →
Root Cause
The defect that actually produces a bug, as opposed to the symptom someone sees. A fix that only hides the symptom, like catching the error or retrying, leaves the bug in place to show up somewhere else.
Try it inThe Bug Report Is the Prompt →
Routing
Sending each request to the model that fits it: easy ones to a cheap model, hard ones to a strong one. The risk is hard requests that look easy.
Try it inModel Routing →
S
Sampling
How the next token is picked from the model's probabilities. Temperature and top-p control it: lower is more predictable, higher is more varied.
Try it inHow an LLM Answers a Prompt →Hallucination & Grounding →
Secrets
The passwords, API keys and database addresses an app runs with, kept out of the code in environment variables. An agent that can read them can paste them into a file, a log or a pull request.
Try it inWhat the Coding Agent May Touch →
Semantic Search
Searching by meaning instead of exact words, using embeddings. "Can't log in" finds a ticket about a locked account even though no words match.
Try it inEmbeddings & Semantic Search →
Similarity
How close two embeddings are, usually measured as cosine similarity. Higher means closer in meaning; search returns the most similar items.
Try it inEmbeddings & Semantic Search →
Sliding Window
A memory strategy that sends back only the last few messages of a conversation. Cheap and simple, and anything said before the window is gone for good.
Try it inMemory & Long Conversations →
Small Model
A cheaper, faster model that handles routine requests well. Most traffic in a product can go to one, with the hard cases routed to a bigger model.
Try it inModel Routing →
Spec-Driven Development
Writing down what a feature must do, edge cases and examples included, before a coding agent builds it, then checking the build against that spec. The agent builds what it's told and guesses the rest.
Try it inSpec-Driven Development →
Specialists
Agents set up for one job each, with their own instructions, tools or data. Useful when each brings something the others lack.
Try it inMulti-Agent Systems →
Streaming
Sending the reply to the user token by token as it's written, instead of all at once at the end. The total time is the same, but the wait feels much shorter.
Try it inHow an LLM Answers a Prompt →
Structured Output
Asking the model to reply in a fixed data shape (usually JSON matching a schema) so your code can read every reply reliably.
Try it inStructured Outputs →
System Prompt
Instructions sent ahead of the user's message on every request: the model's role, rules and output format. Users don't see it, but it shapes every reply.
Try it inHow an LLM Answers a Prompt →Writing Good Prompts →
T
Team Conventions
The decisions a team has made about how code gets written, like where tests go, how money is stored or which logger to use. Much of it lives in people's heads, so a coding agent can't follow it until someone writes it down.
Try it inThe Rules File →
Temperature
A setting for how adventurous the model's word choice is. At 0 it almost always picks the most likely next token, so answers repeat; higher values vary more, for ideas, and also make more mistakes.
Try it inHow an LLM Answers a Prompt →Hallucination & Grounding →
Test Sets
A fixed collection of inputs with known good answers, run after every change to see whether things got better or worse.
Test Suite
The automated checks a codebase runs on every change. A test that encodes a business rule, like a refund window, is the rule's last line of defense when an agent writes the code.
Try it inLet the Agent Edit the Tests? →
Thinking Effort
A setting for how much a reasoning model thinks before answering. More effort costs time and tokens; past a point it stops helping.
Try it inReasoning Models →
Token Cost
What a part of the request costs in tokens. Every connected tool's description is sent with every request, so unused tools still cost money.
Try it inTool Design & MCP →
Tokenizer
The step that splits text into tokens before the model sees it. Each model family splits differently, so the same text can cost a different number of tokens.
Try it inHow an LLM Answers a Prompt →
Tokens
The pieces of text a model reads and writes: whole words, parts of words or punctuation. Models count length, limits and price in tokens, roughly 3 to 4 characters of English each.
Try it inHow an LLM Answers a Prompt →Prompt Caching & Cost →
Tool Descriptions
The name and text that tell a model what a tool does and when to use it. The model chooses tools only from these, so vague descriptions get the wrong tool called.
Try it inTool Design & MCP →
Tool Use
Letting a model call functions you provide, such as search, a calculator or your API. The model asks for a call; your code runs it and returns the result.
Top-K
How many search results retrieval passes to the model. Too few misses the answer; too many adds noise and cost.
Try it inRetrieval-Augmented Generation →
Trade-offs
Every AI design choice buys something and costs something: quality against cost, speed against care, flexibility against predictability. Product sense is knowing which side matters for this feature.
Try it inPrompting vs. RAG vs. Fine-tuning →Multi-Agent Systems →
U
Unit Economics
What one request, conversation or user costs you in model calls, compared with what it's worth. It decides whether a feature can scale.
Untrusted Data
Any text that didn't come from you or your user, such as tool results, web pages, emails or uploads. It can contain instructions, so treat it as data, never as commands.
Try it inPrompt Injection & Guardrails →
V
Vector Search
Finding the stored embeddings closest to a query's embedding, usually in a vector database. It's the retrieval step of most RAG systems.
Try it inRetrieval-Augmented Generation →
W
Workflows
A fixed sequence of steps, some using a model, decided in code. Cheap and predictable, but it mishandles anything it wasn't designed for.
Try it inWorkflows vs. Agents →