Glossary

5,202 terms from across the path, each linked to the lesson that introduces it.

#

12-factor config

Config in environment variables, identical image across environments.

Introduced in 11C.1 Deploying LLM Services
30/60/90 plan

A one-page onboarding agreement covering what you'll learn, contribute and own in the first three months.

Introduced in 14B.9 Your First 90 Days and Long-Term Growth
422 Unprocessable Content

The automatic validation-failure status, with a structured detail list of Pydantic-style errors.

Introduced in 01B.7 FastAPI Basics: Building a Small API
~, ., ..

Home directory; this directory; parent directory.

Introduced in 00.2 The Terminal and Shell

A

"a" / "x" / "r+" modes

Append / exclusive-create / read+write file modes.

Introduced in 01A.9 Files, Paths, JSON and CSV
__all__

A module's declared public names; only these are bound by from module import *.

Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Library
__annotations__

The dict on a function/module/class holding its annotation objects.

Introduced in 01A.10 Type Hints and Writing Readable Code
A/A run

Running the same harness twice on different seeds to measure noise

Introduced in 08A.4 Harness Engineering: Everything Around the Model
A/A test

An experiment that assigns the same variant to both arms; it validates the assignment/logging/analysis pipeline and quantifies inherent variance and peeking impact before a real A/B test.

Introduced in 10A.9 Offline vs Online Evaluation
A/B test

A randomised online controlled experiment comparing variants.

Introduced in 10A.9 Offline vs Online Evaluation
A2A (Agent2Agent)

An open protocol for one agent to delegate tasks to another agent and follow their progress

Introduced in 08E.4 A2A Basics, Agent Skills (SKILL.md) and Tool Selection at Scale
A2A task

A stateful unit of work with an id, a contextId, a status, artifacts and a history

Introduced in 08E.4 A2A Basics, Agent Skills (SKILL.md) and Tool Selection at Scale
Ablate one stage

Changing exactly one pipeline component and re-measuring to isolate cause — the debugging loop's unit of work.

Introduced in 07.10 RAG Failure Modes and Debugging
Ablation

Removing one context source at a time and measuring the score change to prove which sources earn their tokens.

Introduced in 04.6 Context Engineering: Selecting and Ordering Context
Ablation credit

The change in suite success when one agent is replaced by a correct oracle (what fixing it would buy) or by a pass-through stub (whether it earns its place).

Introduced in 10A.12 Evaluating Multi-Agent Systems and Validating User Simulators
Ablation ladder

A sequence of paired comparisons that removes or replaces one design element of a multi-agent system at a time to show which part earns its cost.

Introduced in 10A.12 Evaluating Multi-Agent Systems and Validating User Simulators
Absolute / relative path

Path from the root (/…, C:\…) vs from the working directory.

Introduced in 00.2 The Terminal and Shell
Absolute agreement

Pointwise score agreement — mean_bias, mae, within_one, score spread (sd) — what rank correlations can't see.

Introduced in 10A.5 Calibrating and Validating Judges
Absolute floor / relative non-regression / slice floor / operational budget

The four threshold types: minimum acceptable score, max tolerated drop vs baseline, per-segment minimums, cost/latency caps.

Introduced in 10A.8 Regression Testing, CI and Experiment Tracking
Absolute timeout

Expiry a fixed time after creation, regardless of activity

Introduced in 08B.1 Kinds of State and Session Management
Abstention

The model declining to answer ("I don't know", "Not in the documents") instead of guessing.

Introduced in 02.10 Limitations and Failure Modes
Abstention 2×2

Expect_abstain × did_abstain confusion matrix — answered_unanswerable and abstained_answerable are the two error cells.

Introduced in 10A.6 Evaluating RAG Pipelines in Depth
Abstention accuracy

Correctness of refuse-vs-answer decisions over cases where abstention was expected or exercised (expect_abstain=True OR the system abstained); plain correct answers are excluded and scored by correctness metrics instead. Reported with an abstention curve rather than a single rate.

Introduced in 07.9 Evaluating RAG
Abstention curve

Answer accuracy vs abstention rate as the threshold sweeps — the calibration trade-off.

Introduced in 07.9 Evaluating RAG
Abstract base class

abc.ABC + @abstractmethod — an interface that can't be instantiated.

Introduced in 01A.6 Classes, Dataclasses and Enums
Abstraction leak

When a framework's simplified model can't express a provider's real behaviour, and the gap bites.

Introduced in 08F.1 Agent Frameworks and SDKs
Abuse case / misuse case

Threat enumeration backwards from an attacker's goal / forwards from each component's capabilities.

Introduced in 12.1 Threat Modelling LLM Applications
Acceleration / ramp-rate limit

A limit on how quickly your traffic may grow, separate from the per-minute limits, which causes 429s during sudden spikes.

Introduced in 03.8 Errors, Rate Limits, Timeouts and Retries
Accept-and-poll

Async job pattern: 202 + job ID immediately, poll GET for the result.

Introduced in 11C.1 Deploying LLM Services
Acceptable use policy

A list of prohibited uses attached to a model licence or a provider's terms of service.

Introduced in 02.9 Model Landscape
Acceptable-regression budget

The policy on how much quality may be traded for cost, per feature.

Introduced in 11B.1 Cost and Latency Optimization
Acceptance criterion

A checkable statement of done-ness for a story — eval:-linked for model behaviour, harness:-linked for deterministic checks.

Introduced in 13B.1 Capstone Planning and Scoping
Acceptance rate (unedited)

Share of AI drafts used without human edits — the headline quality-usage metric for copilot-shaped features.

Introduced in 13A.6 Product Metrics, Experiments and Unit Economics
Access / refresh / ID token

OAuth credentials: call-the-API / renew-the-access / prove-who-you-are.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Accessibility

Building for keyboard, screen-reader and contrast needs as a baseline, not a bonus.

Introduced in 00.9 Working Like an Engineer: Debugging, Asking for Help and Learning Habits
Accessibility snapshot

Playwright MCP's text rendering of the accessibility tree with element refs.

Introduced in 08A.15 Coding and Computer-Use Agents
Accessibility tree

The simplified element structure browsers expose to screen readers; Playwright MCP's text rendering of it with element refs.

Introduced in 08A.15 Coding and Computer-Use Agents
Accumulator

A variable carrying running state through a loop.

Introduced in 01A.3 Control Flow and Functions
ACID

Atomicity, Consistency, Isolation, Durability.

Introduced in 00.7 SQL Basics with SQLite
ACL / principal / tenant

Access-control entries / the user-group-role asking / the isolation boundary.

Introduced in 05.8 Metadata Design
ACL coverage

Every served record carrying tenant + non-empty access-control list.

Introduced in 05.10 Data Quality Checks
ACL entry / principal

An access-control rule {principal_type, principal_id, effect} where principals are users, groups or roles; deny always wins and no match means deny.

Introduced in 05.8 Metadata Design
ACL filter

A mandatory query-time predicate restricting results to documents the user's groups may see.

Introduced in 06.6 Filtering, Metadata and Multi-Tenant Search
ACL-aware retrieval

Retrieval that applies user permissions inside the search query so unauthorised evidence is not admitted to model context.

Introduced in 14B.7 Interview Prep II: LLM System Design
Acoustic model / encoder

The neural network stage turning audio features into representations.

Introduced in 09.4 Speech-to-Text
AcroForm

Interactive PDF form fields (text boxes, checkboxes, dropdowns) stored with names and values separate from page content.

Introduced in 05.2 Parsing PDFs
Act autonomously

Autonomy level 4: the agent runs writes by itself, inside hard limits, with review after the fact

Introduced in 08A.1 Agent Definitions, the Autonomy Spectrum and Agent Anatomy
Act with approval

Autonomy level 3: the agent runs writes only after a human approves each one

Introduced in 08A.1 Agent Definitions, the Autonomy Spectrum and Agent Anatomy
Action matrix

The policy table that maps (guard × feature × tenant × direction) to an action — allow, warn, log-only, redact, rewrite, escalate or block.

Introduced in 12.5 Guardrails and Output Validation
Actionable error

A tool error message written for the model: what failed plus what to try next.

Introduced in 08A.6 Designing Tools Models Can Use
Activation function

A non-linear function (such as ReLU, GELU or sigmoid) applied to a neuron's weighted sum. It lets stacked layers learn complex, non-linear patterns.

Introduced in 02.1 Neural Network Basics
Active agent

The state key (active_agent) naming which agent handles the next turn; persisted by a checkpointer.

Introduced in 08F.13 Subgraphs and Multi-Agent Systems
Active parameters

The parameters a mixture-of-experts model actually uses for each token. They mainly decide speed and compute, while total parameters decide memory. Names like 35B-A3B give both.

Introduced in 02.1 Neural Network Basics
Active sampling

Label selection biased toward uncertain/hard cases for efficient validation.

Introduced in 10A.5 Calibrating and Validating Judges
Active-active

Multiple providers serving the same route simultaneously, weighted by health/cost.

Introduced in 11B.5 Model Selection and Routing
Active-Prompt

Choosing which questions to annotate as CoT examples by the model's uncertainty over k sampled answers (Diao et al.).

Introduced in 04.11 Named Prompting Techniques: A Field Guide
Actor

A potential attacker or affected party: user, content author, insider, vendor, automated bot, or the model itself as a confused deputy.

Introduced in 12.1 Threat Modelling LLM Applications
Adam / AdamW

The standard optimizers for training LLMs. They adapt each weight's step size using a running memory of recent gradients. AdamW adds weight decay.

Introduced in 02.1 Neural Network Basics
Adapter

The small file of extra trained weights produced by LoRA-style fine-tuning, loaded alongside an unchanged base model. *(Introduced in [lesson 02.1](02-how-llms-work/01-neural-network-basics.md#74-changing-what-a-model-does-context-vs-weights))* In Module 03 the word has a second, unrelated meaning: a *provider adapter* is the code that translates one provider's API to and from your own types. See [Provider adapter](#provider-adapter). *(Extended in [lesson 03.11](03-llm-apis/11-provider-agnostic-client.md#part-4-adapters))*

Adapter (eval)

The thin wrapper that converts a framework's objects to plain values and back; the only code in an eval repository that should import the framework.

Introduced in 10B.17 DeepEval or Inspect? Choosing, Combining and Migrating (optional)
Adaptive connections (Inspect)

Inspect's default concurrency control: start at 20 in-flight requests per model, grow towards a ceiling (100) while the provider keeps up, and cut back (to a floor of 10) on rate-limit retries.

Introduced in 10B.12 Running Inspect Evals for Real: Models, Configuration, Concurrency, Caching, Errors and Eval Sets (optional)
Adaptive thinking

Anthropic's thinking mode in which Claude decides per request whether and how much to think, steered by the effort setting.

Introduced in 02.8 Reasoning Models
ADD / UPDATE / DELETE / NOOP

The four write decisions for a candidate memory

Introduced in 08B.4 Long-Term Memory and Memory Operations
add_messages

The reducer for conversation lists: appends, replaces same-id messages and deletes with RemoveMessage.

Introduced in 08F.10 LangGraph Fundamentals
add_note() / __notes__

Context strings attached to an exception (3.11+) and printed under the traceback, without wrapping it.

Introduced in 01A.8 Errors, Exceptions, Debugging and Logging
add_start_index

A splitter option that stores each chunk's character offset in metadata["start_index"].

Introduced in 08F.9 RAG with LangChain
additionalProperties: false

JSON Schema's "no extra keys" for an object, required by strict modes.

Introduced in 03.4 Structured Output
Address space

The private map from a process's memory addresses to physical RAM; two processes can use the same address and reach different memory.

Introduced in 01C.7 Shared Memory and Inter-Process Communication
Adjudication

A senior labeller's final call on disagreements, recorded in notes.

Introduced in 10A.2 Building Evaluation Datasets
Admin key / management key

A credential for organization-level usage, cost and limit APIs (OpenAI and Anthropic admin keys, OpenRouter management keys). It must never be used for model calls or sit in the application's environment.

Introduced in 03.7 Token Counting, Cost Tracking and Prompt Caching
Adopt / trial / assess / hold

The four tech-radar rings: in production use / hands-on now / worth a structured look / parked deliberately.

Introduced in 14A.9 Staying Current in a Fast-Moving Field
ADR (architecture decision record)

A short document capturing one significant decision — context, decision, status, consequences — kept in the repo and superseded rather than deleted.

Introduced in 13A.5 Architecture Patterns for AI Applications
Adversarial model

A model that may actively try to bypass controls, tamper with evidence or manipulate the evaluation, or one evaluated specifically for its ability to pursue hidden, prohibited or misaligned objectives under some threat model. *(Introduced in [lesson 10B.15](10b-eval-frameworks/15-inspect-sandboxes-limits-and-approval.md#terms-introduced-in-this-lesson))* *(Extended in [lesson 10B.16](10b-eval-frameworks/16-evaluating-agents-with-inspect-and-ecosystem.md#terms-introduced-in-this-lesson))*

Adversarial suffix

A short optimised string appended to a query to maximise the probability of a compliant response; transferable across models.

Introduced in 12.3 Jailbreaks and Model-Level Safety
AG-UI

An open event-based protocol for streaming an agent's output and state to a front end ([Part 5](08e-protocols-and-extensibility/04-a2a-agent-skills-and-tool-selection-at-scale.md#part-5-protocol-watchlist))

Introduced in 08E.4 A2A Basics, Agent Skills (SKILL.md) and Tool Selection at Scale
Agent (LLM agent)

A system where the model dynamically directs its own process and tool usage in a loop until a stop condition.

Introduced in 08A.9 Workflows vs Agents
Agent + Runner (ADK)

Google ADK's pair: the agent definition and the executor that drives run_async over sessions/events.

Introduced in 08F.1 Agent Frameworks and SDKs
Agent address

The pair (agent id, environment) built with ls.agent_address, sent as lrn:agents/<id>/environments/<environment>.

Introduced in 11A.5 LangSmith, Testing and Deployment
Agent anatomy

The seven parts of an agent: model, instructions, loop, state, tools, memory, guardrails

Introduced in 08A.1 Agent Definitions, the Autonomy Spectrum and Agent Anatomy
Agent as tool

agent.as_tool(...): another agent exposed as a single tool, so the caller keeps control

Introduced in 08F.2 OpenAI Agents SDK
Agent bridge

Inspect's mechanism for routing model requests from an external agent through Inspect models and logging.

Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)
Agent card

A2A's JSON discovery document describing an agent's endpoint, capabilities and skills, served at a well-known URI.

Introduced in 08D.3 Multi-Agent Systems
Agent Control Standard (ACS)

OWASP's emerging contract for runtime agent control: hooks + a Guardian returning allow/deny/modify/ask/defer dispositions (v0.1.4 preview, Sept 2026).

Introduced in 12.1 Threat Modelling LLM Applications
Agent factory

One function that builds every agent with the same safety defaults.

Introduced in 08F.15 Patterns, Pitfalls and Migration
Agent framework

A library that packages the agent loop and its surrounding infrastructure — state, tools, guardrails, tracing, human-in-the-loop, retries and durability — so you don't hand-roll them.

Introduced in 08F.1 Agent Frameworks and SDKs
agent handoff field

agent_handoffs, the implemented 4.3.5 agent-span field recording possible handoff targets

Introduced in 10B.5 DeepEval Tracing, Component-Level Evals and Agent Evaluation
Agent harness

Everything around a model that makes it an agent: the loop, tools, context handling, prompts and memory ("Agent = Model + Harness").

Introduced in 08F.4 The LangChain Ecosystem and Your Setup
Agent inventory

The single data file listing every agent with its owner, purpose, model, tools, data, autonomy, risk tier, approvals, evidence and review date

Introduced in 14A.6 Agent Inventory, Risk and Autonomy Classification, and Policy-as-Code
Agent limit

A limit attached to a sub-agent invocation, whose effect depends on whether the agent is a solver, tool, handoff or run() step.

Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)
Agent loop

The call-model → execute-tools → feed-results-back cycle that repeats until a stop condition.

Introduced in 08A.2 The Tool Loop: From One Round Trip to an Agent
Agent Loop Detection (DeepEval)

A deterministic trace metric combining weighted checks for repeated identical tool calls, stagnant reasoning and call-graph cycles.

Introduced in 10B.5 DeepEval Tracing, Component-Level Evals and Agent Evaluation
Agent manifest

A small versioned file pinning an agent's prompt, model snapshot, tool set and loop limits, hashed to a digest so the whole agent is promoted and rolled back as one unit

Introduced in 11C.2 CI/CD for Prompts, Models and Evals
Agent middleware

Code that runs at defined hooks of the agent loop and can read state, update it, short-circuit, retry or jump.

Introduced in 08F.8 Tools and create_agent
Agent pattern

A named recipe for the control flow around call_model: ordering, prompts, state and stop conditions.

Introduced in 08A.10 Agent Patterns: ReAct, Plan-and-Execute, Routing and Orchestrator-Workers
Agent Protocol

An open specification (Runs, Threads, Store) from LangChain, of which the Agent Server API is a superset, and the name of the wire formats for agent streaming events.

Introduced in 11A.5 LangSmith, Testing and Deployment
Agent run

One pass of the agent loop from task to final answer or stop; the unit for steps, tool errors and cost per task

Introduced in 11A.2 Metrics, Dashboards, SLOs and Alerting
Agent Skill

A folder with a SKILL.md and optional scripts, references and assets, loaded by an agent on demand

Introduced in 08E.4 A2A Basics, Agent Skills (SKILL.md) and Tool Selection at Scale
Agent Skills

Anthropic's instruction+script bundles (pre-built pptx/xlsx/docx/pdf or custom via the Skills API) mounted through container.skills, requiring code execution; not ZDR-eligible.

Introduced in 08A.8 Provider Built-in and Server-Side Tools
Agent span

A transcript span that attributes nested model and tool events to one agent execution.

Introduced in 10B.14 Tools and Agents in Inspect: Custom Tools, MCP, react() and Multi-Agent Systems (optional)
Agent state

What a running agent holds inside one run (scratchpad, plan, budget); disposable

Introduced in 08B.1 Kinds of State and Session Management
Agent-as-a-tool

A whole agent registered as a tool in another agent's tool list

Introduced in 08A.11 Reflection, Parallel Fan-Out and Agent-as-a-Tool
Agent-based workspace

A LangSmith Cloud model in which traces belong to an agent id and one of four environments instead of a project.

Introduced in 11A.5 LangSmith, Testing and Deployment
Agent-loop framework

A framework that runs the model→tools→repeat cycle for you behind a single run call (e.g. OpenAI Agents SDK, Pydantic AI, Google ADK agent mode).

Introduced in 08F.1 Agent Frameworks and SDKs
Agent-to-agent injection

Indirect injection delivered through messages between agents in a multi-agent system, where a compromised or low-trust agent instructs a privileged one.

Introduced in 12.2 Prompt Injection: Direct and Indirect
Agent/human boundary

Visible transition between AI acting and human acting.

Introduced in 13A.3 AI UX II: Trust, Transparency, Feedback and Human-in-the-Loop
`agent_handoffs`

The implemented DeepEval 4.3.5 agent-span field for possible handoff targets; the documentation's older handoff_agents spelling is silently ignored.

Introduced in 10B.5 DeepEval Tracing, Component-Level Evals and Agent Evaluation
`AgentAttempts`

Configuration for scoring submissions inside a run and allowing incorrect attempts to continue.

Introduced in 10B.14 Tools and Agents in Inspect: Custom Tools, MCP, react() and Multi-Agent Systems (optional)
`AgentDefinition`

The definition of a programmatic subagent: description, prompt, tools, model, limits

Introduced in 08F.3 Claude Agent SDK
AgentFn

The injectable seam (task, world) -> Trajectory — any agent, scripted or live, plugs in.

Introduced in 10A.7 Evaluating Agents, Tool Use and Multimodal Systems
Agentic AI

Software that pursues goals by deciding on and taking actions; a system design built on generative models

Introduced in 08A.1 Agent Definitions, the Autonomy Spectrum and Agent Anatomy
Agentic AI Foundation (AAIF)

Linux Foundation-directed foundation hosting A2A, MCP, goose and AGENTS.md.

Introduced in 08D.3 Multi-Agent Systems
Agentic clause

A standing instruction aimed at tool-using runs: persistence, scope limits, confirmation before risky actions, verification before "done", progress updates.

Introduced in 04.5 System Prompts, Roles and Personas
Agentic commerce protocols (AP2, ACP, UCP)

Open protocols for agents to pay or check out with merchants ([Part 5](08e-protocols-and-extensibility/04-a2a-agent-skills-and-tool-selection-at-scale.md#part-5-protocol-watchlist))

Introduced in 08E.4 A2A Basics, Agent Skills (SKILL.md) and Tool Selection at Scale
Agentic processing

Gemini's opt-in video mode where the model navigates the timeline and loads transcript/frames/audio on demand, using up to ~88% fewer tokens on long-form content.

Introduced in 09.8 Video Understanding
Agentic RAG

RAG where the model controls retrieval through tools and iterates; previewed here, owned by 07.8/Module 08A.

Introduced in 07.1 RAG Architecture: From Question to Grounded Answer
Agentic retrieval (managed)

A platform feature where an LLM plans sub-queries, runs them in parallel and merges the reranked results (Bedrock managed KB, Databricks ai_search()); billed per token or per agentic call, not per plain query.

Introduced in 07.7 Managed RAG: Provider Tools, Platforms and Frameworks
Agentic system

Any system where LLMs perform judgement work — the umbrella covering both workflows and agents.

Introduced in 08A.9 Workflows vs Agents
`AgenticRedTeamer`

Experimental goal-driven red teaming: a task, a scenario and plain-language criteria; its score is the fraction of criteria breached

Introduced in 10B.7 DeepEval in Production: Red Teaming, CI/CD, Prompt Optimization and Confident AI
Agents Rule of Two

Meta's design constraint (Oct 2025): an agent session may hold at most two of {untrusted input, sensitive access, state change/external communication}; all three requires human supervision.

Introduced in 12.1 Threat Modelling LLM Applications
Agents-as-tools

A whole agent registered as a single tool call inside another agent's registry (Agent.as_tool() in the OpenAI Agents SDK).

Introduced in 08D.3 Multi-Agent Systems
AGENTS.md

Open, vendor-neutral Markdown file giving coding agents project instructions.

Introduced in 08A.15 Coding and Computer-Use Agents
AgentSpan / MASTrace

Evalkit's records for multi-agent traces: one unit of work or communication owned by one agent, and one run of the system as a tree of such spans with its final answer and outcome.

Introduced in 10A.12 Evaluating Multi-Agent Systems and Validating User Simulators
AgentState

The TypedDict base for agent state: messages (append-only), jump_to and structured_response.

Introduced in 08F.8 Tools and create_agent
`AgentState` (Inspect)

The narrow state of an Inspect agent: messages plus output.

Introduced in 10B.14 Tools and Agents in Inspect: Custom Tools, MCP, react() and Multi-Agent Systems (optional)
`AgentSubmit(answer_only=True)`

Submit configuration that makes the final completion exactly the submitted answer.

Introduced in 10B.14 Tools and Agents in Inspect: Custom Tools, MCP, react() and Multi-Agent Systems (optional)
Aggregate

Combining branch results into one result

Introduced in 08A.11 Reflection, Parallel Fan-Out and Agent-as-a-Tool
Aggregate function

COUNT/SUM/AVG/MIN/MAX collapsing rows to one value.

Introduced in 00.7 SQL Basics with SQLite
Aging

Raising an item's effective priority the longer it waits so that low-priority work is eventually served.

Introduced in 01C.4 Deadlocks, Livelock and Starvation
AI Agent node (n8n)

A node that connects a chat model and tool sub-nodes so the model chooses which tools to call

Introduced in 08F.16 Low-Code Agent Platforms: n8n and Dify (awareness)
AI coding assistant

A tool (Copilot, Cursor, Claude, ChatGPT) that generates or explains code; verify before trusting.

Introduced in 00.9 Working Like an Engineer: Debugging, Asking for Help and Learning Habits
AI disclosure

Informing users that they are interacting with an AI system; required of the *provider* of a chatbot system by EU AI Act Article 50(1) from August 2026 unless obvious — deployers of a vendor's chatbot inherit the duty only contractually.

Introduced in 12.9 Responsible AI, Policy and Compliance
AI engineer

A software engineer who builds products whose behaviour depends on foundation models — the applied, not the research, side of AI.

Introduced in 14B.1 The AI Engineering Landscape: Roles, Teams and Career Paths
AI Incident Database (AIID)

An independent public database of real-world AI harms and near-harms, launched November 2020 and stewarded by the Responsible AI Collaborative since 2022.

Introduced in 12.9 Responsible AI, Policy and Compliance
AI management system (AIMS)

The organisational system of policies, roles and controls for responsible AI development and use, specified by ISO/IEC 42001:2023.

Introduced in 12.9 Responsible AI, Policy and Compliance
AI Search index (Databricks)

Databricks' index over Delta tables with HNSW ANN, hybrid search and reranking.

Introduced in 07.7 Managed RAG: Provider Tools, Platforms and Frameworks
AI system impact assessment

A structured analysis of who an AI system affects and how, with mitigations; ISO/IEC 42005:2025 formalises the concept.

Introduced in 12.9 Responsible AI, Policy and Compliance
AI watermarking (SynthID)

An imperceptible signal embedded in generated media so it can later be identified as AI-made; probabilistic evidence, not proof.

Introduced in 02.9 Model Landscape
AI-as-feature vs AI-as-product

Whether the AI assists a workflow that works without it, or *is* the product's value proposition.

Introduced in 13A.1 Product Thinking for AI Features: What to Build and When Not to Use AI
AI-assisted drafting

Using an LLM to draft, outline or polish content — legitimate with verification and disclosure, fabrication without.

Introduced in 14B.4 Writing and Learning in Public
AI-assisted work

Using AI tools professionally / documenting which parts of work were AI-generated versus human-verified. *(Named "AI-use disclosure" in the lesson to avoid colliding with the existing glossary entry "AI disclosure" — the EU AI Act user-notification sense from 12.9.)*.

Introduced in 14B.8 Interview Prep III: Take-Homes, Behavioural Rounds and Offers
AI-content label

Marking generated content as AI-produced when it leaves the UI.

Introduced in 13A.3 AI UX II: Trust, Transparency, Feedback and Human-in-the-Loop
AI-use disclosure

Documenting which parts of work were AI-assisted and which were human-verified.

Introduced in 14B.8 Interview Prep III: Take-Homes, Behavioural Rounds and Offers
AIMD

Additive increase, multiplicative decrease: raise a concurrency limit slowly while things work and cut it sharply on a 429.

Introduced in 03.9 Async, Concurrency and Batch Processing
AIMessage / HumanMessage / SystemMessage / ToolMessage

LangChain's message classes for assistant, user, system and tool-result turns.

Introduced in 08F.5 Chat Models, Messages and Content Blocks
AIMessageChunk

A streamed fragment of an AIMessage; chunks combine with + and the last has chunk_position == "last".

Introduced in 08F.5 Chat Models, Messages and Content Blocks
aiohttp backend

An optional HTTP transport for the async SDK clients, instead of httpx / httpx2.

Introduced in 03.9 Async, Concurrency and Batch Processing
ALCE

Princeton benchmark (EMNLP 2023) for automatic evaluation of LLM citations; source of the citation precision/recall framing.

Introduced in 07.5 Citations and Attribution
Alert ([!NOTE] etc.)

A GitHub alert: a blockquote whose first line is [!NOTE], [!TIP], [!IMPORTANT], [!WARNING] or [!CAUTION], rendered as a coloured callout.

Introduced in 00.4 GitHub and Collaboration
Alert rule

A Prometheus/Grafana rule that fires a notification when a condition holds.

Introduced in 11A.2 Metrics, Dashboards, SLOs and Alerting
Alias

A second name for the same object (b = a). *(Introduced in [lesson 01A.4](01a-python-essentials/04-core-data-structures.md#13-aliasing-shallow-copies-and-deep-copies))* In a provider-agnostic client, an alias such as fast or smart is your own name, which a capability registry maps to an ordered chain of provider models. See also [Model alias (Ollama)](#model-alias-ollama). *(Extended in [lesson 03.11](03-llm-apis/11-provider-agnostic-client.md#71-aliases-entries-and-a-yaml-file))*

Alias repoint

The instant, reversible cutover that makes blue/green safe.

Introduced in 05.9 Ingestion Pipelines and Incremental Updates
Aliasing

Two names pointing at the same object, so mutating through one is visible through the other.

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
Alignment and coverage (summarization)

The two halves of DeepEval's Summarization metric: alignment is the share of summary claims supported by the source, coverage the share of source questions the summary can answer; the score is the lower of the two.

Introduced in 10B.4 DeepEval's Built-in Metrics, Opened Up: RAG, Safety, Conversations and More
Alignment faking

A model strategically complying during training to preserve its preferred behaviour (Anthropic/Redwood research, 2024).

Introduced in 12.3 Jailbreaks and Model-Level Safety
All-but-the-top

Post-processing that removes the corpus mean and projects out the top dominating principal directions — a stronger cousin of mean-centring (Mu & Viswanath, ICLR 2018).

Introduced in 06.3 Similarity Metrics and Nearest-Neighbour Search
All-or-nothing reserve

A reservation that holds on every level or on none

Introduced in 11B.6 Budgets, Quotas, Cost Attribution and Chargeback
Allow-list

A fixed list of approved items (such as packages or URLs), with everything else blocked by default. *(Introduced in [lesson 02.10](02-how-llms-work/10-limitations-and-failure-modes.md#27-try-it-grounding-abstention-and-verification))* In logs and traces, show only the fields on the list, so that a new or unknown field or credential is hidden by default (see [Fail closed](#fail-closed)). *(Extended in [lesson 03.10](03-llm-apis/10-debugging-and-testing.md#23-http-event-hooks-the-wire-as-data-with-secrets-redacted))*

allowed_callers

Per-tool field restricting who may invoke it — "direct", "programmatic" or "code_execution_20260120" — the approval boundary for programmatic calling.

Introduced in 08A.8 Provider Built-in and Server-Side Tools
`allowed_tools`

Tools whose calls are pre-approved (not a restriction on what exists)

Introduced in 08F.3 Claude Agent SDK
Alt text

Text description of an image for screen readers.

Introduced in 09.1 Vision Applications: Understanding Images
Always-on injection vs on-demand retrieval

Injecting the small always-relevant profile every call versus letting the agent call memory_search when it needs the archive — the production pattern uses both, tiered.

Introduced in 08B.2 Memory for Agents: Short-Term and Long-Term
Always-valid inference

Sequential-analysis methods (mSPRT) robust to continuous monitoring.

Introduced in 10A.9 Offline vs Online Evaluation
Amdahl's law

The speed-up from adding workers is capped by the fraction of the job that must stay serial.

Introduced in 01C.1 Concurrency, Parallelism and Context Switching
Amortised O(1)

Occasionally costly operation averaging to constant time (list append).

Introduced in 01A.4 Core Data Structures: Lists, Tuples, Dictionaries and Sets
Analogical prompting

Self-generating structurally similar exemplars from a different domain, then solving by analogy (Yasunaga et al., ICLR 2024).

Introduced in 04.3 Reasoning Prompts: Chain-of-Thought and Friends
Analyser (analysis chain)

The index-time pipeline (char filters → tokenizer → token filters) that canonicalizes text for search.

Introduced in 06.7 Keyword Search and BM25
Anchor (head hash)

A copy of the latest chain hash stored where the writer cannot change it

Introduced in 11A.3 Latency Percentiles, Error Classification, Audit Logs, Session Replay, Dashboards and SLOs
Anchored rubric

Per-example criteria with pass/fail definitions and examples, for judge-graded cases.

Introduced in 10A.2 Building Evaluation Datasets
Anchoring bias

Reviewers adopting machine-suggested labels, corrupting the human reference.

Introduced in 10A.5 Calibrating and Validating Judges
Anisotropic quantization

Quantization that penalises error along the query direction more, preserving top-result accuracy (ScaNN).

Introduced in 06.4 Vector Indexes: HNSW, IVF, Quantization and Trade-offs
Anisotropy

When a model's vectors crowd into a narrow range of directions, so all similarity scores are high.

Introduced in 02.3 Embeddings
ANN index

Data structure returning approximately-nearest vectors without scanning all of them.

Introduced in 06.4 Vector Indexes: HNSW, IVF, Quantization and Trade-offs
ann-benchmarks / VIBE

Public ANN benchmark suites (the former is no longer maintained, the latter is current).

Introduced in 06.4 Vector Indexes: HNSW, IVF, Quantization and Trade-offs
Annealing

Lowering the learning rate towards zero at the end of training, usually while training on the highest-quality data, which gives an outsized boost.

Introduced in 02.6 How LLMs Are Trained
Annotated style

Declaring FastAPI metadata (Query, Header, Depends…) inside Annotated[T, ...] — the current recommended form.

Introduced in 01B.7 FastAPI Basics: Building a Small API
Annotated validators

AfterValidator/BeforeValidator/PlainValidator/WrapValidator — reusable rules attached to a type.

Introduced in 01B.6 Data Validation with Pydantic
Annotated[T, ...]

A type plus arbitrary metadata for tools (Pydantic, FastAPI) to consume.

Introduced in 01A.10 Type Hints and Writing Readable Code
Annotation

A marker on a dashboard chart showing when something changed (deploy, prompt, model).

Introduced in 11A.2 Metrics, Dashboards, SLOs and Alerting
Anomaly detection

Alerting on deviations from a learned normal range of a metric.

Introduced in 10A.9 Offline vs Online Evaluation
Anonymizer

A function given to Client(anonymizer=...) that rewrites matching strings in run inputs and outputs before upload.

Introduced in 11A.5 LangSmith, Testing and Deployment
Answer correctness

Whether an answer is factually right, measured by exact match, an expected-facts checklist, or a judge comparing against a reference answer.

Introduced in 07.9 Evaluating RAG
Answer relevance / relevancy

Whether a response addresses the question asked; Ragas's AnswerRelevancy generates questions from the answer and averages embedding cosine similarity with the real question.

Introduced in 07.9 Evaluating RAG
Answer status

The answered/partial/abstained/needs_clarification field that makes abstention machine-readable.

Introduced in 07.4 Grounded Generation: Prompts, Context Assembly and Abstention
Answer-bearing chunk

The chunk(s) containing the text that answers a question.

Introduced in 05.6 Chunking Strategies
Answer-first prompting

Requesting the final answer before the reasoning (post-thinking); risks rationalization and degraded reasoning.

Introduced in 04.3 Reasoning Prompts: Chain-of-Thought and Friends
Answerability check

Verifying a generated question can actually be answered from its cited chunk(s).

Introduced in 10A.2 Building Evaluation Datasets
AnswerPattern

The three regular expressions Inspect's answer() scorer uses (letter, word, line), each reading what follows the last ANSWER: in a reply.

Introduced in 10B.10 Inspect Scorers, Metrics, Epochs and the Statistics Inspect Reports (optional)
Anthropomorphism

Attributing human-like minds, feelings or intentions to non-human agents.

Introduced in 13A.3 AI UX II: Trust, Transparency, Feedback and Human-in-the-Loop
Anti-join

Finding rows with no match (NOT EXISTS, LEFT JOIN ... IS NULL).

Introduced in 00.7 SQL Basics with SQLite
Any

The unchecked escape hatch — disables checking in both directions.

Introduced in 01A.10 Type Hints and Writing Readable Code
anyio_backend

Anyio plugin fixture naming which async backend runs the test.

Introduced in 01B.8 Testing with pytest
anyOf

JSON Schema's "one of these shapes", used for unions and for nullable fields.

Introduced in 03.4 Structured Output
API contract

The agreed request/response shape including failure behaviour; versioned and tested through.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
API family

A distinct request/response format under one provider (Responses vs Chat Completions; generateContent vs Interactions).

Introduced in 00.8 Reading API Documentation
API key

Long secret identifying/billing your account; bearer credential sent in a header.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
API reference

The exhaustive per-endpoint section of API docs listing every parameter, request/response shape and error.

Introduced in 00.8 Reading API Documentation
API service / backend-for-frontend

The server-side program that holds secrets, authenticates callers, applies product rules and proxies expensive work (LLM calls) for clients.

Introduced in 01B.7 FastAPI Basics: Building a Small API
API version

The version of an HTTP API's contract, such as anthropic-version: 2026-10-21 or Gemini's v1beta.

Introduced in 03.1 The Provider APIs and Your First Calls
APIKeyHeader / Security

FastAPI security helpers that extract an API key header and mark the OpenAPI security scheme.

Introduced in 01B.7 FastAPI Basics: Building a Small API
APIRouter

A route group with shared prefix/tags/dependencies, mounted via app.include_router.

Introduced in 01B.7 FastAPI Basics: Building a Small API
App factory

create_app() pattern: build the app in a function so tests can inject fakes and config.

Introduced in 11C.1 Deploying LLM Services
app.state

Starlette's per-app attribute bag for objects built once (clients, pools, flags).

Introduced in 01B.7 FastAPI Basics: Building a Small API
Append-only history

Never editing past messages, preserving prompt-cache hits and Claude's thinking-block binding.

Introduced in 04.7 Context Engineering: Managing Context Over Time
Applicant tracking system (ATS)

Software that ingests, parses, stores and routes job applications; also the name people use for the whole screening pipeline.

Introduced in 14B.5 Résumé, LinkedIn and the Job Search
Application inference profile (Bedrock)

A tagged profile through which you invoke a model so usage and cost are tracked per application

Introduced in 11B.6 Budgets, Quotas, Cost Attribution and Chargeback
Application memory

See [Memory (application memory)](#memory-application-memory).

Application vs library

The packaging fork: deploy-versioned, pinned-deps applications vs semver'd, permissive-deps libraries — it changes how dependencies are written.

Introduced in 01B.10 Logging, Debugging and Packaging: Putting the Toolkit Together
Application-level model alias

A role name such as fast or smart that your code uses instead of a provider model ID, resolved through the registry.

Introduced in 03.11 Building a Provider-Agnostic Client
Applied AI engineer

The AI engineer working on a company's own products or platform, as distinct from customer-embedded or research roles.

Introduced in 14B.1 The AI Engineering Landscape: Roles, Teams and Career Paths
apply_patch

OpenAI's Responses API tool for structured file create/update/delete diffs.

Introduced in 08A.15 Coding and Computer-Use Agents
Approval / approval grant

A human decision attached to one specific proposed tool call (tool + resolved args), optionally scoped and expiring, that fails closed on timeout.

Introduced in 08A.14 Reliable, Safe and Observable Agents
Approval bound to arguments

A human or policy approval that applies to one exact tool call (tool, recipient, amount), not to the tool in general

Introduced in 12.1 Threat Modelling LLM Applications
Approval catch-all

The final policy that decides calls not matched by more specific policies; without one, unmatched calls are rejected.

Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)
Approval fatigue

Reviewers approving without reading because they see too many requests

Introduced in 08A.12 Human-in-the-Loop and Approval Gates as a Pattern
Approval gate

State machine requiring human decision before consequential actions run.

Introduced in 13A.3 AI UX II: Trust, Transparency, Feedback and Human-in-the-Loop
Approval policy

The pairing of an approver with a tool/argument matcher, deciding whether a proposed tool call may run.

Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)
Approval request / Decision

What a checkpoint shows the human and what they return: approve / edit / reject.

Introduced in 08A.9 Workflows vs Agents
Approval token

A signed, expiring, single-use proof that a human approved one exact tool call, bound to the arguments by hash — cannot be replayed or stretched into "approve all".

Introduced in 12.6 Securing Tools, Agents and MCP
`ApprovalEvent`

The transcript event recording which approver saw which call and what it decided.

Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)
Approve / edit / deny / defer

The four reviewer decisions: run as is, run with changes, refuse, or pass without deciding

Introduced in 08A.12 Human-in-the-Loop and Approval Gates as a Pattern
Approved list (allowlist)

The explicit set of providers, models and regions that may be used

Introduced in 14A.1 Approved Providers, Models and Regions
Approver

The async callback deciding approve/deny/defer for risky tool calls.

Introduced in 08A.2 The Tool Loop: From One Round Trip to an Agent
Approver unit test

A test that calls an approver directly with synthetic ToolCalls and checks each decision against the written policy, with no eval or model.

Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)
Approximate nearest-neighbour (ANN) index

A data structure that finds nearly the closest vectors without comparing against every one.

Introduced in 02.3 Embeddings
archive member / ! provenance

A file inside a .zip/.tar/.gz; outer.zip!inner/path records where it really lived.

Introduced in 05.3 Parsing HTML, Web Pages and Office Files
Archived repository

A read-only GitHub repository: no fixes, patches or merged pull requests.

Introduced in 08F.15 Patterns, Pitfalls and Migration
Arena / pool / block

Pymalloc's units: a 1 MiB region from the operating system, divided into 16 KiB pools (on the lesson's build), each serving one block size from 16 to 512 bytes.

Introduced in 01C.6 Python Memory Management
ArenaGEval

DeepEval's pairwise judge: it masks contestant names, shuffles their order, asks the judge for a winner and returns the winner's name; compare() turns many such judgements into win counts.

Introduced in 10B.3 Judges in DeepEval: Models, G-Eval, DAG and Custom Metrics
argparse

Stdlib CLI argument parser: positionals, flags, choices, --help.

Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Library
argparse subparsers

argparse's nested-subcommand mechanism (add_subparsers + set_defaults(func=...)) behind prog <subcommand> <args>.

Introduced in 01B.10 Logging, Debugging and Packaging: Putting the Toolkit Together
argpartition

NumPy's partial-selection function: returns the top-k positions without sorting all elements.

Introduced in 01B.11 NumPy and pandas Essentials for AI Work
*args / kwargs

Collect extra positional / keyword args.

Introduced in 01A.3 Control Flow and Functions
args_schema

A Pydantic model or JSON Schema that defines (and validates) a tool's arguments, independent of the Python signature.

Introduced in 08F.8 Tools and create_agent
Argument unpacking

Using */** at a call site to spread a sequence or dict into positional/keyword arguments (f(*seq), f(**d)).

Introduced in 01A.3 Control Flow and Functions
Arrange–act–assert (AAA)

The three-part test structure: set up, exercise, verify.

Introduced in 01B.8 Testing with pytest
array.array

Compact typed numeric storage, one C type per array.

Introduced in 01A.4 Core Data Structures: Lists, Tuples, Dictionaries and Sets
ART

Automatic Reasoning and Tool-use: a frozen LLM with task and tool libraries that pauses at tool calls (Paranjape et al.).

Introduced in 04.11 Named Prompting Techniques: A Field Guide
Artefact

A durable output stored externally (file, object, A2A Artifact); messages carry references, not payloads.

Introduced in 08D.3 Multi-Agent Systems
artifact (on ToolMessage)

Data attached to a tool result for downstream code and not sent to the model.

Introduced in 08F.5 Chat Models, Messages and Content Blocks
Artifact trail

The record of which files and objects an agent has created or changed; the kind of state compaction summaries most often lose.

Introduced in 10A.11 Evaluating Agent Memory and Context Management
as-of query

A query resolved against the document version live on a given date.

Introduced in 07.2 Retrieval Strategies for RAG
As-of question

A probe whose answer depends on a past state ("before I moved")

Introduced in 10A.11 Evaluating Agent Memory and Context Management
as_completed / wait

Completion-order iterator / (done, pending) sets with FIRST_COMPLETED.

Introduced in 01B.3 Async Python: async/await and the Event Loop
as_node

The update_state argument naming which node the update stands in for, which decides what runs next.

Introduced in 08F.11 Persistence, Durable Execution and Memory
`as_solver()`

Adapter that uses an agent as a solver, copies back state and can curry parameters or limits.

Introduced in 10B.14 Tools and Agents in Inspect: Custom Tools, MCP, react() and Multi-Agent Systems (optional)
`as_tool()`

Delegation mechanism that wraps an agent as an isolated string-in, string-out tool.

Introduced in 10B.14 Tools and Agents in Inspect: Custom Tools, MCP, react() and Multi-Agent Systems (optional)
asdict / astuple / replace / fields

Dataclass helpers for dict/tuple conversion, copying-with-changes, introspection.

Introduced in 01A.6 Classes, Dataclasses and Enums
ASGI

Asynchronous Server Gateway Interface — the async request/response protocol between an ASGI server and Python apps; supports streaming and WebSockets.

Introduced in 01B.7 FastAPI Basics: Building a Small API
ASGITransport

httpx transport calling an ASGI app directly, for async tests.

Introduced in 01B.8 Testing with pytest
Assembled context

The <context>...</context> block actually sent to the model, with kept/truncated/dropped passages recorded for traces.

Introduced in 07.4 Grounded Generation: Prompts, Context Assembly and Abstention
assert

Invariant check; stripped by python -O.

Introduced in 01A.3 Control Flow and Functions
assert_never

"Unreachable" marker — raises AssertionError, satisfies Never.

Introduced in 01A.10 Type Hints and Writing Readable Code
assert_test()

DeepEval's pytest assertion: scores one test case with its metrics and raises AssertionError listing every failing metric.

Introduced in 10B.2 DeepEval Fundamentals: Test Cases, Metrics and the Test Runner
assert_type

Checker probes: assert_type verifies inferred type equals T; assert_never marks unreachable branches (raises AssertionError).

Introduced in 01A.10 Type Hints and Writing Readable Code
Assertion monitor

A deterministic online check (format, citations, refusal rate) run on traffic.

Introduced in 10A.9 Offline vs Online Evaluation
Assertion rewriting

Pytest's compile-time transform that makes assert failures show every sub-expression's value.

Introduced in 01B.8 Testing with pytest
Assessment questions

The closed yes/no questions DeepEval's Summarization metric uses to measure coverage; generated from the source unless you pass your own, which makes the check stable and reviewable.

Introduced in 10B.4 DeepEval's Built-in Metrics, Opened Up: RAG, Safety, Conversations and More
Asset

Anything whose compromise hurts you: data, secrets, capabilities, spend, reputation, availability.

Introduced in 12.1 Threat Modelling LLM Applications
Assist

Autonomy level 2: the agent runs read tools and drafts; a human applies writes

Introduced in 08A.1 Agent Definitions, the Autonomy Spectrum and Agent Anatomy
Assistant

A versioned configuration of a deployed graph (prompts, model, tools); each graph gets a default assistant; Agent Server only.

Introduced in 11A.5 LangSmith, Testing and Deployment
Assistant prefill

Writing the first part of the model's reply yourself, so it continues from your text. Many current models reject it (not to be confused with the *prefill phase* of generation). *(Introduced in [lesson 02.2](02-how-llms-work/02-tokens-and-tokenization.md#123-prompt-boundaries-trailing-spaces-and-token-healing))* Current Claude and Gemini models reject it; lesson 03.2 shows the error and the alternatives. *(Extended in [lesson 03.2](03-llm-apis/02-messages-and-conversations.md#42-assistant-prefill-is-gone))*

Assume-breach design

The design posture that injection cannot be prevented, so capabilities — least privilege, channel removal, approvals — are engineered so a successful injection buys the attacker nothing.

Introduced in 12.2 Prompt Injection: Direct and Indirect
Assumption mapping

Listing what a roadmap item depends on and testing the cheapest-to-falsify assumption first.

Introduced in 13A.6 Product Metrics, Experiments and Unit Economics
Assumptions list

What you're assuming rather than knowing, each with how to check it.

Introduced in 13B.1 Capstone Planning and Scoping
astream_events

An async event stream (version="v2") reporting start, stream and end events for a model or a whole chain.

Introduced in 08F.5 Chat Models, Messages and Content Blocks
Asymmetric embedding

Embedding queries and documents differently (via input_type, task_type or prefixes).

Introduced in 02.3 Embeddings
Asymmetric error cost

When a wrong answer in one direction costs far more than in the other (wrong refund vs wrong tone).

Introduced in 13A.1 Product Thinking for AI Features: What to Build and When Not to Use AI
Async client

The async twin of an SDK client (AsyncOpenAI, AsyncAnthropic, genai.Client().aio) whose methods you await, so many requests can wait on the network at once.

Introduced in 03.9 Async, Concurrency and Batch Processing
Async communication

Written, threaded communication that respects focus time and creates a record.

Introduced in 00.9 Working Like an Engineer: Debugging, Asking for Help and Learning Habits
async for / async with / __aiter__/__anext__/__aenter__/__aexit__

The async versions of iteration and context management.

Introduced in 01B.3 Async Python: async/await and the Event Loop
Async generator

async def with yield; consumed by async for; aclose() cleans up early exit.

Introduced in 01B.3 Async Python: async/await and the Event Loop
Async iterator

The __aiter__/__anext__ counterpart used by async for (preview; Module 01B).

Introduced in 01A.5 Comprehensions, Iterators and Generators
Async job

A unit of work submitted for later execution, tracked by a job ID with status polling or webhooks, used when an operation outlives a request.

Introduced in 13A.5 Architecture Patterns for AI Applications
Asynchronous

A call that gives control back while it waits and is resumed later by a scheduler.

Introduced in 01C.2 Synchronous vs Asynchronous Programming and the asyncio Event Loop
asyncio.Event/Lock/Semaphore/Queue

Task coordination primitives: signal, mutual exclusion, bounded slots, producer-consumer.

Introduced in 01B.3 Async Python: async/await and the Event Loop
asyncio.gather

Fan out awaitables concurrently; results in input order; return_exceptions collects failures.

Introduced in 01B.3 Async Python: async/await and the Event Loop
asyncio.Lock / Condition / Event

Async mutual exclusion / wait-for-predicate / one-bit signal.

Introduced in 01B.4 Concurrency Patterns for I/O-Heavy Work
asyncio.run

Create a loop, run a coroutine to completion, close the loop — once per program.

Introduced in 01B.3 Async Python: async/await and the Event Loop
asyncio.Runner

Reusable context manager for running async code from sync code.

Introduced in 01B.3 Async Python: async/await and the Event Loop
asyncio.shield

Protect an inner awaitable from the outer cancellation.

Introduced in 01B.3 Async Python: async/await and the Event Loop
asyncio.timeout / wait_for

Deadline context manager / single-awaitable timeout; both raise TimeoutError.

Introduced in 01B.3 Async Python: async/await and the Event Loop
asyncio.to_thread / run_in_executor

Run a blocking function on a worker thread / the lower-level executor API.

Introduced in 01B.3 Async Python: async/await and the Event Loop
asyncio_mode

pytest-asyncio config: "strict" (default) or "auto".

Introduced in 01B.8 Testing with pytest
At-least-once + idempotent consumer

The correct pairing for streamed/event-driven ingestion.

Introduced in 05.9 Ingestion Pipelines and Incremental Updates
At-least-once delivery

Queue semantics where a message may be delivered more than once; consumers must be idempotent.

Introduced in 13A.5 Architecture Patterns for AI Applications
At-least-once execution

The guarantee that a step is attempted until it succeeds, possibly more than once.

Introduced in 08F.11 Persistence, Durable Execution and Memory
At-most-once / at-least-once / exactly-once

The three message-delivery promises; "exactly-once" is impossible over an unreliable channel — systems build "effectively-once" via idempotency instead.

Introduced in 01B.9 Retries, Timeouts, Backoff and Resilience
Atomic commit

One logical change per commit / the type(scope): subject machine-readable message convention.

Introduced in 00.3 Git Fundamentals
Atomic operation

An operation other threads can observe only before or after, never halfway.

Introduced in 01C.3 Race Conditions and Thread Safety
Atomic write

Write to a temp file then os.replace() onto the target, so readers see old-or-new, never a half-written file.

Introduced in 01A.9 Files, Paths, JSON and CSV
Atomic write-then-flip

Per-document transaction ordering so observers never see half-updated state.

Introduced in 05.9 Ingestion Pipelines and Incremental Updates
Attachment (Inspect log)

Large or repeated content (prompts, images, tool output) stored once per sample and referenced as attachment://<hash>; resolve with resolve_sample_attachments().

Introduced in 10B.13 Inspect Logs, Analysis and Extending Inspect (optional)
Attack (red teaming)

A transformation that makes a baseline request harder to refuse: single-turn (27 in 4.3.6, 11 of them plain string transforms) or multi-turn (5, which hold a conversation and stop on a detected behavioural shift)

Introduced in 10B.7 DeepEval in Production: Red Teaming, CI/CD, Prompt Optimization and Confident AI
Attack library / dataset

Public collections of attack prompts/behaviours (HarmBench, JBB, AdvBench, garak probes).

Introduced in 12.8 Red Teaming and Security Testing
Attack success rate (ASR)

Fraction of adversarial scenarios where the attacker's goal succeeded — tracked alongside utility.

Introduced in 10A.7 Evaluating Agents, Tool Use and Multimodal Systems
Attack tree

AND/OR decomposition of an attacker's goal into sub-goals; leaves map to test cases.

Introduced in 12.1 Threat Modelling LLM Applications
Attacker-LLM attack

Using one LLM to generate attacks on another — PAIR, TAP, Crescendo-style — as a source of candidate test cases.

Introduced in 12.8 Red Teaming and Security Testing
Attention / self-attention

A mechanism where each token takes a weighted blend of information from other tokens in the same sequence.

Introduced in 02.4 Attention and Transformers
Attention head / multi-head attention

One independent attention computation; several run side by side and are combined.

Introduced in 02.4 Attention and Transformers
Attention score / attention weight

The query–key dot product for a pair of tokens; the softmax of a row of scores.

Introduced in 02.4 Attention and Transformers
Attention sink

A position (usually the first token) where heads park attention when they have nothing to do.

Introduced in 02.4 Attention and Transformers
Attribute

A fact attached to a span, such as model name or token count

Introduced in 03.12 Minimal Tracing: See What Your First LLM App Did
Attribute cardinality

The number of distinct values an attribute takes; unbounded values (IDs, query text) break backend indexing and billing — keep attribute values to bounded sets.

Introduced in 11A.1 Tracing and Observability for LLM Applications
Attribute sampling

Sampling coverage attributes (topic × persona × length) in code before prompting.

Introduced in 10A.2 Building Evaluation Datasets
Attribution

Tagging each recorded cost with what it was for: the feature, a hashed customer ID and the environment. It lets you answer "who spent this?".

Introduced in 03.7 Token Counting, Cost Tracking and Prompt Caching
Attribution matrix

A rule that assigns each failed memory probe to a write miss, retrieval miss, noise or conflict, use failure or broken probe by comparing the system, oracle-memory and no-memory conditions.

Introduced in 10A.11 Evaluating Agent Memory and Context Management
Attribution table

A per-case classification of eval failures by pipeline stage (corpus miss, retrieval miss, assembly loss, generation, citation, abstention, label/judge noise) computed from set differences between gold, retrieved and in-context chunk ids.

Introduced in 10A.6 Evaluating RAG Pipelines in Depth
Audience (`aud`) binding

A token is valid only at the server it was issued for. The server must check

Introduced in 08E.3 Remote MCP: OAuth, Gateways and Many Servers
Audio description (AD)

Narrated visual description of a video for blind and low-vision audiences; produced by describing scenes then synthesising narration.

Introduced in 09.8 Video Understanding
Audio-event trace

JSONL timeline of speech/barge-in/DTMF events the simulator replays.

Introduced in 13B.5 Capstone Build C: The Realtime Voice Agent Product
Audio-native model

A model that consumes audio directly — for transcription or general understanding.

Introduced in 09.4 Speech-to-Text
audio/l16

Headerless linear PCM — the streaming output format used by Gemini TTS.

Introduced in 09.5 Text-to-Speech
audit dimension

A Petri dimension along which transcripts are scored or compared.

Introduced in 10B.16 Evaluating Agents with Inspect, and the Inspect Ecosystem (optional)
Audit event / audit log

The append-only record of every proposed, approved, denied and executed tool call.

Introduced in 08A.14 Reliable, Safe and Observable Agents
Audit hash chain

Audit records that each include the hash of the previous one, so edits are detectable

Introduced in 11A.3 Latency Percentiles, Error Classification, Audit Logs, Session Replay, Dashboards and SLOs
Audit sample

Random re-review of auto-approved documents — the only unbiased measure of silent-error rate.

Introduced in 13B.3 Capstone Build B: The Document Intelligence App
audit seed

An Inspect Petri seed instruction describing the target behaviour or scenario to probe.

Introduced in 10B.16 Evaluating Agents with Inspect, and the Inspect Ecosystem (optional)
Audit trail

The manifest record of every ingest/enrich/delete run — who, when, what.

Introduced in 05.10 Data Quality Checks
Augmented assignment

x += y — rebind for immutables, mutate for mutables.

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
Authentication vs authorisation

Who are you (AuthN) vs what may you do (AuthZ); confusing them causes IDOR.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Authority split

Dividing agents by what they are allowed to do (read versus write), not only by task

Introduced in 13B.4 Capstone Build D: a Tool-Using or Two-Agent App with One Outside System
Authorization server

The service that signs users in and issues access tokens

Introduced in 08E.3 Remote MCP: OAuth, Gateways and Many Servers
Authorization Server Metadata (RFC 8414)

A document describing an authorization server's endpoints and capabilities

Introduced in 08E.3 Remote MCP: OAuth, Gateways and Many Servers
auto()

Generates enum values automatically (ints, powers of two for Flags, names for StrEnum).

Introduced in 01A.6 Classes, Dataclasses and Enums
Auto-CoT

Building few-shot CoT demonstrations automatically: cluster questions, then generate a chain for one representative per cluster with Zero-Shot CoT.

Introduced in 04.11 Named Prompting Techniques: A Field Guide
Auto-instrumentation

Libraries that wrap provider SDKs/frameworks to emit spans without manual code (genai-*, traceloop, openinference).

Introduced in 11A.1 Tracing and Observability for LLM Applications
Auto-merging retrieval

Retrieving leaf chunks and promoting them to their parent text when enough retrieved siblings share that parent; a LlamaIndex pattern.

Introduced in 05.7 Advanced and Document-Specific Chunking
Auto-passed (unjudged) pass

A red-teaming case scored as resisted by the refusal short-circuit without any judge call; DeepEval marks it only by the fixed reason text "The model declined or returned no substantive output.", so report how many passes are of this kind.

Introduced in 10B.7 DeepEval in Production: Red Teaming, CI/CD, Prompt Optimization and Confident AI
Auto-routing

A provider silently directing requests for a deprecated model ID to a replacement model, billed at the replacement's rates and subject to its behaviour changes.

Introduced in 14A.9 Staying Current in a Fast-Moving Field
auto_id

An Inspect loader option that numbers samples 1, 2, 3 at load time, before any loader shuffle, so ids stay attached to their content; without it, id-less samples are numbered by position when the run starts.

Introduced in 10B.9 Inspect Datasets, Solvers and Task Configuration (optional)
autocommit

Python 3.12+ opt-out of implicit transactions.

Introduced in 00.7 SQL Basics with SQLite
Autograd

The feature of frameworks such as PyTorch and JAX that computes gradients automatically, so you only write the forward pass.

Introduced in 02.1 Neural Network Basics
Automatic caching (Anthropic)

A top-level cache_control on the request that places the breakpoint on the last cacheable block, which suits growing conversations. It uses one of the four breakpoint slots.

Introduced in 03.7 Token Counting, Cost Tracking and Prompt Caching
Automatic continuation

google-genai's default behaviour of chaining long-generation "hops" and resuming a dropped stream from a continuation_token; FinishReason.CONTINUATION is not an ending.

Introduced in 03.3 Streaming Responses
Automatic function calling (AFC)

A google-genai SDK feature that runs Python-function tools inside the SDK call, sends their results back and returns only the final response; each step is a separate billed request.

Introduced in 03.5 Tool Calling: The API Mechanics
Automatic Prompt Engineer (APE)

An LLM proposes candidate instructions and the best is selected by dev-set score (Zhou et al.).

Introduced in 04.11 Named Prompting Techniques: A Field Guide
Automation bias

Human reviewers over-trusting fluent automated output and approving it without real checking, which quietly defeats human-in-the-loop review.

Introduced in 02.10 Limitations and Failure Modes
Automation/anchoring bias

Reviewers accepting plausible-looking model labels too readily.

Introduced in 10A.2 Building Evaluation Datasets
Autonomous completion

A sample ending without error, limit stop or human intervention.

Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)
Autonomy dial

Per-action spectrum from suggest to act silently, enforced in code.

Introduced in 13A.3 AI UX II: Trust, Transparency, Feedback and Human-in-the-Loop
Autonomy level

A classification of how much an agent may do without a human

Introduced in 14A.3 Security, Data and Compliance Policy
Autonomy spectrum

The range from suggest through assist and act-with-approval to act-autonomously

Introduced in 08A.1 Agent Definitions, the Autonomy Spectrum and Agent Anatomy
Autonomy tier

How much the AI may do without a human acting first: assist / draft / act / decide.

Introduced in 13A.1 Product Thinking for AI Features: What to Build and When Not to Use AI
AutoNuggetizer

The TREC 2024 RAG Track framework in which an LLM creates answer nuggets and assigns them to system answers; automates nugget recall.

Introduced in 10A.6 Evaluating RAG Pipelines in Depth
Autoregressive / causal model

A model that generates one token at a time, each depending only on earlier tokens.

Introduced in 02.4 Attention and Transformers
Autoregressive generation

Producing text one token at a time, each predicted from all the previous tokens, including generated ones.

Introduced in 02.5 Generation and Sampling
Autoscaling signal

The metric that triggers scale-out — concurrency, not CPU, for LLM services.

Introduced in 11C.1 Deploying LLM Services
autospec

Mock mode enforcing the real signature, catching wrong-argument calls.

Introduced in 01B.8 Testing with pytest
AutoStrategy

Picks ProviderStrategy or ToolStrategy from the model profile.

Introduced in 08F.6 Prompts, Output Parsers and Structured Output
Availability

Fraction of time a service answers; bought with redundancy ("nines").

Introduced in 00.5 How Web Apps Work: Client, Server and Database
await

Pause this coroutine until the awaited thing finishes; only legal inside async def.

Introduced in 01B.3 Async Python: async/await and the Event Loop
Awaitable

Anything you can put after await: a coroutine object, a Future or Task, or an object with an __await__ method returning an iterator.

Introduced in 01C.2 Synchronous vs Asynchronous Programming and the asyncio Event Loop
Aware vs naive datetime

A datetime with tzinfo denotes an instant; without it, only a wall-clock reading — the two cannot be subtracted.

Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Library
Awareness document

Guidance that names risks and mitigations but is not a standard you can be certified against

Introduced in 12.8 Red Teaming and Security Testing
Axial coding

The second pass of error analysis: grouping free-text failure notes into a small set of categories.

Introduced in 10A.1 Why Evals Matter: The Evaluation Mindset

B

Back-of-envelope estimate

A rough calculation used to expose dominant constraints such as QPS, tokens, concurrency, cost, latency or index size, not a precise forecast.

Introduced in 14B.7 Interview Prep II: LLM System Design
Back-pressure

Making a producer wait when consumers can't keep up, so memory stays bounded however large the input is.

Introduced in 03.9 Async, Concurrency and Batch Processing
Backchannel

Short listener noise ("mm-hm") produced during the other's turn.

Introduced in 09.6 Audio-Native Models and Realtime Foundations
Backend responsibilities

Routing, validation, authentication, authorisation, business logic, persistence, integration, response shaping.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Backfill

A versioned job that touches every record to add/change a field.

Introduced in 05.9 Ingestion Pipelines and Incremental Updates
Background agent

An agent run started and finished without a person waiting on a request

Introduced in 08A.13 Background and Long-Running Agents
Background job / worker

Queued slow work done off the request path by a separate process.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Background mode

Starting a long request that the provider keeps running server-side (OpenAI background=True, Gemini Interactions background=True) and fetching the result by polling or webhook.

Introduced in 03.9 Async, Concurrency and Batch Processing
BackgroundTasks

Post-response in-process tasks — convenience for audit/cache work, not a durable queue.

Introduced in 01B.7 FastAPI Basics: Building a Small API
Backpressure

Bounding upstream rate to downstream capacity via bounded queues.

Introduced in 01B.4 Concurrency Patterns for I/O-Heavy Work
Backpropagation

The algorithm that computes the gradient for every weight by passing the error backwards through the network, layer by layer.

Introduced in 02.1 Neural Network Basics
Bake-off

A controlled comparison of retrieval candidates on one labelled set, one judge, paired statistics.

Introduced in 07.7 Managed RAG: Provider Tools, Platforms and Frameworks
Balanced accuracy

The mean of the true-positive rate and the true-negative rate; unlike plain accuracy it is not dominated by the majority class, which matters when scoring rare behaviours such as refusing off-topic requests.

Introduced in 10B.5 DeepEval Tracing, Component-Level Evals and Agent Evaluation
Banker's rounding

round() rounds half to even (2.5→2, 3.5→4), not half up; use Decimal ROUND_HALF_UP for money.

Introduced in 01A.2 Numbers, Strings and Text
Barbell strategy

Deep spike in one technical area plus deliberate breadth in evals/production/product.

Introduced in 14A.8 Skills Map and Gap Analysis
Bare repository

A .git-only repo (no worktree) — what remotes usually are.

Introduced in 00.3 Git Fundamentals
Barge-in

A user interrupting the agent mid-speech; requires cancelling TTS and flushing audio.

Introduced in 09.5 Text-to-Speech
Barging

A running thread re-taking a lock ahead of threads already waiting for it, which can starve the waiters.

Introduced in 01C.4 Deadlocks, Livelock and Starvation
Barrier

Blocks until N parties arrive, then releases all (also a testing tool).

Introduced in 01C.3 Race Conditions and Thread Safety
Base model

A pretrained model that continues text but hasn't been post-trained to act as an assistant; also called a pretrained or foundation model.

Introduced in 02.6 How LLMs Are Trained
Base span (DeepEval)

The untyped, custom span class; frameworks such as LangGraph produce one per graph node, so a component metric on a node must be staged on the typed span inside it.

Introduced in 10B.5 DeepEval Tracing, Component-Level Evals and Agent Evaluation
Base64

A way of writing any bytes as text using 64 safe characters (3 bytes become 4 characters), so files can travel inside JSON; the result is about a third larger than the original.

Introduced in 03.6 Images, PDFs and Files
BaseChatModel

The langchain-core base class that gives every provider class invoke, stream, batch, async methods, rate_limiter, cache and disable_streaming.

Introduced in 08F.5 Chat Models, Messages and Content Blocks
Baseline

The last accepted run's stored per-case results + manifest, not a single number.

Introduced in 10A.8 Regression Testing, CI and Experiment Tracking
Baseline artifact

The main branch's archived run file, diffed against a pull request's run

Introduced in 10B.7 DeepEval in Production: Red Teaming, CI/CD, Prompt Optimization and Confident AI
baseline ladder

An ordered family of baselines from trivial controls through tuned single-agent systems to progressively richer scaffolds.

Introduced in 10B.16 Evaluating Agents with Inspect, and the Inspect Ecosystem (optional)
Baseline-relative threshold

Alerting on deviation from a rolling median/MAD rather than a fixed bound.

Introduced in 05.10 Data Quality Checks
BaseModel

The class subclassed to define a validated model; fields are annotated attributes.

Introduced in 01B.6 Data Validation with Pydantic
BaseTool (LangChain tool)

A named, described, schema-typed function the model can ask your program to run; the langchain-core base class for all tools.

Introduced in 08F.8 Tools and create_agent
bash_20250124

Anthropic's client tool for running shell commands in your own session.

Introduced in 08A.15 Coding and Computer-Use Agents
Basic auth

Authorization: Basic base64(user:pass) — encoding, not encryption; HTTPS-dependent.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Batch action

Several member-tool calls in one response, executed in order (Anthropic toolsets).

Introduced in 08A.15 Coding and Computer-Use Agents
Batch API

A way to submit many requests for asynchronous processing, typically at a 50% discount with results within about 24 hours. *(Introduced in [lesson 02.9](02-how-llms-work/09-model-landscape.md#65-service-tiers-batch-flex-standard-priority))* Results arrive in any order and can expire, so match them to inputs by [custom_id / key](#custom_id--key); OpenRouter has its own Batch API. *(Extended in [lesson 03.9](03-llm-apis/09-async-and-batch.md#part-6-batch-apis-the-shared-shape))*

Batch embedding API

A provider's asynchronous, discounted job for embedding many texts (JSONL in, vectors out, hours turnaround).

Introduced in 06.2 Embedding Pipelines: Batching, Caching, Scale and Cost
Batch invariance

An inference property where a request gives identical results regardless of which other requests share its batch; its absence is a major cause of non-determinism.

Introduced in 02.10 Limitations and Failure Modes
Batch mode (Inspect)

Routing an eval's requests through a provider's batch API (OpenAI, Anthropic, Google, xAI, Together) for lower prices at the cost of hours of latency; a fit for single-turn tasks only.

Introduced in 10B.12 Running Inspect Evals for Real: Models, Configuration, Concurrency, Caching, Errors and Eval Sets (optional)
Batch, step, epoch

A group of training examples processed together in one training step.

Introduced in 02.1 Neural Network Basics
Bearer token

Authorization: Bearer <token> — "holder is authenticated".

Introduced in 00.5 How Web Apps Work: Client, Server and Database
BeautifulSoup / selectolax / lxml

HTML parser libraries (tree API / Cython Lexbor / C libxml2).

Introduced in 05.3 Parsing HTML, Web Pages and Office Files
BEGIN IMMEDIATE

Starts a transaction that takes the write lock up front.

Introduced in 00.7 SQL Basics with SQLite
Behavioural anchor

A level definition written as something you *did*, not how you *feel*.

Introduced in 14A.8 Skills Map and Gap Analysis
Behavioural interview

An interview format that asks about past behaviour ("tell me about a time…") to predict future behaviour, scored against competency rubrics.

Introduced in 14B.8 Interview Prep III: Take-Homes, Behavioural Rounds and Offers
BEIR / MTEB / MS MARCO / MIRACL

A heterogeneous benchmark of ~18 zero-shot information-retrieval datasets (Apache-2.0, NeurIPS 2021) for comparing retrieval models.

Introduced in 06.10 Evaluating and Tuning Retrieval
Benchmark

A fixed set of tasks with automatic scoring, used to compare models.

Introduced in 02.9 Model Landscape
Benchmark class (DeepEval)

One of the 17 classes in deepeval.benchmarks that runs a raw model through a public dataset with a fixed template and scorer.

Introduced in 10B.6 DeepEval Datasets, Synthetic Data, Conversation Simulation and Benchmarks
Benchmark contamination

See [Data contamination](#data-contamination).

Benchmark gaming

Optimising specifically for a benchmark's format and items rather than the underlying capability.

Introduced in 10A.10 Evaluation Platforms, Benchmarks and Building an Eval Culture
Benchmark literacy

The skill of reading benchmark and leaderboard claims critically — contamination, saturation, selection effects, self-reporting and metric definitions.

Introduced in 14A.9 Staying Current in a Fast-Moving Field
Benchmark-maxxing

Tuning models to score well on popular benchmarks rather than to be better in general.

Introduced in 02.9 Model Landscape
Benign twin

A normal task paired with an attack, which must still succeed, to detect over-blocking

Introduced in 12.8 Red Teaming and Security Testing
Best-of tracking

Keeping the highest-scoring draft rather than the last one

Introduced in 08A.11 Reflection, Parallel Fan-Out and Agent-as-a-Tool
Best-of-N

Generating several samples and picking one with a scorer, test suite or verifier.

Introduced in 02.5 Generation and Sampling
Beta API

A feature that is current but allowed to change in a minor release.

Introduced in 08F.15 Patterns, Pitfalls and Migration
Beta header

A request header that opts into a pre-release feature, such as anthropic-beta.

Introduced in 03.1 The Provider APIs and Your First Calls
Bi-encoder

A model that embeds a query and a document independently into single vectors, compared by a fast similarity operation.

Introduced in 06.9 Reranking
Bi-temporal validity

Recording when a fact was true in the world separately from when the system learned or retired it, so "as-of" questions can be answered.

Introduced in 10A.11 Evaluating Agent Memory and Context Management
Bias

A learned number added to a neuron's weighted sum, shifting how easily the neuron "fires".

Introduced in 02.1 Neural Network Basics
Biased reference counting

The free-threaded build's scheme: an owner thread updates a local count cheaply, other threads use an atomic shared count.

Introduced in 01C.5 The Global Interpreter Lock (GIL)
Big-O

Cost growth rate of an operation as input size grows.

Introduced in 01A.4 Core Data Structures: Lists, Tuples, Dictionaries and Sets
Billing meter

The unit a platform charges for (traces, spans, units, GB processed, seats); two platforms with similar list prices can cost very different amounts for the same traffic.

Introduced in 10A.10 Evaluation Platforms, Benchmarks and Building an Eval Culture
Binarization / Otsu / adaptive

Reducing an image to black-and-white; Otsu picks one global threshold, adaptive thresholds each pixel locally.

Introduced in 05.4 OCR and Scanned Documents
Binary / int8 quantized embeddings

Embeddings stored with 1 bit or 1 byte per number instead of 4 bytes.

Introduced in 02.3 Embeddings
Binary grading

Scoring a right answer as 1 and both wrong answers and "I don't know" as 0, which makes guessing always look better than abstaining.

Introduced in 02.10 Limitations and Failure Modes
Binary quantization

Keeping only the sign of each dimension; Hamming distance scoring.

Introduced in 06.4 Vector Indexes: HNSW, IVF, Quantization and Trade-offs
bind

Returns a copy of a runnable with extra call arguments pre-filled, without changing the original.

Introduced in 08F.5 Chat Models, Messages and Content Blocks
bind_tools

Returns a model runnable that sends tool schemas with each call; replies list requests in .tool_calls.

Introduced in 08F.5 Chat Models, Messages and Content Blocks
Binding

Fixing keyword arguments, config or types on a Runnable (bind, with_config, with_types), returning a new Runnable.

Introduced in 08F.7 Runnables and LCEL
Bisect

Binary-searching history to find the first "bad" point; git bisect automates it for commits.

Introduced in 00.9 Working Like an Engineer: Debugging, Asking for Help and Learning Habits
Bit depth

How precisely each audio sample is stored as a number; 16-bit PCM is the standard.

Introduced in 09.4 Speech-to-Text
Bits per byte

Cross-entropy loss normalized by the length of the raw text rather than the number of tokens, so models with different tokenizers can be compared fairly.

Introduced in 02.6 How LLMs Are Trained
Black-box evaluation

Testing a system (such as a low-code flow) only through its inputs and outputs; see 08F.16

Introduced in 08F.1 Agent Frameworks and SDKs
Black-box retriever

A managed retriever whose internals (chunking, ranking, embedding) you can't inspect.

Introduced in 07.7 Managed RAG: Provider Tools, Platforms and Frameworks
Blackboard / shared state

Agents coordinate through a shared store rather than direct messages.

Introduced in 08D.3 Multi-Agent Systems
Blameless postmortem

A written incident record focused on systemic causes, not individual blame, ending in tracked action items.

Introduced in 11C.4 Operating LLM Systems: Governance, Incidents and the Production Checklist
Blameless postmortem analysis

Failure analysis asking "which control was missing" rather than "who was at fault"; the case-study form of the blameless postmortem.

Introduced in 13A.7 Case Studies: How Real AI Products Are Built, and How They Fail
Blast radius

The scope of harm a successful attack can cause: whose data, what authority, what reach, what reversibility.

Introduced in 12.1 Threat Modelling LLM Applications
Blob

Git's three object types: a file's contents / a directory listing / a snapshot pointer with parents, author and message — all content-addressed by hash.

Introduced in 00.3 Git Fundamentals
Block / recipe

A typed piece of document structure (heading, clause, turn, record, figure…) produced by a document-type parser before chunk packing.

Introduced in 05.7 Advanced and Document-Specific Chunking
Block scope

{ }-delimited scope — absent in Python (function/module/class/comprehension only).

Introduced in 01A.11 Coming from PHP, JavaScript or Java: Side by Side
Blocking call

A call that does not return until the awaited event happens; the calling thread is parked by the kernel.

Introduced in 01C.1 Concurrency, Parallelism and Context Switching
Blue/green deployment

Two environments; switch traffic all-at-once, instant rollback.

Introduced in 11C.1 Deploying LLM Services
Blue/green index

Building a new index alongside the live one, then flipping an alias.

Introduced in 05.9 Ingestion Pipelines and Incremental Updates
Blue/green index + alias

Building a new index version alongside and flipping an atomic alias after shadow eval; rollback is flipping back. *(Terms from 05.9/06.1; this lesson adds the release-gate operational discipline.)*.

Introduced in 07.11 Production RAG: Security, Freshness, Cost and Operations
Blue/green re-embedding

Building a new-spec index alongside the old, then cutting queries over — avoiding a mixed-model index.

Introduced in 06.2 Embedding Pipelines: Batching, Caching, Scale and Cost
Blue/green reindex

Building a new embedding space in parallel with the old one, verifying quality on a test set, then cutting over — the only safe way to change embedding models, since two spaces can never share one index.

Introduced in 06.1 Embedding Models and APIs in Practice
BM25

The ranking function FTS5 uses (also Lucene's default).

Introduced in 00.7 SQL Basics with SQLite
BM25F

BM25 extended to multiple weighted fields with per-field length normalization.

Introduced in 06.7 Keyword Search and BM25
BM25L / BM25+

Variants fixing over-penalization of very long documents (Lv & Zhai).

Introduced in 06.7 Keyword Search and BM25
Boilerplate

Repeated template text (nav, footers, disclaimers) that carries no per-page meaning and floods retrieval if kept.

Introduced in 05.1 Data Sources, Formats and the Ingestion Mindset
BOM

Byte-order mark; utf-8-sig strips it, plain utf-8 keeps \ufeff.

Introduced in 01A.2 Numbers, Strings and Text
bool is int

True == 1 and isinstance(True, int); booleans are an int subclass.

Introduced in 01A.2 Numbers, Strings and Text
boolean mask

A True/False Series or array used to filter rows in pandas or elements in NumPy.

Introduced in 01B.11 NumPy and pandas Essentials for AI Work
Bootstrap CI

Resample observations with replacement to estimate a mean's uncertainty interval.

Introduced in 10A.8 Regression Testing, CI and Experiment Tracking
Bootstrap confidence interval

A resampling-based confidence interval for a statistic (here, the mean of paired per-query metric differences); if it excludes zero the difference is probably real.

Introduced in 06.10 Evaluating and Tuning Retrieval
Borda count

Position-based fusion awarding N − rank + 1 points per list; linear rather than reciprocal decay, less top-heavy than RRF.

Introduced in 06.8 Hybrid Search
Borderline verdict (DeepEval)

DeepEval's third QAG verdict, meaning ambiguous or not backed up by the context; it passes in Answer Relevancy and default Faithfulness and fails in Summarization's alignment check.

Introduced in 10B.4 DeepEval's Built-in Metrics, Opened Up: RAG, Safety, Conversations and More
Born-digital

A document created as text (real fonts), not scanned.

Introduced in 05.4 OCR and Scanned Documents
Born-digital vs scanned

Whether a PDF page contains real text operations (born-digital) or only page images (scanned); determines the extraction route.

Introduced in 05.2 Parsing PDFs
BOS / EOS

Special tokens marking the beginning and the end of a sequence. When a model generates EOS (or its end-of-turn token), generation stops.

Introduced in 02.2 Tokens and Tokenization
Bound ratio

The fraction of end-to-end failures that an oracle-context run rescues — an estimate of the retrieval/assembly share of total failures, tracked per release.

Introduced in 10A.6 Evaluating RAG Pipelines in Depth
Boundary case

An input near a decision boundary between two labels or categories.

Introduced in 04.2 Zero-Shot, Few-Shot and Examples
Boundary truncation

Cutting text at a paragraph or sentence edge rather than mid-stream, with the omission explicitly marked.

Introduced in 04.6 Context Engineering: Selecting and Ordering Context
Bounded cache

A cache with explicit limits on entries, bytes and age, so it cannot grow without bound.

Introduced in 01C.6 Python Memory Management
Bounded concurrency

Capping simultaneous in-flight calls (semaphore/worker count).

Introduced in 01B.4 Concurrency Patterns for I/O-Heavy Work
Bounded service / bounded context

A capability isolated behind its own typed contract, store and failure modes — e.g. retrieval as a service rather than functions scattered across handlers.

Introduced in 13A.5 Architecture Patterns for AI Applications
BPE (Byte-Pair Encoding)

Subword tokenisation via iterative pair merging.

Introduced in 14B.6 Interview Prep I: Coding and Fundamentals
Bradley–Terry model

The statistical model Arena uses to turn pairwise votes into ratings.

Introduced in 02.9 Model Landscape
Brag document

A running private record of accomplishments, decisions and lessons — raw material for performance reviews, interviews and public posts.

Introduced in 14B.4 Writing and Learning in Public
BrainReply / DialogContext

The brain seam's output / input types.

Introduced in 13B.5 Capstone Build C: The Realtime Voice Agent Product
Branch

A movable pointer to a commit; a line of work.

Introduced in 00.3 Git Fundamentals
Branch outcome

A branch's result with a status: ok, partial, error, timeout, cancelled or skipped

Introduced in 08A.11 Reflection, Parallel Fan-Out and Agent-as-a-Tool
Branch protection / ruleset

Rules controlling what may be pushed, merged or required on a branch — reviews, status checks, linear history, signed commits.

Introduced in 00.4 GitHub and Collaboration
Breadth/utility project

A smaller piece proving you can build the tools teams need (CLI, service, library).

Introduced in 14B.2 Portfolio Strategy: Choosing and Shaping Projects
break / continue / loop else

The else clause on a for/while that runs only when the loop finishes without break.

Introduced in 01A.3 Control Flow and Functions
Break-even (cache)

The number of reuses within one lifetime at which caching becomes cheaper than not caching. For Anthropic's 5-minute write it is 2 requests; for explicit Gemini caches it also depends on storage hours.

Introduced in 03.7 Token Counting, Cost Tracking and Prompt Caching
Break-even hit rate

The hit rate at which cache savings equal cache overhead; below it caching loses money.

Introduced in 11B.3 Caching Strategies
Break-even utilization

The share of time a provisioned unit must be busy to beat on-demand

Introduced in 11B.7 Rate Limits Across Teams, Throughput Options, Kill Switches and Spend Alerts
Breaking Changes section

The part of an Inspect changelog release that lists changes needing action; DeepEval files the same idea under a "Breaking Change" category

Introduced in 10B.18 Finish Learning DeepEval and Inspect from the Official Docs
Breaking-changes block

The part of a changelog entry that lists changes requiring code changes; read it first.

Introduced in 08F.17 Finish Learning from the Official Docs
breakpoint() / pdb

See [pdb / breakpoint()](#pdb--breakpoint).

Brevity penalty

The BLEU factor that discounts hypotheses shorter than the reference — without it, "cat" would outscore a full sentence.

Introduced in 10A.3 Deterministic Metrics and Code-Based Graders
Bridge import

A langchain_classic import used temporarily to keep pre-1.0 code running while you migrate.

Introduced in 08F.4 The LangChain Ecosystem and Your Setup
Bridge package

A compatibility package (here langchain-classic) that keeps old imports working while you port.

Introduced in 08F.15 Patterns, Pitfalls and Migration
Bridged tool

A host-side Inspect tool exposed to a sandboxed external agent under a proposal-and-approval contract.

Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)
Brier score

Mean squared error between predicted probabilities and 0/1 outcomes — a proper scoring rule that penalises both wrong answers and overconfidence.

Introduced in 10A.3 Deterministic Metrics and Code-Based Graders
broadcasting

NumPy's rule for operating on different-shaped arrays: dimensions align from the right and size-1 dims stretch to match.

Introduced in 01B.11 NumPy and pandas Essentials for AI Work
browser_toolset_20260801

Anthropic's 27-member browser toolset working on page structure (refs) + screenshots.

Introduced in 08A.15 Coding and Computer-Use Agents
BSD vs GNU userland

MacOS's BSD-derived command-line tools vs Linux's GNU tools — same names, different flags (sed -i, --help).

Introduced in 00.2 The Terminal and Shell
Budget

Hard limits on steps, tokens, cost, wall-clock and per-tool calls.

Introduced in 08A.2 The Tool Loop: From One Round Trip to an Agent
Budget alert thresholds

Alerts at fixed fractions of a budget (50% info, 80% warn, 100% page), each firing once per tenant per day.

Introduced in 07.11 Production RAG: Security, Freshness, Cost and Operations
Budget artefact

A score difference caused by the budget or stop distribution rather than the capability being compared.

Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)
Budget cap

max_calls/max_cost_usd limit that stops a run before the invoice does.

Introduced in 10A.8 Regression Testing, CI and Experiment Tracking
Budget carve

Giving a child agent a slice of the parent's remaining budget

Introduced in 08A.11 Reflection, Parallel Fan-Out and Agent-as-a-Tool
Budget curve

The same agent eval run at several budgets (turn, token or time limits) and read as success, stops and cost per success against budget, ideally with a paired per-task view, rather than as one score, which shows where agent rankings flip and how completed-only accuracy flatters tight budgets. *(Introduced in [lesson 10B.15](10b-eval-frameworks/15-inspect-sandboxes-limits-and-approval.md#terms-introduced-in-this-lesson))* *(Extended in [lesson 10B.16](10b-eval-frameworks/16-evaluating-agents-with-inspect-and-ecosystem.md#56-a-keyless-budget-curve))*

Budget forcing

Controlling a model's thinking length during generation by cutting it off (forcing the end-of-thinking marker) or extending it.

Introduced in 02.8 Reasoning Models
Budget limit

An automatic stop at a number of steps, dollars or seconds

Introduced in 08A.5 Required Agent Security
budget sensitivity analysis

A design that repeats the eval under several budgets to separate capability, efficiency and stopping effects.

Introduced in 10B.16 Evaluating Agents with Inspect, and the Inspect Ecosystem (optional)
budget-stop share

The proportion of samples or epochs that end because a configured limit is reached.

Introduced in 10B.16 Evaluating Agents with Inspect, and the Inspect Ecosystem (optional)
Bug bounty / VRP

A standing authorised programme that rewards vulnerability reports within defined scope (e.g. OpenAI, Anthropic, Google AI VRP).

Introduced in 12.8 Red Teaming and Security Testing
Build / buy / configure

Write the stages yourself / adopt a vendor's finished product / assemble managed building blocks and write only the product logic around them.

Introduced in 13A.1 Product Thinking for AI Features: What to Build and When Not to Use AI
Build backend

The tool declared in [build-system] (uv_build, hatchling, setuptools) that turns a source tree into wheel/sdist distributions.

Introduced in 01B.10 Logging, Debugging and Packaging: Putting the Toolkit Together
Build to delete

Treating each harness component as an assumption about model weakness and removing it when it stops being true.

Introduced in 08A.4 Harness Engineering: Everything Around the Model
Build vs buy

Managing the retriever yourself vs a provider/managed service behind the same protocol.

Introduced in 07.1 RAG Architecture: From Question to Grounded Answer
Build vs buy spectrum

The range from owning every pipeline stage to delegating nearly all of them.

Introduced in 07.7 Managed RAG: Provider Tools, Platforms and Frameworks
Building blocks

The seven parts of a reliable prompt: goal, context, input data, constraints, output format, examples, success criteria.

Introduced in 04.1 Anatomy of a Good Prompt
Built-in / server tool

A tool the provider runs itself (web search, code execution...), declared by type, with its results inside the same response and billed on top of tokens.

Introduced in 03.5 Tool Calling: The API Mechanics
Built-in tools

The file, shell and web tools Claude Code ships with; removed with tools=[]

Introduced in 08F.3 Claude Agent SDK
Builtin

Names available without import (print, len, str...).

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
bulk_update_state

Applies several StateUpdate super-steps in one call.

Introduced in 08F.11 Persistence, Durable Execution and Memory
Bulkhead

Isolated resource pools per dependency so one failure can't sink the ship.

Introduced in 01B.9 Retries, Timeouts, Backoff and Resilience
Burn rate

How fast an error budget is consumed relative to the allowed rate; 14B.3× on a 30-day SLO exhausts it in ~2 days.

Introduced in 11A.2 Metrics, Dashboards, SLOs and Alerting
Burnout

WHO ICD-11 occupational phenomenon: chronic unmanaged workplace stress (exhaustion, distance, reduced efficacy).

Introduced in 14B.9 Your First 90 Days and Long-Term Growth
Burst (burst_s)

How many seconds' worth of a limit a client-side bucket may hold at once; a small value stops a full bucket from releasing a whole minute's budget in one instant.

Introduced in 03.8 Errors, Rate Limits, Timeouts and Retries
Business Associate Agreement (BAA)

The contract that makes a vendor a permitted handler of PHI under HIPAA; offered per provider, sometimes self-serve, always with endpoint restrictions.

Introduced in 03.2 Messages, Roles and Conversation State
Busy timeout

How long a connection waits for a lock before raising database is locked.

Introduced in 00.7 SQL Basics with SQLite
BYOK

Using your own provider API keys through a gateway, so usage is billed by the provider.

Introduced in 02.9 Model Landscape
Byte fallback

Encoding characters that aren't in the vocabulary as individual byte tokens, so that no text is lost.

Introduced in 02.2 Tokens and Tokenization
Byte-level BPE

BPE that starts from the 256 possible byte values instead of characters, so any text in any language can be tokenized and nothing is ever "unknown".

Introduced in 02.2 Tokens and Tokenization
Byte-pair encoding (BPE)

A tokenizer training method that builds a vocabulary by repeatedly merging the most frequent pair of neighbouring symbols. New text is tokenized by replaying those merges in order.

Introduced in 02.2 Tokens and Tokenization
Bytecode

The compact intermediate instructions the interpreter executes after compiling source.

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
bytes / bytearray

Immutable / mutable raw byte sequences; indexing bytes yields ints, not one-byte strings.

Introduced in 01A.2 Numbers, Strings and Text

C

-c / -m / -i

Interpreter flags: run inline code, run a module as __main__, or enter the REPL after the main action.

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
@classmethod / @staticmethod

Methods bound to the class (cls) or to nothing — factories vs namespaced functions.

Introduced in 01A.6 Classes, Dataclasses and Enums
@contextmanager

Decorator turning a generator into a context manager.

Introduced in 01A.8 Errors, Exceptions, Debugging and Logging
__call__

Makes an instance callable like a function.

Introduced in 01A.6 Classes, Dataclasses and Enums
C2PA Content Credentials

Signed provenance metadata manifest embedded in media files.

Introduced in 09.3 Image Generation and Editing
C4 model

A four-level notation for architecture diagrams — system context, container, component, code — by Simon Brown.

Introduced in 13A.5 Architecture Patterns for AI Applications
Cache

Fast copy of expensive data trading freshness for speed / durable to-do list decoupling producers from workers.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Cache boundary

The marker line ({# cache-boundary #}) that separates a template's prefix from its suffix

Introduced in 04.10 Prompt Templates, Versioning and a Prompt Library
Cache breakpoint

A marker (Anthropic cache_control, OpenAI prompt_cache_breakpoint) that ends a cacheable prefix. Everything up to it can be written to and later read from the cache.

Introduced in 03.7 Token Counting, Cost Tracking and Prompt Caching
Cache diagnostics

Provider features that compare a request with your previous one and report the first reason the cache missed (model, system, tools or messages changed).

Introduced in 03.7 Token Counting, Cost Tracking and Prompt Caching
Cache key (model, run, prompt)

The deterministic hash that makes eval re-runs free without collapsing repeat-draw variance.

Introduced in 10A.1 Why Evals Matter: The Evaluation Mindset
Cache lifetime (TTL)

How long a cache entry lives without use: 5m or 1h on Anthropic, 30m or 12h on OpenAI. A longer lifetime costs a higher write price.

Introduced in 03.7 Token Counting, Cost Tracking and Prompt Caching
Cache lint

A key-free check that flags volatile variables, literals and prefix edits in a template

Introduced in 04.10 Prompt Templates, Versioning and a Prompt Library
Cache penetration

Requests for keys that can never hit, so every one pays full backend cost — benign (unique traffic) or adversarial (sprayed/threshold-evading queries); defended by admission control and miss-rate alerts, not by caching.

Introduced in 11B.3 Caching Strategies
Cache poisoning

Attacker-controlled queries populating a shared cache with malicious answers served to other users.

Introduced in 11B.3 Caching Strategies
Cache pre-warm

Populating a cache before real traffic, without generating output.

Introduced in 11B.4 Token Caching in Depth: How It Works, Who Supports It, and How to Use It
Cache pre-warming

Writing a prefix to the cache before real traffic arrives, so a burst of parallel requests reads it instead of each paying for a write. Anthropic uses max_tokens: 0; OpenAI uses prewarm: true.

Introduced in 03.7 Token Counting, Cost Tracking and Prompt Caching
Cache salt

A per-tenant value mixed into block hashes so tenants cannot probe each other's cache by timing.

Introduced in 11B.4 Token Caching in Depth: How It Works, Who Supports It, and How to Use It
Cache TTL (max_age_s)

Record expiry so stale replays can't hide provider-side changes.

Introduced in 10A.8 Regression Testing, CI and Experiment Tracking
Cache write / cache read

Storing a prompt prefix in the provider's cache (sometimes charged above the normal input price) / reusing a stored prefix (charged at a discount).

Introduced in 02.7 Context Windows
Cache write premium

The extra charge (for example 1.25x) for creating a cache entry, recovered by discounted reads.

Introduced in 11B.4 Token Caching in Depth: How It Works, Who Supports It, and How to Use It
Cache-augmented generation (CAG)

Preloading a small knowledge base into the context window and caching its prefix, bypassing per-query retrieval; practical only because of prompt caching.

Introduced in 07.1 RAG Architecture: From Question to Grounded Answer
Cache-breaking edit

A change above the boundary that alters the prefix bytes and so invalidates the provider's cache

Introduced in 04.10 Prompt Templates, Versioning and a Prompt Library
Cache-hit probing

Inferring another user's prompts from cache-hit timing in a shared cache. It is the reason cache keys and isolation matter.

Introduced in 03.7 Token Counting, Cost Tracking and Prompt Caching
Cache-storage event

A tracker record for the hours a Gemini explicit cache was kept, which no response reports.

Introduced in 03.7 Token Counting, Cost Tracking and Prompt Caching
Cacheable source

A context source identical across requests, eligible for the prompt-cache prefix.

Introduced in 04.6 Context Engineering: Selecting and Ordering Context
CacheBackedEmbeddings

A wrapper that caches embeddings in a byte store keyed by text hash and namespace; lives in langchain-classic.

Introduced in 08F.9 RAG with LangChain
Cached input

See [Cached tokens](#cached-tokens).

Cached tokens

Input tokens served from a provider's prompt cache because they match a recently processed prompt prefix. They're usually billed at a large discount. *(Introduced in [lesson 02.2](02-how-llms-work/02-tokens-and-tokenization.md#101-how-token-pricing-is-structured))* Module 03 keeps cached reads in a field of their own, apart from [Uncached input](#uncached-input); see [Token convention](#token-convention). *(Extended in [lesson 03.7](03-llm-apis/07-cost-and-caching.md#31-from-usage-to-line-items))*

CachePolicy

A node option with a key_func and a ttl that lets a node's result be reused, given a cache on compile().

Introduced in 08F.12 Human-in-the-Loop and Control Flow
CachePolicy (Inspect)

The options of Inspect's response cache: expiry (default one week), per_epoch (default on) and extra scopes added to the key. Not the same as LangGraph's CachePolicy.

Introduced in 10B.12 Running Inspect Evals for Real: Models, Configuration, Concurrency, Caching, Errors and Eval Sets (optional)
Caching stack

The layered set of caches in an LLM request path — client, edge/CDN, gateway, app exact/semantic, specialist, and provider/self-hosted prefix — each saving a different amount of work.

Introduced in 11B.3 Caching Strategies
CachingEmbedder

A decorator that serves cache hits locally and sends only unique misses — still batched — to the real embedder.

Introduced in 06.2 Embedding Pipelines: Batching, Caching, Scale and Cost
Calibrated trust

Trust that matches real reliability — users verify exactly what needs verifying.

Introduced in 13A.3 AI UX II: Trust, Transparency, Feedback and Human-in-the-Loop
Calibrated uncertainty

Estimating with explicit confidence ("a day or two", "I need to spike first") rather than false precision.

Introduced in 14B.9 Your First 90 Days and Long-Term Growth
Calibration

How well a model's stated probabilities match how often it's actually right.

Introduced in 02.5 Generation and Sampling
Calibration split

The held-out label subset used to *measure* a judge, never to tune it.

Introduced in 10A.5 Calibrating and Validating Judges
Call cache / record-replay

JSONL store of model-call responses keyed by (fn, model, params, payload).

Introduced in 10A.8 Regression Testing, CI and Experiment Tracking
Call controller

Transport-agnostic state machine owning dialog state, tools, confirmation and audit.

Introduced in 13B.5 Capstone Build C: The Realtime Voice Agent Product
Call ID

The identifier on each tool call that your result must echo (call_id, tool_call_id, tool_use_id, Gemini's id), so the provider can pair results with calls.

Introduced in 03.5 Tool Calling: The API Mechanics
Call stack

The chain of active function calls, printed most-recent-last.

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
Call/result pair

A tool call and its matching result, which must be kept or dropped together

Introduced in 08B.3 Short-Term Memory: Truncation, Summarization and Compaction
call_model

The injectable async function every orchestration pattern calls — a provider-SDK adapter in production, a scripted fake in tests.

Introduced in 08A.9 Workflows vs Agents
call_model seam

The injectable prompt→output callable that lets the harness run fakes, provider SDKs or replays interchangeably.

Introduced in 10A.1 Why Evals Matter: The Evaluation Mindset
call_soon_threadsafe

The thread-safe way to schedule a callback on an event loop from another thread; it also wakes the loop.

Introduced in 01C.2 Synchronous vs Asynchronous Programming and the asyncio Event Loop
Callable[[A], R]

A function type: argument list → return type; Callable[..., T] = any args.

Introduced in 01A.10 Type Hints and Writing Readable Code
Callback

A function you hand to a framework to be called when something is ready.

Introduced in 01C.2 Synchronous vs Asynchronous Programming and the asyncio Event Loop
Callback handler

An object whose methods LangChain calls on lifecycle events (start, end, error, new token, custom event).

Introduced in 08F.7 Runnables and LCEL
caller field

Response field on tool calls made from inside a program or sandbox, naming the parent execution block so results route correctly.

Introduced in 08A.8 Provider Built-in and Server-Side Tools
`can_use_tool`

The callback that decides a call that no earlier rule resolved

Introduced in 08F.3 Claude Agent SDK
Canary case

Two senses: a high-value case run on every change, and a *secret* held-out case rotated to catch teaching-to-the-test (a third sense — canary *rollouts* of live traffic — is Module 11C's). *(Introduced in [lesson 10A.8](10a-evaluation-foundations/08-regression-testing-and-ci.md))* The idea first appears for prompts, as a small set of high-value cases run on every change and watched in production-like conditions. *(Extended in [lesson 04.9](04-prompt-context-engineering/09-iterating-and-debugging-prompts.md#32-assertions-snapshots-and-canary-cases))*

Canary deployment

Route a small traffic share to the new version, compare, then ramp.

Introduced in 11C.1 Deploying LLM Services
Canary document

A document planted in a corpus containing a unique canary string; if the string appears in an output, log or trace, it signals unauthorised retrieval or exfiltration.

Introduced in 12.7 Securing RAG Data, Keys and the AI Supply Chain
Canary eval

Production-sampled quality checks used during progressive rollout.

Introduced in 11C.2 CI/CD for Prompts, Models and Evals
Canary example

A judge test case with an unambiguous known verdict that must always pass.

Introduced in 10A.5 Calibrating and Validating Judges
Canary pointer

The release pointer that sends a small, sticky share of users to the candidate version; clearing it is the rollback

Introduced in 11C.2 CI/CD for Prompts, Models and Evals
Canary probe

A scheduled known-query smoke test against production.

Introduced in 10A.9 Offline vs Online Evaluation
Canary prompt

A fixed input run on a schedule to detect silent model changes

Introduced in 14A.5 The Incident Process for AI Systems
Canary queries

A fixed set of known-answer queries run continuously against production as a smoke test for retrieval regressions.

Introduced in 06.10 Evaluating and Tuning Retrieval
Canary request

A fixed probe request with known expected behaviour, run continuously.

Introduced in 11A.2 Metrics, Dashboards, SLOs and Alerting
Canary rollout / shadow traffic

Releasing a new version to a small share of real users first (canary), or running it on real requests in the background without showing its results (shadow traffic).

Introduced in 02.10 Limitations and Failure Modes
Canary string

An injected marker token whose appearance in output proves a leak; distinct from canary test cases.

Introduced in 10A.10 Evaluation Platforms, Benchmarks and Building an Eval Culture
Canary test

A small scheduled production-facing job that re-runs fixed media fixtures and asserts outputs still meet contract checks — catches model/prompt/provider drift between deploys.

Introduced in 09.10 Building, Evaluating and Operating Multimodal Products
Canary test (CI)

A small keyless test kept in CI that fails first when an upgrade changes behaviour you rely on.

Introduced in 08F.17 Finish Learning from the Official Docs
Canary token

A unique random string planted in a trusted location (system prompt, private document, tool description) and scanned for downstream — its appearance in output or a tool call proves content crossed a boundary. Near-zero false positives.

Introduced in 12.2 Prompt Injection: Direct and Indirect
Cancellation counter

Task.cancelling(), incremented by cancel() and decremented by uncancel().

Introduced in 01C.2 Synchronous vs Asynchronous Programming and the asyncio Event Loop
Cancellation counter (cancelling / uncancel)

A per-task count of cancellation requests that lets asyncio.timeout and TaskGroup tell their own cancellation from an outside one.

Introduced in 01C.2 Synchronous vs Asynchronous Programming and the asyncio Event Loop
CancelledError

Raised inside a task at its next await after task.cancel(); inherits BaseException.

Introduced in 01B.3 Async Python: async/await and the Event Loop
Candidate case

A draft case built from a trace, not yet reviewed

Introduced in 11A.4 Production Traces into Eval Datasets
candidate depth (candidate_k)

How many results each first-stage retriever returns before fusion (candidate_k).

Introduced in 07.2 Retrieval Strategies for RAG
Candidate memory

A proposed memory that the store has not yet accepted

Introduced in 08B.4 Long-Term Memory and Memory Operations
Candidate set

The top-k hits each retriever returns before fusion; depth determines what fusion can possibly rank.

Introduced in 06.8 Hybrid Search
Canonical arguments

Arguments normalised (sorted keys, normalised numbers) so equal calls hash equally

Introduced in 08A.7 Tool Safety in the Loop: Idempotency, Validation and Truncation
Canonical home

The original, authoritative location of a post — your own domain or a custom-domain publishing platform — that syndicated copies point back to.

Introduced in 14B.4 Writing and Learning in Public
Canonical message format

Your own provider-neutral representation of a conversation, converted to each provider's request shape at the edges of your code.

Introduced in 03.2 Messages, Roles and Conversation State
Canonical tokenization

The single split that a tokenizer's encoder produces for a given text, out of the many possible splits into vocabulary tokens.

Introduced in 02.2 Tokens and Tokenization
Canonical transcript model

Your own Transcript/Segment data shape that every provider's response is parsed into, keeping downstream stages provider-agnostic.

Introduced in 09.4 Speech-to-Text
Canonical types

Your own provider-neutral data types (messages made of parts, requests, responses, usage, errors) that the rest of your application uses instead of any provider's.

Introduced in 03.11 Building a Provider-Agnostic Client
Canonical URI

The standard form of a server's address used as the resource value

Introduced in 08E.3 Remote MCP: OAuth, Gateways and Many Servers
Canonical URL

The <link rel="canonical"> tag telling search engines and aggregators which version of a piece of content is the original.

Introduced in 14B.4 Writing and Learning in Public
Canonical vs compatibility equivalence

Same character written differently vs visually-similar-but-distinct characters.

Introduced in 05.5 Cleaning and Normalization
Cap and degrade

Stepping a tenant down (cheaper model, skipped rewrite and verify) as it nears its budget, then refusing with 429 at the cap, instead of one hard cliff.

Introduced in 07.11 Production RAG: Security, Freshness, Cost and Operations
Capability (Pydantic AI)

A reusable bundle of tools/hooks/instructions/model-settings snapped onto an agent.

Introduced in 08F.1 Agent Frameworks and SDKs
Capability analysis

Evaluating a component by what it *can do* (legs, tools, egress) rather than by what it was told to do.

Introduced in 12.1 Threat Modelling LLM Applications
Capability attenuation

Passing a narrower credential when delegating work to a sub-agent — the sub-agent literally cannot do what the parent can.

Introduced in 12.6 Securing Tools, Agents and MCP
Capability description

A YAML/JSON declaration of a component's data access, untrusted-input exposure, egress and tool attributes, consumed by threatmodel.py.

Introduced in 12.1 Threat Modelling LLM Applications
Capability eval / regression eval

An eval that starts at a low pass rate and measures what the system can't do yet / one that stays near 100% and guards what already works.

Introduced in 10A.1 Why Evals Matter: The Evaluation Mindset
Capability negotiation

How each side learns what the other supports, so neither uses a feature the other lacks. In 2026-07-28, per request, not once per connection

Introduced in 08E.2 MCP in Depth: Primitives, Servers, Clients and Transports
Capability probe

A small script that sends the exact features your app uses (response_format, tools, streaming, vision) to a new endpoint and asserts the results, because "OpenAI-compatible" does not guarantee them ([7.1](11c-deployment-reliability-and-lifecycle/06-open-weight-and-local-models.md#71-the-openai-compatible-surface-and-the-provider-swap)).

Introduced in 11C.6 Open-Weight and Local Models
Capability registry

A configuration file that maps application-level model aliases to ordered chains of concrete models and records what each supports (tools, forced tool choice, structured output, images, PDFs, limits).

Introduced in 03.11 Building a Provider-Agnostic Client
Capability statement

Honest description of what the AI can do, can't do, and what good looks like.

Introduced in 13A.3 AI UX II: Trust, Transparency, Feedback and Human-in-the-Loop
Capability vs regression eval

Capability evals report progress on unsolved cases; regression evals gate on cases that already pass.

Introduced in 10A.8 Regression Testing, CI and Experiment Tracking
caplog

Fixture capturing logging records for assertions.

Introduced in 01B.8 Testing with pytest
Capstone

The module's integration project: one shippable AI product built from everything earlier modules taught.

Introduced in 13B.1 Capstone Planning and Scoping
Capstone rubric

The eight-criterion, four-level self/peer assessment introduced here and applied in 13B.2–13B.6.

Introduced in 13B.1 Capstone Planning and Scoping
capstone.yaml

The machine-readable plan file lints by scope_check.py and scaffolds by scaffold.py.

Introduced in 13B.1 Capstone Planning and Scoping
capsys / capfd

Fixtures capturing Python-level / file-descriptor-level stdout/stderr.

Introduced in 01B.8 Testing with pytest
Captioner

The Pattern-2 seam: turns raw media into caption/OCR/transcript text for the caption channel.

Introduced in 09.9 Multimodal Embeddings and Retrieval
Cardinality

Number of distinct values a field takes — decides index-worthiness.

Introduced in 05.8 Metadata Design
Career ladder

A published framework mapping levels to scope, ambiguity and impact (e.g., GitLab's, levels.fyi's).

Introduced in 14B.1 The AI Engineering Landscape: Roles, Teams and Career Paths
Carry-forward

Quoting a high-importance victim turn's user/assistant text verbatim into the pinned block before it is summarized, so protection survives compaction.

Introduced in 04.7 Context Engineering: Managing Context Over Time
Carry-over effect

A treatment's lingering influence after it ends.

Introduced in 10A.9 Offline vs Online Evaluation
cascade (Inspect)

An Inspect scorer that runs named scoring stages in order and stops at the first that passes a threshold, so a cheap check can settle easy cases before an expensive grader; earlier stages must not produce false positives. *(Introduced in [lesson 10B.10](10b-eval-frameworks/10-inspect-scorers-metrics-and-epochs.md#58-cascade-cheap-first-expensive-only-when-needed))* *(Extended in [lesson 10B.11](10b-eval-frameworks/11-inspect-model-grading.md#93-cheap-checks-first-cascade))*

Cascade / chained pipeline

STT → LLM → TTS architecture where each stage is separate.

Introduced in 09.7 Realtime Voice Agents
Cascaded pipeline

Voice agent built as separate STT → LLM → TTS stages orchestrated by your application.

Introduced in 09.6 Audio-Native Models and Realtime Foundations
CASE

SQL's if/elif/else expression.

Introduced in 00.7 SQL Basics with SQLite
Case study card

The fixed template for capturing a product/incident: problem, system-as-described, metrics-as-reported, failures, transfers, dated sources.

Introduced in 13A.7 Case Studies: How Real AI Products Are Built, and How They Fail
Case-type taxonomy

The recurring categories of eval cases: happy path, edge, adversarial, ambiguous, unanswerable, multilingual, long, noisy, multi-turn, conflicting instructions, safety, negative.

Introduced in 10A.2 Building Evaluation Datasets
casefold

Aggressive caseless string mapping for comparison (ß→ss, Turkish İ→i+dot); prefer over lower() for matching.

Introduced in 01A.2 Numbers, Strings and Text
Cassette (record/replay)

A file of real request and response pairs, recorded once and replayed by tests with no network.

Introduced in 03.10 Logging, Debugging and Testing LLM Code
Cassette lint

A test that scans committed cassettes for keys, cookies, account IDs, machine fingerprints and the values of your own key variables.

Introduced in 03.10 Logging, Debugging and Testing LLM Code
cast

Identity function asserting a type to the checker — no conversion, no check.

Introduced in 01A.10 Type Hints and Writing Readable Code
Catastrophic backtracking / ReDoS

Exponential regex blowup from nested quantifiers on non-matching input; a denial-of-service risk on untrusted text.

Introduced in 01A.2 Numbers, Strings and Text
Catastrophic forgetting

The tendency of narrow fine-tuning to degrade a model's previously-held general abilities; requires a general-ability regression eval to detect.

Introduced in 13A.8 Decision Frameworks: Eight Decisions Plus One
Causal mask

Blocks each token from attending to later tokens.

Introduced in 02.4 Attention and Transformers
CDN

Worldwide edge cache network serving static/cacheable content near users.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Cedar

A policy language with permit and forbid policies and built-in default deny and forbid-wins semantics

Introduced in 14A.6 Agent Inventory, Risk and Autonomy Classification, and Policy-as-Code
Ceiling / floor effect

A dataset so easy everyone scores ~100% or so hard ~0% that it can't discriminate systems.

Introduced in 10A.2 Building Evaluation Datasets
CER / WER

Character/Word Error Rate: edit distance normalised by reference length; WER is harsher because one wrong letter fails a whole word.

Introduced in 05.4 OCR and Scanned Documents
Certificate / CA

The server's domain credential, signed by a trusted certificate authority (e.g. Let's Encrypt).

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Certification versus conformance

Certification is an accredited third party's audited statement that a management system meets a standard; conformance is a self-declared alignment with no external audit

Introduced in 12.9 Responsible AI, Policy and Compliance
CFP (call for proposals)

The structured process by which conferences and meetups select talk proposals: announce, submit, review, decide, prepare.

Introduced in 14B.4 Writing and Learning in Public
Chain of command

OpenAI Model Spec's authority ordering for conflicting instructions: Root > System > Developer > User > Guideline > untrusted data.

Introduced in 04.5 System Prompts, Roles and Personas
Chain of custody

The logged record of who accessed incident evidence, when and why — treated with the same rigour as legal evidence access.

Introduced in 12.10 Security Operations, Incident Response and the Safety Checklist
Chain-of-thought (CoT) prompting

Prompting a model to write out intermediate steps (for example "Let's think step by step") so the visible answer includes its working.

Introduced in 02.8 Reasoning Models
Chain-of-thought faithfulness

Whether a model's written reasoning reflects the real cause of its answer; research shows it often doesn't.

Introduced in 02.8 Reasoning Models
Chained assignment

a = b = value — one object, two names.

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
Chained comparison

a < b < c meaning a < b and b < c, middle evaluated once.

Introduced in 01A.3 Control Flow and Functions
ChainMap

Stack of dicts: lookup falls through layers, writes hit the first.

Introduced in 01A.4 Core Data Structures: Lists, Tuples, Dictionaries and Sets
ChainStep / prompt_chain

One step of a workflow: either deterministic code over the state or a model call with optional schema, gate and retry budget.

Introduced in 08A.9 Workflows vs Agents
Change data capture (CDC)

Reading a database's transaction log to learn inserts/updates/deletes in order.

Introduced in 05.1 Data Sources, Formats and the Ingestion Mindset
Change feed / delta API

A resumable cursor of source changes (Drive changes, Graph deltaLink, replication slots).

Introduced in 05.9 Ingestion Pipelines and Incremental Updates
Change risk tier

A classification (low, medium, high) that sets how much evidence a change needs

Introduced in 14A.2 Review Standards, Coding and Prompt Conventions
Change tiers (T0–T4)

Risk-graded change management: review depth matched to blast radius, from no review to change board.

Introduced in 11C.4 Operating LLM Systems: Governance, Incidents and the Production Checklist
Change-risk class

A label for what changed, used to select the required gates.

Introduced in 11C.2 CI/CD for Prompts, Models and Evals
Changelog

A human-readable record of what changed in each release.

Introduced in 00.4 GitHub and Collaboration
Channel (graph state)

The storage and update rule behind one state key: last value wins by default, or a reducer merges.

Introduced in 08F.10 LangGraph Fundamentals
Channel (mono/stereo)

Number of simultaneous audio recordings; ASR uses mono.

Introduced in 09.4 Speech-to-Text
Chaos test

Deliberate fault injection (timeouts, 429s, malformed output) to verify resilience mechanisms fire.

Introduced in 11C.3 Fallbacks, Gateways and Reliability
Characterisation test

A test that records what existing code actually does for an input, used to pin behaviour before changing it.

Introduced in 04.8 Prompt Patterns for Common Tasks
Chargeback

Actually billing tenants for their LLM usage.

Introduced in 11A.2 Metrics, Dashboards, SLOs and Alerting
Chars-per-page

Extracted characters divided by page count — a heuristic band for detecting missed text layers or duplicated extraction.

Introduced in 05.10 Data Quality Checks
charset-normalizer

Encoding detector for unknown bytes (from_bytes).

Introduced in 05.5 Cleaning and Normalization
Chat model (LangChain)

An object (a BaseChatModel subclass, such as ChatOpenAI) that takes messages and returns an AIMessage through the Runnable interface.

Introduced in 08F.5 Chat Models, Messages and Content Blocks
Chat template / generation config

The generation_config.json file shipped with an open model, holding its default generation settings (such as temperature, top-p and end-of-reply tokens).

Introduced in 02.1 Neural Network Basics
ChatAdapter

The provider seam: four methods translating canonical events to wire format.

Introduced in 08A.2 The Tool Loop: From One Round Trip to an Agent
Chatbot

A conversational interface that answers in text and rarely takes actions

Introduced in 08A.1 Agent Definitions, the Autonomy Spectrum and Agent Anatomy
ChatPromptTemplate

An ordered list of message templates; invoke returns a ChatPromptValue that chat models accept.

Introduced in 08F.6 Prompts, Output Parsers and Structured Output
Check digits

Identifier checksums (IBAN mod-97, VAT formats) that catch misreads.

Introduced in 09.2 Document Understanding with Vision Models
Check function

A framework-free function from plain values to a score and a reason, written once and wrapped thinly for each eval framework so that one definition of "correct" serves all of them.

Introduced in 10B.17 DeepEval or Inspect? Choosing, Combining and Migrating (optional)
Check-then-act

A decision made from a check that can be stale by the time the action runs (TOCTOU is the file and permission form).

Introduced in 01C.3 Race Conditions and Thread Safety
Checklist judge

A judge that returns per-criterion yes/no verdicts aggregated in code, trading a single score for auditability.

Introduced in 10A.4 LLM-as-Judge
Checkpoint

A saved snapshot of a model's weights (and optimizer state) during training, used to recover from failures or pick the best version.

Introduced in 02.6 How LLMs Are Trained
Checkpoint (graph state)

A saved snapshot of a thread's state at a super-step boundary.

Introduced in 08F.11 Persistence, Durable Execution and Memory
Checkpoint grader

Grader applied to intermediate world states in long-running tasks, enabling partial credit.

Introduced in 10A.7 Evaluating Agents, Tool Use and Multimodal Systems
Checkpoint namespace

The checkpoint_ns identifying which graph or subgraph a checkpoint belongs to ("" for the parent).

Introduced in 08F.11 Persistence, Durable Execution and Memory
Checkpointer

LangGraph component that persists graph state so runs resume across processes.

Introduced in 08F.1 Agent Frameworks and SDKs
Checkpointing

Saving agent, sandbox, store and event state at turn boundaries so a long sample can resume after a crash.

Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)
checkpoints

A stream mode that emits one get_state-shaped snapshot per checkpoint; needs a checkpointer.

Introduced in 08F.14 The Functional API and Streaming
Cherry-pick

Copy one commit onto another branch.

Introduced in 00.3 Git Fundamentals
Chinchilla-optimal

The compute-optimal balance found by DeepMind's Chinchilla study: roughly 20 training tokens per model parameter.

Introduced in 02.6 How LLMs Are Trained
Choice shuffling

Reordering a multiple-choice sample's options and rewriting its target letters to match (shuffle_choices), with a fixed integer seed (shuffle_choices=True is unseeded and changes on every run or retry), to break position bias; logged letters then refer to the shuffled order.

Introduced in 10B.9 Inspect Datasets, Solvers and Task Configuration (optional)
Chroma collection / embedding function

Chroma's record namespace holding ids, documents, embeddings and metadata, with an HNSW (self-hosted) or SPANN (Cloud) index configuration.

Introduced in 06.5 Vector Databases: Choosing and Using One
Chunk

A contiguous piece of a document sized for embedding, retrieval and prompting.

Introduced in 05.6 Chunking Strategies
Chunk coherence

Whether a chunk is self-contained and readable alone — heuristic or LLM-judged.

Introduced in 05.10 Data Quality Checks
Chunk coverage

The union of [char_start, char_end) spans vs source length — detects content that never reached the index.

Introduced in 05.10 Data Quality Checks
Chunk expansion

Query-time widening of a retrieval hit to its neighbours or parent before the generator sees it.

Introduced in 05.7 Advanced and Document-Specific Chunking
Chunk ID

A deterministic content-addressed identifier: doc + chunker version + text hash + occurrence; position deliberately excluded.

Introduced in 05.6 Chunking Strategies
Chunk smoother / pacer

Buffer + steady-cadence release of bursty provider chunks.

Introduced in 13A.2 AI UX I: Streaming, Latency and Perceived Speed
Chunk-level diffing

Comparing old vs new chunk_ids so only changed chunks re-embed.

Introduced in 05.9 Ingestion Pipelines and Incremental Updates
chunk_size and chunk_overlap

The maximum chunk length and the amount repeated between neighbours, both measured by length_function (characters by default).

Introduced in 08F.9 RAG with LangChain
ChunkDerived / derived fields

Enrichment output stored on the chunk record — topics, summary, entities, generated title, hypothetical questions, sentiment; only short filterable fields reach the vector payload.

Introduced in 05.8 Metadata Design
Chunking

The strategy deciding where chunk boundaries fall.

Introduced in 05.6 Chunking Strategies
Chunking recipe

A per-document-type splitter that finds the document's atomic semantic unit and packs it into chunks via the shared Block toolkit.

Introduced in 05.7 Advanced and Document-Specific Chunking
ChunkingConfig / stable chunk ID

A versioned record of chunking strategy name, version and parameters; part of every chunk's lineage so strategy changes are explicit.

Introduced in 05.7 Advanced and Document-Specific Chunking
Churn

Rapid releases and breaking changes that make framework upgrades risky.

Introduced in 08F.1 Agent Frameworks and SDKs
Churn layer

The volatile surface of names, APIs, model IDs and versions that changes quarterly.

Introduced in 14A.8 Skills Map and Gap Analysis
CI gate

An eval wired into continuous integration that blocks merges below a threshold.

Introduced in 10A.1 Why Evals Matter: The Evaluation Mindset
ci_wilson

Inspect's Wilson score interval metric for binary scores, bounded in [0, 1] and recommended by the docs over the t interval of ci() for accuracy.

Introduced in 10B.10 Inspect Scorers, Metrics, Epochs and the Statistics Inspect Reports (optional)
CID font

A PDF font addressed by character-collection IDs rather than single-byte codes; common for CJK text and embedded subsets.

Introduced in 05.2 Parsing PDFs
CIMD

Preferred OAuth client-registration mechanism for MCP clients; an HTTPS URL acts as the client_id. Dynamic Client Registration is deprecated.

Introduced in 08E.1 The Model Context Protocol (MCP)
Circuit breaker

A switch that fails fast on a dead dependency, with closed/open/half-open states.

Introduced in 01B.9 Retries, Timeouts, Backoff and Resilience
Circular wait

A cycle of parties each waiting for a resource held by the next.

Introduced in 01C.4 Deadlocks, Livelock and Starvation
Citation

A claim→source link (label → chunk/doc/section); verified properly in 07.5.

Introduced in 07.1 RAG Architecture: From Question to Grounded Answer
Citation by ID

Asking the model to cite document identifiers, then verifying them in code.

Introduced in 04.6 Context Engineering: Selecting and Ordering Context
Citation precision

Share of citations whose evidence verifies / share of claims carrying a supporting citation; the ALCE-style citation-quality metrics.

Introduced in 07.5 Citations and Attribution
Citation recall / coverage

Claims carrying a supporting citation ÷ all claims.

Introduced in 07.5 Citations and Attribution
Citation validity

Whether a cited quote actually appears in and supports the source.

Introduced in 14B.8 Interview Prep III: Take-Homes, Behavioural Rounds and Offers
Citation verification

Checking that cited evidence actually supports the generated claim rather than merely sharing a topic.

Introduced in 14B.7 Interview Prep II: LLM System Design
Citations

A provider feature that links parts of a model's answer to exact passages in the documents supplied, returned as structured locations (page, character or block ranges).

Introduced in 03.6 Images, PDFs and Files
citations_delta

Anthropic streaming event carrying one citation at a time.

Introduced in 07.5 Citations and Attribution
CitedAnswer

cite.py model: answer text + its ClaimCitations.

Introduced in 07.5 Citations and Attribution
Claim extraction / verification

The two-step faithfulness procedure: an LLM first breaks an answer into atomic claims, then each claim is checked for entailment against the retrieved contexts.

Introduced in 07.9 Evaluating RAG
Claim span

Char offsets in the answer text covering a claim and its marker.

Introduced in 07.5 Citations and Attribution
Claim test

A small script that turns one sentence of the documentation into an executable check against the installed package, with only the judge faked, so the docs' promise is tested rather than trusted.

Introduced in 10B.18 Finish Learning DeepEval and Inspect from the Official Docs
Claim-level attribution

Binding each individual claim in an answer to the specific source(s) supporting it, as opposed to citing a whole document once.

Introduced in 07.5 Citations and Attribution
Claim-level faithfulness

Decomposing the answer into atomic claims and verifying each against context — the default for decisions.

Introduced in 10A.6 Evaluating RAG Pipelines in Depth
Claim-level judge

A judge pipeline that extracts atomic factual claims and verifies each against evidence, yielding per-claim precision/recall.

Introduced in 10A.4 LLM-as-Judge
ClaimCitation

cite.py model: one [n] marker bound to a claim span + evidence list.

Introduced in 07.5 Citations and Attribution
ClaimEvidence

cite.py model: the quoted span expected inside a chunk.

Introduced in 07.5 Citations and Attribution
Clarifying question

A single, structured ask for missing information, rendered as chips/form/options rather than open chat.

Introduced in 13A.4 AI UX III: Failure States, Edge Cases and Inclusive Design
Clarifying questions

Questions asked before starting a take-home to resolve ambiguity.

Introduced in 14B.8 Interview Prep III: Take-Homes, Behavioural Rounds and Offers
ClashEval

A benchmark of how language models weigh retrieved evidence against their own prior knowledge.

Introduced in 04.12 Prompt Hub, Research Findings and Model Notes
Class

A blueprint defining attributes and methods; instances are objects created from it.

Introduced in 01A.6 Classes, Dataclasses and Enums
Class attribute

A name defined in the class body — one value shared by all instances.

Introduced in 01A.6 Classes, Dataclasses and Enums
Classification (new/changed/unchanged/deleted)

The manifest diff that decides what work a run must do.

Introduced in 05.9 Ingestion Pipelines and Incremental Updates
Classifier (DeepEval)

A DeepEval judge that assigns one label from a closed set (for example RefusalClassifier), passing or failing only when the test case names an expected label.

Introduced in 10B.3 Judges in DeepEval: Models, G-Eval, DAG and Custom Metrics
Classifier router

A small model or embedding+kNN that predicts the route from request features.

Introduced in 11B.5 Model Selection and Routing
Claude Agent SDK

Anthropic's Python (claude-agent-sdk) and TypeScript library that runs the Claude Code agent as a child process, with its tools, permissions, hooks, subagents and sessions

Introduced in 08F.3 Claude Agent SDK
Claude Code harness

The agent loop, tools, permission system and context management that Claude Code runs and the SDK exposes

Introduced in 08F.3 Claude Agent SDK
CLAUDE.md / GEMINI.md

Vendor-specific instruction files; CLAUDE.md can import AGENTS.md.

Introduced in 08A.15 Coding and Computer-Use Agents
ClaudeAgentOptions

The configuration object for the Claude Agent SDK (permissions, tools, hooks, subagents, skills).

Introduced in 08F.1 Agent Frameworks and SDKs
`ClaudeSDKClient`

A client that keeps one session open for multi-turn conversations and supports interrupt()

Introduced in 08F.3 Claude Agent SDK
Cleaning / normalization

Removing extraction noise and canonicalizing form while preserving content.

Introduced in 05.5 Cleaning and Normalization
Cleaning magnitude

len(cleaned)/len(raw) per doc — detects over-cleaning that destroys signal.

Introduced in 05.10 Data Quality Checks
Cleaning pipeline

Ordered pure-function steps with change log, dry-run, idempotency.

Introduced in 05.5 Cleaning and Normalization
Cleanup mode

The index option (None, incremental, full, scoped_full) that decides which stored chunks are deleted.

Introduced in 08F.9 RAG with LangChain
CLI eval harness

A tool that runs dataset×provider matrices from a config file or task definition (promptfoo, Inspect AI).

Introduced in 10A.10 Evaluation Platforms, Benchmarks and Building an Eval Culture
Client

Whatever initiates an exchange — browser, mobile app, script, or another server.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Client event / server event

JSON messages you send to / receive from a realtime API.

Introduced in 09.7 Realtime Voice Agents
Client lifecycle

Creating a client once, reusing it, and closing it when done.

Introduced in 03.1 The Provider APIs and Your First Calls
Client tool

A tool *you* define and execute, returning results in a follow-up request.

Introduced in 08A.8 Provider Built-in and Server-Side Tools
Client-held state

Conversation history kept by your app and resent each turn

Introduced in 08B.1 Kinds of State and Session Management
Client-managed state

Your application stores the conversation and sends all of it on every request.

Introduced in 03.2 Messages, Roles and Conversation State
Client-managed vs server-managed conversation state

Whether your application stores the history and resends it every turn, or the provider stores it and you reference it by an ID (previous_response_id, a conversation ID, previous_interaction_id).

Introduced in 03.2 Messages, Roles and Conversation State
Client-side rate limiter

Code in your application that makes requests wait until they fit within known provider limits, so they aren't rejected with a 429.

Introduced in 03.8 Errors, Rate Limits, Timeouts and Retries
Client-side TTFVT / abandonment during the wait

Time from submit to first readable text measured in the browser; share of requests the user stops or leaves before the first token.

Introduced in 13A.2 AI UX I: Streaming, Latency and Perceived Speed
Cliff

The initial period (usually 1 year) before any equity vests.

Introduced in 14B.8 Interview Prep III: Take-Homes, Behavioural Rounds and Offers
Clipboard tools

pbcopy/pbpaste (macOS), xclip/wl-copy (Linux), clip/Set-Clipboard (Windows) — pipe text to/from the clipboard.

Introduced in 00.2 The Terminal and Shell
Clock drift

Capture and playback clocks running at slightly different rates, slowly desynchronising an audio stream until a fixed-depth buffer under/overflows.

Introduced in 09.6 Audio-Native Models and Realtime Foundations
Clopper–Pearson interval

The exact binomial confidence interval; with zero events in n trials its one-sided 95% upper bound is 1 − 0.05^(1/n).

Introduced in 10A.11 Evaluating Agent Memory and Context Management
Closed / proprietary model

A model offered only as a service; its weights are not published.

Introduced in 02.9 Model Landscape
Closing-tag injection

Untrusted content containing your closing tag (e.g. </document>) to break out of its wrapper early.

Introduced in 04.4 Structuring Prompts: XML, Markdown and Delimiters
Closure

A function that keeps access to the variables of the scope it was defined in, even after that scope returns.

Introduced in 01A.3 Control Flow and Functions
Cloud / background coding agent

A coding agent that runs in the vendor's cloud and returns a branch or pull request for your review (Copilot coding agent, Codex cloud).

Introduced in 08A.15 Coding and Computer-Use Agents
Cloud development environment

A remote Linux machine you develop on through a browser.

Introduced in 00.1 Setting Up Your Computer for Development
Cloud platform

A hyperscaler service that resells models from many labs inside your cloud account, such as Amazon Bedrock, Google's Gemini Enterprise Agent Platform or Microsoft Foundry.

Introduced in 02.9 Model Landscape
Cloud-platform client

An SDK client class for a provider's models on Azure, AWS or Google Cloud.

Introduced in 03.1 The Provider APIs and Your First Calls
Cloud-synced folder

A folder kept in sync by iCloud/OneDrive/Drive/Dropbox — unsafe for code.

Introduced in 00.1 Setting Up Your Computer for Development
Cluster bootstrap

A bootstrap that resamples whole groups, giving honest intervals for grouped cases.

Introduced in 10A.2 Building Evaluation Datasets
Cluster size

The number of similar traces a surviving case represents

Introduced in 11A.4 Production Traces into Eval Datasets
Clustered standard error

A standard error that treats groups of related samples (questions from one document, tickets from one customer) as the independent units, so it is not understated when grouped samples pass or fail together; Inspect's stderr(cluster="key").

Introduced in 10B.10 Inspect Scorers, Metrics, Epochs and the Statistics Inspect Reports (optional)
COALESCE/NULLIF/IFNULL

NULL-handling functions.

Introduced in 00.7 SQL Basics with SQLite
Code point

A character's Unicode number (e.g. U+00E9); ord/chr convert to and from it.

Introduced in 01A.2 Numbers, Strings and Text
Code review

A colleague reading your diff and leaving comments before it merges.

Introduced in 00.9 Working Like an Engineer: Debugging, Asking for Help and Learning Habits
Code smell

A surface pattern suggesting deeper design trouble (long function, magic number, dead code…).

Introduced in 01A.10 Type Hints and Writing Readable Code
Code-interpreter agent

An agent that writes and runs code in a provider-managed sandbox for data tasks.

Introduced in 08A.15 Coding and Computer-Use Agents
Code-switching

Mixing languages within a single utterance or conversation.

Introduced in 09.4 Speech-to-Text
Codec / container

The algorithm that compresses audio samples (MP3, AAC, Opus, FLAC); distinct from the container file format.

Introduced in 09.4 Speech-to-Text
Codec token

A discrete unit representing a short slice (~20–80 ms) of audio in a neural codec.

Introduced in 09.5 Text-to-Speech
CODEOWNERS

A file mapping paths or globs to the people who must review changes to them.

Introduced in 00.4 GitHub and Collaboration
Coding agent

An LLM loop that edits code via file/shell/search tools and verifies with tests.

Introduced in 08A.15 Coding and Computer-Use Agents
Coding-agent harness

A batteries-included agent for software work — file/shell tools, repo context, planning — such as the Claude Agent SDK or coding CLIs.

Introduced in 08F.1 Agent Frameworks and SDKs
Coercion

Converting a value to the expected type ("17"→17); happens in lax mode before constraint checks.

Introduced in 01B.6 Data Validation with Pydantic
Coffman conditions

The four conditions that must all hold for a deadlock: mutual exclusion, hold and wait, no preemption and circular wait; breaking any one prevents deadlock.

Introduced in 01C.4 Deadlocks, Livelock and Starvation
Cognitive forcing function

Design that makes users engage analytically before seeing AI's answer, reducing over-reliance.

Introduced in 13A.3 AI UX II: Trust, Transparency, Feedback and Human-in-the-Loop
Cohen's kappa

A statistic measuring agreement between two labellers beyond what chance would produce; used to check eval-set label quality.

Introduced in 06.10 Evaluating and Tuning Retrieval
Cold start

The delay before a stopped/suspended instance serves its first request.

Introduced in 11C.1 Deploying LLM Services
`collect()`

Inspect's backend-independent concurrency helper for running independent agent calls with spans.

Introduced in 10B.14 Tools and Agents in Inspect: Custom Tools, MCP, react() and Multi-Agent Systems (optional)
Collection dunders

__len__, __iter__, __getitem__, __contains__ — making an object quack like a built-in.

Introduced in 01A.6 Classes, Dataclasses and Enums
collections.abc interfaces

Iterable, Iterator, Sequence, Mapping, Callable — behaviour contracts usable with isinstance unsubscripted.

Introduced in 01A.10 Type Hints and Writing Readable Code
ColPali / ColQwen / ColQwen3

Late-interaction models embedding page images as patch-vector sets for visual document retrieval.

Introduced in 09.9 Multimodal Embeddings and Retrieval
Column group (Inspect)

A predefined list of dataframe column definitions, such as SampleSummary or EvalModel, combined with + to choose what a log dataframe contains.

Introduced in 10B.13 Inspect Logs, Analysis and Extending Inspect (optional)
Column-major results

Chroma's query result shape: one list per result field (ids, documents, distances, …) parallel to the query list, rather than one object per hit.

Introduced in 06.5 Vector Databases: Choosing and Using One
Column/field filter

Restricting a query clause to specific fields (FTS5 title:x, ES title:x).

Introduced in 06.7 Keyword Search and BM25
Columnar layout

Storing each field of many records as one packed array instead of one object per record.

Introduced in 01C.6 Python Memory Management
CombSUM / CombMNZ / CombMAX

Classic metasearch fusion family (Fox & Shaw 1994): CombSUM sums per-list scores, CombMNZ multiplies that sum by the number of lists containing the document, CombMAX takes the maximum — all assume comparable score scales.

Introduced in 06.8 Hybrid Search
Command

A program the shell runs, plus its flags and arguments.

Introduced in 00.2 The Terminal and Shell
Command (from a tool)

A return value that updates agent state; it must include a ToolMessage for the call it answers.

Introduced in 08F.8 Tools and create_agent
Command (LangGraph)

A return value (and a resume input) carrying a state update, a goto and optionally a graph target.

Introduced in 08F.10 LangGraph Fundamentals
Command Palette

VS Code's searchable command launcher (Cmd/Ctrl+Shift+P).

Introduced in 00.1 Setting Up Your Computer for Development
Command substitution

$(cmd) — inserts a command's output as text.

Introduced in 00.2 The Terminal and Shell
Commit

Git object: tree + parent(s) + author/committer + timestamp + message.

Introduced in 00.3 Git Fundamentals
Commit hash

A commit's content fingerprint; how you name any revision.

Introduced in 00.3 Git Fundamentals
Commit tag

A readable name (for example prod) attached to a prompt commit, used to promote and roll back.

Introduced in 08F.6 Prompts, Output Parsers and Structured Output
Common Crawl

A non-profit that regularly crawls the public web and publishes the data for free; the main raw source of web text for most LLM training data. Its crawler is called CCBot.

Introduced in 02.6 How LLMs Are Trained
Community profile

GitHub's checklist (README, LICENSE, CoC, CONTRIBUTING, templates) scoring a public repo's health.

Introduced in 14B.3 GitHub Presence and Project READMEs
Compaction

Replacing older parts of a conversation with a condensed summary to save tokens, either in your own code or through a provider feature. Also called summarization. *(Introduced in [lesson 02.7](02-how-llms-work/07-context-windows.md#45-summarization-and-compaction))* Inspect agents rewrite the model-visible conversation to fit the context while keeping the full history outside the model input. *(Extended in [lesson 10B.14](10b-eval-frameworks/14-inspect-tools-and-agents.md#terms-introduced-in-this-lesson))*

Compaction item / block

OpenAI's opaque, encrypted summary of earlier context, produced by context_management or responses.compact, which you pass back unchanged.

Introduced in 03.2 Messages, Roles and Conversation State
Compaction probe

A question about an item planted in a history before compaction (an error string, a file path, a decision, a constraint, the next step), asked afterwards to test whether it survived.

Introduced in 10A.11 Evaluating Agent Memory and Context Management
Companion package

A separate package in a framework's family, with its own owner, version and Python floor. DeepTeam is DeepEval's legacy red-teaming companion; Inspect Evals, Harbor, SWE, Scout, Viz, Flow, Petri, Cyber, inspect-k8s-sandbox and inspect-sandboxes are Inspect companions.

Introduced in 10B.1 The Eval Framework Track: DeepEval, Inspect AI and Your Setup
Companion-chatbot statute

A US state law (California SB 243, New York's AI-companion law and similar) imposing AI-identity notices, safety protocols and minor-specific duties on operators of chatbots designed for ongoing social or emotional interaction.

Introduced in 12.9 Responsible AI, Policy and Compliance
`compare()`

DeepEval's runner for ArenaTestCases that returns win counts per contestant

Introduced in 10B.3 Judges in DeepEval: Models, G-Eval, DAG and Custom Metrics
Compare-and-set

An atomic "write if the current value is what I read" operation

Introduced in 08B.1 Kinds of State and Session Management
Compare-and-swap (CAS)

Set a value only if it still equals what you read, retrying on failure; a version column is CAS for databases.

Introduced in 01C.3 Race Conditions and Thread Safety
Compatibility probe

Sending a modern request first and falling back to initialize only if the server is not a modern one

Introduced in 08E.2 MCP in Depth: Primitives, Servers, Clients and Transports
Compatible release (~=)

PEP 440 specifier meaning "same prefix, last segment may rise".

Introduced in 01B.1 Project Setup with uv: Environments, Dependencies and Tooling
Competency

A behaviour or skill a company believes predicts job success; the unit behavioural rounds are scored against (e.g. Amazon's Leadership Principles).

Introduced in 14B.8 Interview Prep III: Take-Homes, Behavioural Rounds and Offers
Competency mapping

Tagging each story with the competencies it can prove.

Introduced in 14B.8 Interview Prep III: Take-Homes, Behavioural Rounds and Offers
Competency matrix

A table of skills × levels where every rating is backed by evidence.

Introduced in 14A.8 Skills Map and Gap Analysis
Complacency

Reduced monitoring of automation due to over-trust.

Introduced in 13A.3 AI UX II: Trust, Transparency, Feedback and Human-in-the-Loop
completion status

Execution metadata describing whether the sample completed normally; distinct from task correctness.

Introduced in 10B.16 Evaluating Agents with Inspect, and the Inspect Ecosystem (optional)
Completion window

The time a provider has to finish a Batch API job (24 hours) before unfinished requests expire.

Introduced in 03.9 Async, Concurrency and Batch Processing
complexity

GPT Image 2.6's planning-effort parameter (low/medium/high, default high), independent of quality and free.

Introduced in 09.3 Image Generation and Editing
Component (of a harness)

One replaceable part with a small interface: tools, context and memory, guardrails and permissions, budgets and stop conditions, tracing or evals

Introduced in 08A.4 Harness Engineering: Everything Around the Model
component score

A secondary outcome score measuring a useful subgoal without redefining strict success.

Introduced in 10B.16 Evaluating Agents with Inspect, and the Inspect Ecosystem (optional)
Component-level evaluation (DeepEval)

Evaluating one span inside a traced application as its own test case, using metrics attached with @observe, update_current_span or next_*_span; component failures roll up into the golden's result.

Introduced in 10B.5 DeepEval Tracing, Component-Level Evals and Agent Evaluation
Composite index

One score combining many benchmarks with chosen weights.

Introduced in 02.9 Model Landscape
Composite key

A primary/foreign key spanning multiple columns.

Introduced in 00.7 SQL Basics with SQLite
Composite metric

A custom metric that runs other metrics inside its own measure() and combines their results, for example a cheap gate followed by a judge grade.

Introduced in 10B.3 Judges in DeepEval: Models, G-Eval, DAG and Custom Metrics
Composite score

A single averaged quality number — fine for dashboards, dangerous for decisions.

Introduced in 10A.1 Why Evals Matter: The Evaluation Mindset
Composite tool

A single tool that performs a whole multi-step workflow behind intent-level parameters.

Introduced in 08A.6 Designing Tools Models Can Use
Composition

Holding collaborators as attributes instead of inheriting them.

Introduced in 01A.6 Classes, Dataclasses and Enums
Compounding error rate

The pⁿ decline of end-to-end success as the number of model-controlled steps grows.

Introduced in 08A.9 Workflows vs Agents
Compounding errors

Per-step success probabilities multiplying across an agent's steps, so long chains fail often.

Introduced in 08A.14 Reliable, Safe and Observable Agents
Comprehension

A single expression that builds a collection by transforming/filtering an iterable ([x for x in xs if c]).

Introduced in 01A.5 Comprehensions, Iterators and Generators
Comprehension scope

The hidden per-comprehension variable scope (loop vars don't leak).

Introduced in 01A.11 Coming from PHP, JavaScript or Java: Side by Side
Compression ratio

1 − (tokens after compaction / tokens before); always reported next to fidelity, never alone.

Introduced in 10A.11 Evaluating Agent Memory and Context Management
computed_field

A property serialised like a field (derived values in dumps and schema).

Introduced in 01B.6 Data Validation with Pydantic
computer tool / computer_call

OpenAI's Responses API computer-use tool and its action items.

Introduced in 08A.15 Coding and Computer-Use Agents
Computer-use agent

An agent that observes a screen (screenshot) and acts via mouse/keyboard.

Introduced in 08A.15 Coding and Computer-Use Agents
computer_toolset_20260801

Anthropic's 17-member desktop control and 27-member browser toolsets (GA on Claude 5.5+ models).

Introduced in 08A.15 Coding and Computer-Use Agents
computer_use tool

Gemini's built-in computer-use tool (Interactions API, normalized 0–999 coordinates).

Introduced in 08A.15 Coding and Computer-Use Agents
ComputerToolset / driver

OpenAI SDK helper: you implement a driver, the SDK runs the loop.

Introduced in 08A.15 Coding and Computer-Use Agents
Concurrency

Structuring a program as independently progressing tasks so that many can be in progress at once (dealing with many things); a property of design, not of hardware. Not the same as parallelism.

Introduced in 01C.1 Concurrency, Parallelism and Context Switching
concurrent.interpreters

The Python 3.14 standard-library module (PEP 734) for creating and running subinterpreters.

Introduced in 01C.5 The Global Interpreter Lock (GIL)
Condense step

The LLM call that rewrites a conversational follow-up into a standalone query and decides the turn's route; also called query decontextualization.

Introduced in 07.6 Conversational RAG
Condition

A lock plus waiting for a predicate about shared state.

Introduced in 01C.3 Race Conditions and Thread Safety
Conditional edge

An edge whose destination is computed from the state by a routing function.

Introduced in 08F.10 LangGraph Fundamentals
Conditional expression

x if cond else y — an if that produces a value.

Introduced in 01A.3 Control Flow and Functions
Conditional request

ETag/If-None-Match or Last-Modified/If-Modified-Since fetches that get 304 Not Modified for unchanged content.

Introduced in 05.1 Data Sources, Formats and the Ingestion Mindset
Confidence interval (success rate)

A range that the true success rate probably lies in, wide when the task set is small

Introduced in 08D.2 Hands-On: Two-Agent vs Single-Agent, Built, Traced and Evaluated
Confidence proxy

Measurable signal correlated with correctness (retrieval score, judge disagreement).

Introduced in 13A.3 AI UX II: Trust, Transparency, Feedback and Human-in-the-Loop
Confidence score

Per-word/region self-assessed accuracy (0–100 or 0–1).

Introduced in 05.4 OCR and Scanned Documents
Confidence-interval width by n

How precisely a pass rate is known: ~1.96·√(p(1−p)/n); the sizing argument.

Introduced in 10A.2 Building Evaluation Datasets
Confidence-threshold routing

Low-confidence outputs automatically routed to human review.

Introduced in 13A.3 AI UX II: Trust, Transparency, Feedback and Human-in-the-Loop
Confident AI

The company that maintains DeepEval, and its optional hosted platform for shared test-run reports, datasets, prompt versions, online evaluation, annotation, governance and monitoring; DeepEval works locally without it, and several DeepEval commands upload to it. *(Introduced in [lesson 10B.2](10b-eval-frameworks/02-deepeval-fundamentals.md#11-a-library-a-test-runner-a-command-line-and-an-optional-platform))* *(Extended in [lesson 10B.7](10b-eval-frameworks/07-deepeval-red-teaming-ci-and-platform.md#part-5-confident-ai-at-survey-level))*

confident-trace

The OpenTelemetry-first tracing dependency underneath DeepEval 4.x tracing; framework integrations and @observe both feed spans through it.

Introduced in 10B.5 DeepEval Tracing, Component-Level Evals and Agent Evaluation
config.json fields

hidden_size, num_hidden_layers, num_attention_heads, num_key_value_heads, intermediate_size, vocab_size, max_position_embeddings.

Introduced in 02.4 Attention and Transformers
ConfigDict / model_config

Class-level options: extra, frozen, strict, str_strip_whitespace, validate_assignment, from_attributes, use_enum_values, validate_by_name/validate_by_alias (the older populate_by_name spelling is still seen).

Introduced in 01B.6 Data Validation with Pydantic
Configurable alternatives

A Runnable whose parts (fields or whole sub-Runnables) the caller can swap per call through config["configurable"].

Introduced in 08F.7 Runnables and LCEL
Configurable model

An init_chat_model result whose model and settings are chosen per call through config["configurable"], controlled by configurable_fields and config_prefix.

Introduced in 08F.5 Chat Models, Messages and Content Blocks
Configuration baseline

A documented secure-default configuration — enabled tools, allowed providers, data classes, guardrail settings — that new features copy and drift is measured against.

Introduced in 12.10 Security Operations, Incident Response and the Safety Checklist
Configuration layers (Inspect)

The precedence of task settings, lowest to highest: the task definition, task_with(), environment variables (INSPECT_EVAL_*, read by the CLI), then eval() arguments or CLI flags.

Introduced in 10B.9 Inspect Datasets, Solvers and Task Configuration (optional)
Confinement

Keeping state private to one thread or task so nothing is shared and no lock is needed.

Introduced in 01C.3 Race Conditions and Thread Safety
Confirmation gate

Executor code that stops a sensitive action until a person (or policy) approves it, checked before each action in a batch

Introduced in 08A.15 Coding and Computer-Use Agents
Conflict resolution policy

Written precedence rules for contradictory sources (account state, recency, authority) encoded in instructions rather than left to the model.

Introduced in 04.6 Context Engineering: Selecting and Ordering Context
Conflicting memories

Two live memories for one key that cannot both be true

Introduced in 08B.5 Memory Failure Modes, Context Rot, Production State Stores and AGENTS.md-style Files
Conformance eval

A deterministic test that the agent stays within the rules of its autonomy level

Introduced in 08A.1 Agent Definitions, the Autonomy Spectrum and Agent Anatomy
Conformance scan

A check that every model, provider and region in use appears in the registry

Introduced in 14A.1 Approved Providers, Models and Regions
conftest.py

Per-directory pytest plugin file for shared fixtures and hooks.

Introduced in 01B.8 Testing with pytest
Confused deputy

A vulnerability where a tool acts with more authority than the requesting user is entitled to.

Introduced in 08A.6 Designing Tools Models Can Use
Confusion matrix

A table of true-vs-predicted label counts; rows are truth, columns are predictions, and every classification metric derives from it.

Introduced in 10A.3 Deterministic Metrics and Code-Based Graders
Connect / read / write / pool timeout

The four timeouts of an HTTP client. The read timeout is the longest allowed gap between received bytes, not the total time of the request.

Introduced in 03.8 Errors, Rate Limits, Timeouts and Retries
Connection leak

A stream left unclosed (for example after break without with), keeping its pooled connection until the pool is exhausted.

Introduced in 03.3 Streaming Responses
Connection pool

A cache of open keep-alive connections a client reuses across requests, avoiding a new TCP+TLS handshake each time.

Introduced in 01B.5 HTTP Clients with httpx
Console script / entry point

A [project.scripts] mapping that installs an executable calling module:function — how aitoolkit lands on PATH.

Introduced in 01B.10 Logging, Debugging and Packaging: Putting the Toolkit Together
Consolidation

Merging several small tools on one resource into fewer, more capable tools (often via an action parameter).

Introduced in 08A.6 Designing Tools Models Can Use
Constant (convention)

UPPER_CASE name intended never to be reassigned.

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
Constant folding

A compile-time optimisation where the interpreter precomputes expressions built only from literals (e.g. "op" + "en" becomes the single constant "open"), which is why is comparisons on such values are meaningless.

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
Constitutional AI

Anthropic's training method in which a written list of principles guides AI self-critique and AI-generated harmlessness feedback, replacing human harmlessness labels (helpfulness labels in the original paper still came from people).

Introduced in 02.6 How LLMs Are Trained
Constitutional Classifiers

Safeguard models Anthropic trains on synthetic data generated from a written constitution of permitted/restricted content, used to detect and block jailbreak attempts around the base model.

Introduced in 12.3 Jailbreaks and Model-Level Safety
Constrained decoding

Masking illegal tokens during sampling so output must follow a schema or grammar.

Introduced in 02.5 Generation and Sampling
Constraint

A rule enforced on write (NOT NULL, UNIQUE, CHECK, FK, PK).

Introduced in 00.7 SQL Basics with SQLite
Constraint recall (briefs)

The share of the user's constraints that survive into a delegation brief; lost constraints make workers do good work on the wrong problem.

Introduced in 10A.12 Evaluating Multi-Agent Systems and Validating User Simulators
Constraint-retention test

A test that plants a rule early and checks the model still obeys it many turns later.

Introduced in 04.7 Context Engineering: Managing Context Over Time
Container / Docker

App+deps packaged to run identically anywhere / managed app platform / per-request functions / rented virtual machine.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Containment

Stopping incident damage before diagnosing it — for LLM services, flags, caps, routes and degraded modes.

Introduced in 11C.4 Operating LLM Systems: Governance, Incidents and the Production Checklist
Contamination

See [Data contamination](#data-contamination).

content / content_blocks / .text

The raw payload, the standard typed view of it, and the joined text of an AIMessage.

Introduced in 08F.5 Chat Models, Messages and Content Blocks
Content block / content part / Part

A typed piece of a turn's content (text, image, tool call, thinking and so on); Anthropic, OpenAI and Gemini respectively use these names.

Introduced in 03.2 Messages, Roles and Conversation State
Content capture

Opt-in gen_ai.input/output.messages attributes holding prompt/completion text — off by default.

Introduced in 11A.1 Tracing and Observability for LLM Applications
Content Credentials (C2PA)

Cryptographically signed provenance metadata attached to a media file, recording how it was created or edited.

Introduced in 02.9 Model Landscape
Content freshness vs index freshness

The two clocks of freshness: how new the source is vs how new what the retriever serves is (alias lag).

Introduced in 07.11 Production RAG: Security, Freshness, Cost and Operations
Content hash

A sha256 fingerprint of the full prompt source (system + user-turn templates), logged with every call for integrity.

Introduced in 04.10 Prompt Templates, Versioning and a Prompt Library
Content negotiation

Client and server agreeing on a representation via Accept and Content-Type headers.

Introduced in 00.6 HTTP, REST and JSON
Content Provenance API

OpenAI's POST /v1/content_provenance_checks for verifying C2PA/SynthID signals.

Introduced in 09.3 Image Generation and Editing
Content stream

The per-page drawing program inside a PDF containing text, line and image operations.

Introduced in 05.2 Parsing PDFs
Content-addressed ID

An identifier derived from content (e.g. a hash of chunk text) rather than position or randomness, so identical content gets identical IDs across runs.

Introduced in 05.8 Metadata Design
Content-block events

Anthropic's streaming style: content_block_start / _delta / _stop per block inside message_start … message_stop.

Introduced in 03.3 Streaming Responses
Content-hash cache

A text-hash → vector store keyed by the full embed spec, so unchanged chunks are never re-embedded.

Introduced in 06.2 Embedding Pipelines: Batching, Caching, Scale and Cost
Content-Type

The header declaring a body's media type, such as application/json or text/event-stream.

Introduced in 00.6 HTTP, REST and JSON
content_sha

The fingerprint of dataset bytes that versions the labels in every run record.

Introduced in 10A.2 Building Evaluation Datasets
Context

Everything in the context window for a call — instructions, examples, documents, history, tool results.

Introduced in 04.1 Anatomy of a Good Prompt
Context anxiety

A model wrapping work up early because it believes it is near its context limit.

Introduced in 08A.4 Harness Engineering: Everything Around the Model
Context append events

GPT-Live session.instructions/thinking/commentary.append for mid-call context.

Introduced in 09.7 Realtime Voice Agents
Context awareness

A model's ability to track how much of its context window remains; harnesses should tell it whether compaction or note-saving is available so it does not wrap up early.

Introduced in 04.7 Context Engineering: Managing Context Over Time
Context budget

Your per-request allocation of the context window across competing sources plus reserved output/reasoning room.

Introduced in 04.6 Context Engineering: Selecting and Ordering Context
Context caching

Storing a large prompt prefix with the provider so later requests reuse it, with a time to live.

Introduced in 04.12 Prompt Hub, Research Findings and Model Notes
Context construction

The documents path's front end: token chunking, embedding, context-quality scoring and nearest-neighbour grouping into contexts.

Introduced in 10B.6 DeepEval Datasets, Synthetic Data, Conversation Simulation and Benchmarks
Context diff

Comparing the retrieved hit ids against the ids that actually reached the prompt — catches retrieved-but-dropped failures.

Introduced in 07.10 RAG Failure Modes and Debugging
Context editing

Anthropic's rule-based clearing of old tool results or thinking blocks, as distinct from summarization.

Introduced in 04.7 Context Engineering: Managing Context Over Time
Context engineering

The practice of deciding exactly which tokens a model sees for each request (instructions, examples, documents, history, tool results), in what order and format.

Introduced in 02.7 Context Windows
Context extension (position interpolation, YaRN)

Techniques that rescale positions so a model handles longer contexts than it was pretrained on.

Introduced in 02.4 Attention and Transformers
Context isolation

Workers see only their task + own tools, never the lead's conversation ([04.7](04-prompt-context-engineering/07-managing-context-over-time.md)).

Introduced in 08A.10 Agent Patterns: ReAct, Plan-and-Execute, Routing and Orchestrator-Workers
Context manager

An object with __enter__/__exit__ used via with, guaranteeing cleanup on success and exception.

Introduced in 01A.8 Errors, Exceptions, Debugging and Logging
Context noise sensitivity

The score delta when irrelevant distractor chunks are injected into the context — a robustness measure of attention/dilution fragility that retrieval metrics cannot see.

Introduced in 10A.6 Evaluating RAG Pipelines in Depth
Context poisoning / distraction / confusion / clash

Breunig's four long-context failure modes: an error enters the context; the context grows so long the model over-focuses on it; superfluous content is used; new content conflicts with old ([1.6](04-prompt-context-engineering/06-context-selection-and-ordering.md#16-a-shared-vocabulary-four-ways-context-fails-four-moves-that-fix-it)).

Introduced in 04.6 Context Engineering: Selecting and Ordering Context
Context precision / context recall

RAG-evaluation metrics over the retrieved context: precision weights each rank by relevance; recall estimates what fraction of the answer's information was retrieved (claims-based, needs an LLM or reference).

Introduced in 06.10 Evaluating and Tuning Retrieval
Context precision/recall

RAG-eval metrics over the retrieved context (RAGAS-style); recall is claims-based and needs an LLM.

Introduced in 06.10 Evaluating and Tuning Retrieval
Context propagation (DeepEval tracing)

How a DeepEval span finds its parent trace through Python contextvars; it survives asyncio.gather and asyncio.to_thread but not a plain thread-pool call, which silently loses the span unless the context is copied.

Introduced in 10B.5 DeepEval Tracing, Component-Level Evals and Agent Evaluation
Context reset

Starting a fresh agent with a structured handoff instead of summarising the old context.

Introduced in 08A.4 Harness Engineering: Everything Around the Model
Context rot

The degradation of a model's accuracy and recall as its context grows longer, even when the task stays the same.

Introduced in 02.7 Context Windows
Context stuffing

Putting all available material into a long prompt instead of retrieving only the relevant parts.

Introduced in 02.7 Context Windows
Context switch

Stopping one thread or process and resuming another by saving and restoring CPU state; the main cost is the cold caches afterwards.

Introduced in 01C.1 Concurrency, Parallelism and Context Switching
Context view

The copy of the history the model actually sees on one turn; the full history is kept unchanged

Introduced in 08A.4 Harness Engineering: Everything Around the Model
Context vs weights

The two physical levers for changing an LLM: what you send it per call (context) versus the trained parameters (weights). All of prompting/RAG change context; only training changes weights.

Introduced in 13A.8 Decision Frameworks: Eight Decisions Plus One
Context window

The maximum number of tokens a model can handle in one request, usually covering both input and output.

Introduced in 02.2 Tokens and Tokenization
Context window compression

Summarising old audio tokens so realtime sessions can exceed the raw context limit.

Introduced in 09.6 Audio-Native Models and Realtime Foundations
Context-transfer completeness

Whether the receiving agent got every required field with the right value and nothing invented, measured by field recall, value fidelity (defined only where a required field arrived) and hallucinated-field rate on the payload it actually saw.

Introduced in 10A.12 Evaluating Multi-Agent Systems and Validating User Simulators
contextId

A2A's server-generated ID grouping related tasks across interactions.

Introduced in 08D.3 Multi-Agent Systems
ContextItem / Context

A retrieved chunk labelled [n] for citation, and the assembled token-budgeted set of them.

Introduced in 07.1 RAG Architecture: From Question to Grounded Answer
contextlib.asynccontextmanager

Decorator turning an async generator into an async context manager.

Introduced in 01B.3 Async Python: async/await and the Event Loop
contextlib.suppress

A context manager that visibly ignores named exceptions.

Introduced in 01A.8 Errors, Exceptions, Debugging and Logging
Contextual embedding (hidden state)

A token's vector after transformer layers, which depends on its surrounding text.

Introduced in 02.3 Embeddings
Contextual embeddings / contextual BM25

The vector-index half of contextual retrieval: the generated context sentence is prepended before the chunk is embedded.

Introduced in 05.7 Advanced and Document-Specific Chunking
Contextual retrieval

Prepending a short LLM-generated context sentence to each chunk before embedding and BM25 indexing, so the indexed text carries its document's situation (Anthropic, 2024).

Introduced in 05.7 Advanced and Document-Specific Chunking
ContextualCompressionRetriever

A classic retriever that applies a document compressor to another retriever's results.

Introduced in 08F.9 RAG with LangChain
contextvars

Per-task context (request IDs, tracing) propagated automatically, including into threads.

Introduced in 01B.3 Async Python: async/await and the Event Loop
Continuation request

A new request that includes the partial answer and asks the model to continue from it. For Claude 4.6 and later the partial answer goes inside a user message.

Introduced in 03.3 Streaming Responses
Continuation token

An opaque checkpoint the Gemini server issues during very long generations; sending it back continues the generation.

Introduced in 03.3 Streaming Responses
Continued pretraining

Further next-token training of an existing model on raw domain text.

Introduced in 02.6 How LLMs Are Trained
Continuous batching

Serving many requests together, adding and removing them from the batch at every step.

Introduced in 02.5 Generation and Sampling
Contract test

A test against a real server speaking the real wire format (link 03.10).

Introduced in 01B.8 Testing with pytest
Contract test suite

One test suite run against every adapter, so that all of them must behave the same on the same inputs.

Introduced in 03.11 Building a Provider-Agnostic Client
Contractor test / brief test

Showing a prompt to a smart person with no task context to check whether they could execute it.

Introduced in 04.1 Anatomy of a Good Prompt
Contrastive learning

Training that pulls matching pairs together and pushes non-matching examples apart.

Introduced in 02.3 Embeddings
CONTRIBUTING.md

A repository file telling contributors how to set up, code and submit changes.

Introduced in 00.4 GitHub and Collaboration
Contribution graph

The green calendar on your profile recording qualifying contributions (commits, PRs, issues, reviews, forks, new repos).

Introduced in 14B.3 GitHub Presence and Project READMEs
Control characters

C0/C1 chars that affect rendering or indicate corruption.

Introduced in 05.5 Cleaning and Normalization
Control flow

Deciding which code runs: if, loops, match.

Introduced in 01A.3 Control Flow and Functions
Control solver

A solver with a known expected score, such as an oracle that answers with the target (100%) or a null solver that answers nothing (0%, never chance), plus for multiple choice a constant-letter control whose score is the dataset's real chance baseline, run to prove a task and scorer work before trusting a real model's number.

Introduced in 10B.9 Inspect Datasets, Solvers and Task Configuration (optional)
Control-instrument test

A small probe suite designed to make controls fire and validate their wiring, not to measure representative capability.

Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)
Controlled vocabulary

A canonical, validated set of allowed values for tags/topics so filtering never fragments into near-duplicate spellings.

Introduced in 05.8 Metadata Design
Convenience accessor

An SDK shortcut such as output_text or .text that extracts the text from a response.

Introduced in 03.1 The Provider APIs and Your First Calls
Conventional Commits

type(scope): subject message convention for machine-readable history.

Introduced in 00.3 Git Fundamentals
Convergence

The point in training at which the loss stops improving meaningfully.

Introduced in 02.1 Neural Network Basics
Conversation history

The earlier user and assistant turns (and tool calls and results) that an application re-sends with each request so the model can follow a conversation.

Introduced in 02.7 Context Windows
Conversation state

The messages, tool calls and tool results of a chat; for the model's eyes and rewritable

Introduced in 08B.1 Kinds of State and Session Management
Conversation-level metric

An evaluation metric scoring the whole dialogue — task success, turns-to-resolution, contradiction rate — rather than any single turn.

Introduced in 07.6 Conversational RAG
Conversation-test harness

A scripted multi-turn test runner with deterministic checks (contains/regex/word-count) on replies, run at pass rates over multiple runs.

Introduced in 04.5 System Prompts, Roles and Personas
conversation.item.truncate

OpenAI event marking how much of an interrupted audio item the user heard.

Introduced in 09.7 Realtime Voice Agents
Conversational RAG

RAG that works across multi-turn dialogues: follow-ups are rewritten into standalone queries, each turn decides whether to retrieve, and session state carries filters, entities and retrieved chunks forward.

Introduced in 07.6 Conversational RAG
ConversationalGEval

G-Eval applied to a whole ConversationalTestCase, returning one score for the conversation rather than one per turn.

Introduced in 10B.3 Judges in DeepEval: Models, G-Eval, DAG and Custom Metrics
ConversationalGolden

A scenario for the ConversationSimulator: scenario, hidden expected outcome, persona and context, with no turns until a simulation fills them.

Introduced in 10B.6 DeepEval Datasets, Synthetic Data, Conversation Simulation and Benchmarks
ConversationalTestCase (DeepEval)

DeepEval's multi-turn test case: a non-empty list of user and assistant Turns plus fields such as chatbot_role, scenario and expected_outcome.

Introduced in 10B.2 DeepEval Fundamentals: Test Cases, Metrics and the Test Runner
Conversations API

OpenAI's durable server-side conversation object, whose items you can add, list and delete, and which responses.create(conversation=...) reads and updates automatically.

Introduced in 03.2 Messages, Roles and Conversation State
ConversationSimulator

DeepEval's class that plays a user with a model, calls your callback and returns conversational test cases.

Introduced in 10B.6 DeepEval Datasets, Synthetic Data, Conversation Simulation and Benchmarks
ConversationToolCorrectnessMetric

A DeepEval 4.3.6 metric that scores the tools an assistant called on each turn against ConversationalTestCase.expected_tools, optionally pinned to assistant turns with ToolCall.turn, without calling a judge; the final score is the mean of the per-turn checks.

Introduced in 10B.5 DeepEval Tracing, Component-Level Evals and Agent Evaluation
Conversion rate

Share of applications reaching the next stage; the metric that tells you where the search is breaking.

Introduced in 14B.5 Résumé, LinkedIn and the Job Search
Convex combination

Score fusion with a single weight, α·dense + (1−α)·lexical, over normalised scores; Bruch et al. (2023) found it beat RRF when tuned on a few labelled queries.

Introduced in 06.8 Hybrid Search
Convoy effect

I/O-bound threads repeatedly queuing for the GIL behind a CPU-bound thread, so their short operations take far longer than their own work.

Introduced in 01C.5 The Global Interpreter Lock (GIL)
Cooldown (minimum release age)

A resolver setting that ignores releases newer than N days.

Introduced in 08F.15 Patterns, Pitfalls and Migration
Cooperative cancellation

A tool checking a cancel signal between small slices of work so it can stop when asked

Introduced in 08A.6 Designing Tools Models Can Use
Cooperative scheduling

Tasks yield control voluntarily at await; the loop can't preempt.

Introduced in 01B.3 Async Python: async/await and the Event Loop
Coordinated disclosure

Reporting a vulnerability privately first and publishing only after a fix window or agreed date.

Introduced in 12.8 Red Teaming and Security Testing
Coordination tokens

Tokens spent planning, briefing, routing, verifying or re-reading other agents' results, tagged at instrumentation time so the coordination ratio can be computed.

Introduced in 10A.12 Evaluating Multi-Agent Systems and Validating User Simulators
Copilot (product shape)

An AI that suggests inside an existing workflow while the human completes the action.

Introduced in 13A.1 Product Thinking for AI Features: What to Build and When Not to Use AI
copy / deepcopy

Shallow (shared mutables) vs deep (fully independent) object copies.

Introduced in 01A.6 Classes, Dataclasses and Enums
Copy catalogue

The locale-keyed string table (copy_catalog.py) that all user-facing failure copy resolves through.

Introduced in 13A.4 AI UX III: Failure States, Edge Cases and Inclusive Design
Copy rule (DeepEval)

In their default async mode, evaluate() and assert_test() (and therefore deepeval test run) rebuild each metric for every test case by calling its constructor with the instance attributes named like the constructor's arguments, so a custom metric must store each argument under its own name or the copy silently gets the default; the sequential mode (run_async=False) uses your objects and does not copy. Also called the attribute-copy trap.

Introduced in 10B.2 DeepEval Fundamentals: Test Cases, Metrics and the Test Runner
Copy tax

The CPU time and extra memory spent serializing and copying data to hand it to another process.

Introduced in 01C.7 Shared Memory and Inter-Process Communication
Copy-on-Write (CoW)

Pandas 3 semantics: every derived object behaves as a copy, so chained assignment silently does nothing.

Introduced in 01B.11 NumPy and pandas Essentials for AI Work
Copyleft

A licence family (GPL, AGPL, LGPL) requiring derivatives to be shared under the same licence — the opposite of permissive.

Introduced in 13B.6 Shipping and Operating Your Capstone: Launch, Demo and Iterate
Coroutine (lazy)

The object an async def call returns; it does nothing until awaited or scheduled, unlike an eager JS Promise.

Introduced in 01A.11 Coming from PHP, JavaScript or Java: Side by Side
Coroutine function / coroutine object

An async def function / the paused computation calling it returns, before anything runs.

Introduced in 01B.3 Async Python: async/await and the Event Loop
Corpus audit

The pre-build investigation: inventory, sampling, questions, gaps, sensitivity, licences, ACLs, freshness.

Introduced in 05.1 Data Sources, Formats and the Ingestion Mindset
Corpus licensing risk

Dependence on licensed content whose access can be disputed, revoked or litigated — the corpus is the moat and the liability.

Introduced in 13A.7 Case Studies: How Real AI Products Are Built, and How They Fail
Corpus probe

Searching the parsed source documents (before chunking/indexing) for an answer, proving whether ingestion kept the content at all.

Introduced in 07.10 RAG Failure Modes and Debugging
Corpus/index drift

Changes in the retrieval corpus or index.

Introduced in 10A.9 Offline vs Online Evaluation
Correction rate

The share of memory-using turns in which the user corrects a memory-based statement ("no, I moved"); an online sign of stale or false memories.

Introduced in 10A.11 Evaluating Agent Memory and Context Management
Correlation ID

An ID you generate and send with a request, such as OpenAI's X-Client-Request-Id, so you can find it in the provider's logs later. It does not prevent duplicates. See also [Trace ID (correlation ID)](#trace-id-correlation-id).

Introduced in 03.8 Errors, Rate Limits, Timeouts and Retries
Correlation vs absolute calibration

Ranking agreement vs whether scores land on the right values — different properties.

Introduced in 10A.5 Calibrating and Validating Judges
CORS

Browser read-gate for cross-origin fetch; scripts read only same scheme+host+port by default; OPTIONS preflight for non-simple requests.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
CORSMiddleware

Browser cross-origin guard; configure exact origins, never * with credentials.

Introduced in 01B.7 FastAPI Basics: Building a Small API
Cortex Search service

Snowflake's SQL-defined hybrid (vector+keyword) search service with semantic reranking.

Introduced in 07.7 Managed RAG: Provider Tools, Platforms and Frameworks
Cosine distance

1 − cosine similarity; returned by pgvector <=>, Chroma's cosine space, sqlite-vec's vec_distance_cosine and Annoy's angular — lower means more similar despite the cosine-sounding name.

Introduced in 06.3 Similarity Metrics and Nearest-Neighbour Search
cosine similarity

Angle-based similarity (a·b)/(‖a‖·‖b‖) in [-1, 1]; equals the dot product for unit-normalized vectors.

Introduced in 01B.11 NumPy and pandas Essentials for AI Work
Cost allocation tag

A key and value (team, feature) attached to spend so it can be grouped

Introduced in 11B.6 Budgets, Quotas, Cost Attribution and Chargeback
Cost guard

A pre-call check that estimates the worst-case cost (input plus the full output ceiling) and downgrades to a cheaper model or refuses when it is over a cap.

Introduced in 03.7 Token Counting, Cost Tracking and Prompt Caching
Cost limit

A dollar cap computed from token usage and model price data.

Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)
Cost model

The equation (and its fixed-cost counterpart) that turns a workload shape into a dollar estimate.

Introduced in 11B.1 Cost and Latency Optimization
Cost of being wrong

What it costs if the chosen option turns out to be the wrong one, stated for each direction ([10.1](13a-product-engineering/08-prompting-rag-or-fine-tuning.md#101-four-habits))

Introduced in 13A.8 Decision Frameworks: Eight Decisions Plus One
Cost per resolved outcome

sum(cost_usd)/count(outcome=ok) — retries/refusals/failures still bill, so success is the denominator.

Introduced in 11A.1 Tracing and Observability for LLM Applications
Cost per resolved task

Total model and non-model cost divided by successfully completed user tasks.

Introduced in 14B.7 Interview Prep II: LLM System Design
Cost per resolved ticket

Total cost (tokens + retrieval + tools + infra + amortised human review) divided by tickets resolved without escalation — the unit-economics metric.

Introduced in 13B.2 Capstone Build A: The Support Copilot
cost per successful autonomous completion

Total measured cost divided by strict completions without disallowed intervention.

Introduced in 10B.16 Evaluating Agents with Inspect, and the Inspect Ecosystem (optional)
Cost per successful task

Total cost of started tasks divided by successful outcomes — the pricing-decision number; retries, failures, review and infra all count.

Introduced in 13A.6 Product Metrics, Experiments and Unit Economics
Cost per task (online)

Total spend divided by completed agent runs, with its p95 tail; the offline version is cost per successful task ([10A.7](10a-evaluation-foundations/07-evaluating-agents-and-multimodal.md#56-task-success-rate-and-cost-per-successful-task))

Introduced in 11A.2 Metrics, Dashboards, SLOs and Alerting
Cost per ticket

Total model cost of a run divided by the tickets it handled

Introduced in 13B.4 Capstone Build D: a Tool-Using or Two-Agent App with One Outside System
Cost reconciliation

Comparing your own cost records with the provider's usage and cost data, per model and project, and explaining every difference.

Introduced in 03.7 Token Counting, Cost Tracking and Prompt Caching
Cost report

Tokens × price (dated source) → cost per request and per month at stated traffic.

Introduced in 14B.2 Portfolio Strategy: Choosing and Shaping Projects
Cost source

Whether a recorded cost was computed by you, reported by the provider, or unknown.

Introduced in 03.7 Token Counting, Cost Tracking and Prompt Caching
Cost tag

A label on a call that says which feature, team and environment pays for it

Introduced in 14A.2 Review Standards, Coding and Prompt Conventions
Cost tracker

Code that wraps each LLM call, normalizes its usage, computes the cost and records it with attribution, without ever breaking the request it measures.

Introduced in 03.7 Token Counting, Cost Tracking and Prompt Caching
Cost-quality frontier

The Pareto set of configurations trading eval score against cost per request.

Introduced in 11B.1 Cost and Latency Optimization
Count parity

len(chunks) == len(vectors) — detects partial index writes.

Introduced in 05.10 Data Quality Checks
Counter

Dict subclass specialised for counting items.

Introduced in 01A.4 Core Data Structures: Lists, Tuples, Dictionaries and Sets
Counterbalancing

Randomising and recording which system appears as A vs B across raters, so order effects cancel in human pairwise studies.

Introduced in 10A.5 Calibrating and Validating Judges
Counterfactual fairness test

A test that holds all inputs constant except a protected attribute (e.g. name, gender) and measures whether outcomes differ between variants.

Introduced in 12.9 Responsible AI, Policy and Compliance
Counterfactual flip rate

The fraction of counterfactual test cases where swapping a protected attribute changes the outcome.

Introduced in 10A.10 Evaluation Platforms, Benchmarks and Building an Eval Culture
Counterfactual replay

Attributing a failure by replacing one agent's output with a correct one, replaying the recorded upstream and re-running downstream several times to see whether the outcome changes.

Introduced in 10A.12 Evaluating Multi-Agent Systems and Validating User Simulators
Counterfactual test

A fairness test that changes only one attribute (such as a name) and checks whether the model's output changes.

Introduced in 02.10 Limitations and Failure Modes
Counting endpoint

A provider API that runs only the tokenizer on a request and returns the input token count, without generating anything. OpenAI, Anthropic and Gemini each have one, with their own rate limits.

Introduced in 03.7 Token Counting, Cost Tracking and Prompt Caching
Coverage (statement/branch)

Which lines / which branch directions your tests executed.

Introduced in 01B.8 Testing with pytest
Coverage matrix

Questions × sources × format × freshness × audience — exposes gaps and contradictions.

Introduced in 05.1 Data Sources, Formats and the Ingestion Mindset
cp314t wheel

A wheel built for the free-threaded 3.14 ABI.

Introduced in 01C.5 The Global Interpreter Lock (GIL)
cProfile / pstats

Stdlib deterministic CPU profiler and its interactive stats browser — answers "where does the time go" per function.

Introduced in 01B.10 Logging, Debugging and Packaging: Putting the Toolkit Together
CPU time / wall time

The share of real elapsed time a process spent actually executing; the diagnosis for I/O- vs CPU-bound.

Introduced in 01C.1 Concurrency, Parallelism and Context Switching
CPU time vs wall time

CPU time is the time a process actually executed on a CPU; wall time is real elapsed time. Their ratio tells I/O-bound (near 0) from CPU-bound (near 1).

Introduced in 01C.1 Concurrency, Parallelism and Context Switching
cpWER / DER

Concatenated minimum-permutation WER for diarized transcripts / diarization error rate for speaker attribution alone.

Introduced in 09.4 Speech-to-Text
crawl frontier / scope / depth

The set of URLs a crawler will visit; bounded by domain and depth caps.

Introduced in 05.3 Parsing HTML, Web Pages and Office Files
create_agent

The single agent factory of LangChain 1.x; it returns a compiled LangGraph graph and replaces AgentExecutor and the LangGraph prebuilt create_react_agent.

Introduced in 08F.4 The LangChain Ecosystem and Your Setup
create_retriever_tool

A helper in langchain_core.tools that wraps a retriever as a tool, optionally returning documents as an artifact.

Introduced in 08F.9 RAG with LangChain
Credential broker

Code that checks a request and mints a narrow, short-lived credential for one call

Introduced in 08A.5 Required Agent Security
Credential signal

What a certificate communicates to a screener — effort and exposure, not proven skill.

Introduced in 14A.8 Skills Map and Gap Analysis
Crescendo

A multi-turn jailbreak pattern that escalates gradually across turns, referencing the model's own replies.

Introduced in 12.8 Red Teaming and Security Testing
Crescendo attack

A multi-turn jailbreak that escalates through benign-seeming turns, leveraging the model's own prior outputs as context.

Introduced in 12.3 Jailbreaks and Model-Level Safety
Crew / role framework

Agents defined by role/goal that delegate to each other (CrewAI, AutoGen→MAF).

Introduced in 08F.1 Agent Frameworks and SDKs
Crew framework

A framework whose primitives are role-defined agents that delegate to each other (CrewAI, AutoGen/Microsoft Agent Framework).

Introduced in 08F.1 Agent Frameworks and SDKs
Critic / verifier agent

A second agent that checks the first's output, ideally with different tools or model.

Introduced in 08D.3 Multi-Agent Systems
Critical path

The chain of work that sets a run's wall-clock time; in a parallel fan-out it runs through the slowest branch.

Introduced in 10A.12 Evaluating Multi-Agent Systems and Validating User Simulators
Critical section

Code that must run as if it were atomic, protected by a lock or by construction.

Introduced in 01C.3 Race Conditions and Thread Safety
Critique shadowing

Using expert written reasons as gold for judge rationale evaluation.

Introduced in 10A.5 Calibrating and Validating Judges
Critique-then-score

Asking the judge to produce its analysis before committing to a score, in one call (ordered fields) or two.

Introduced in 10A.4 LLM-as-Judge
cron / launchd / Task Scheduler

Per-OS schedulers that run commands on a timetable.

Introduced in 00.2 The Terminal and Shell
Cron job (Agent Server)

A scheduled run of an assistant, with the same input each time, interpreted in UTC according to the docs.

Introduced in 11A.5 LangSmith, Testing and Deployment
Cross-agent redundancy

Tool calls that repeat an earlier identical call made by a different agent, as a share of all tool calls; invisible to per-agent redundancy checks.

Introduced in 10A.12 Evaluating Multi-Agent Systems and Validating User Simulators
Cross-attention

Attention where queries come from one sequence and keys/values from another.

Introduced in 02.4 Attention and Transformers
Cross-document consistency

Whether valid documents in the corpus contradict each other (old and new versions, conflicting figures).

Introduced in 05.10 Data Quality Checks
Cross-domain leakage

A user's memory from one context injected into an unrelated one, within the same user.

Introduced in 10A.11 Evaluating Agent Memory and Context Management
Cross-encoder

A model that reads a query and a document together in one transformer pass and outputs a relevance score.

Introduced in 06.9 Reranking
Cross-entropy

The loss function for classification and for LLM next-token prediction. It's low when the model gives high probability to the correct answer, and very high when it's confidently wrong.

Introduced in 02.1 Neural Network Basics
Cross-lingual consistency

A metamorphic check asserting the same question in different languages yields the same substance of answer.

Introduced in 10A.3 Deterministic Metrics and Code-Based Graders
Cross-modal reranker

A VLM that scores (query, candidate media) pairs after embedding recall.

Introduced in 09.9 Multimodal Embeddings and Retrieval
Cross-plugin request forgery

An injection chain where content processed under one plugin's authority triggers another plugin's capability — the confused-deputy problem applied to LLM plugins.

Introduced in 12.2 Prompt Injection: Direct and Indirect
Cross-site scripting (XSS)

Attacker-controlled text rendered as HTML in a web page, so scripts inside it run in other users' browsers; prevented by escaping output, including model output.

Introduced in 02.10 Limitations and Failure Modes
Crossover volume

The request volume at which a fine-tune's permanently lower per-request cost repays its one-time training and eval cost — the number that decides the economics.

Introduced in 13A.8 Decision Frameworks: Eight Decisions Plus One
Crosswalk

A table that maps the same risk between two editions or lists, for example LLM06:2025 to LLM03:2026

Introduced in 12.8 Red Teaming and Security Testing
CSS selector / XPath

Query languages for finding elements in a parsed tree.

Introduced in 05.3 Parsing HTML, Web Pages and Office Files
CSV dialect

Named bundle of delimiter/quotechar/escapechar/lineterminator/quoting rules (excel, excel_tab, custom).

Introduced in 01A.9 Files, Paths, JSON and CSV
csv.field_size_limit()

Per-field size cap (131,072 characters by default); exceeding it raises csv.Error.

Introduced in 01A.9 Files, Paths, JSON and CSV
CTE (WITH)

Named intermediate result / aggregate over a row partition without collapsing rows.

Introduced in 00.7 SQL Basics with SQLite
Cumulative usage

Usage figures that are running totals, as in Anthropic's message_delta; take the latest value, never add them.

Introduced in 03.3 Streaming Responses
Curated vs comprehensive history

In the google-genai chat helper: only the valid turns (what is sent to the model) vs every turn, including blocked or empty ones.

Introduced in 03.2 Messages, Roles and Conversation State
curl

Command-line HTTP client.

Introduced in 00.2 The Terminal and Shell
Cursor

An opaque "continue after this" token for stable pagination.

Introduced in 00.6 HTTP, REST and JSON
Cursor pagination

Pagination via an opaque cursor/next_cursor token rather than page numbers ([glossary](glossary.md)).

Introduced in 00.8 Reading API Documentation
custom

A stream mode that emits whatever your code sends through the stream writer.

Introduced in 08F.14 The Functional API and Streaming
Custom content document

An Anthropic document made of your own list of content blocks, cited block by block instead of sentence by sentence.

Introduced in 03.6 Images, PDFs and Files
Custom event

An event your own step emits with dispatch_custom_event or adispatch_custom_event, delivered through the callback system.

Introduced in 08F.7 Runnables and LCEL
Custom exception

A user-defined exception class, usually under an AppError root.

Introduced in 01A.8 Errors, Exceptions, Debugging and Logging
Custom metric (DeepEval)

A BaseMetric or BaseConversationalMetric subclass you write, implementing measure, a_measure, a threshold and a __name__, which DeepEval runs like any built-in metric.

Introduced in 10B.3 Judges in DeepEval: Models, G-Eval, DAG and Custom Metrics
Custom model provider (@modelapi)

A ModelAPI subclass registered with @modelapi(name=...) so any system (an internal endpoint, evalkit's call_model) can be evaluated as name/model with Inspect's retries, concurrency and caching.

Introduced in 10B.12 Running Inspect Evals for Real: Models, Configuration, Concurrency, Caching, Errors and Eval Sets (optional)
Custom provider (`@modelapi`)

Your own ModelAPI subclass registered by name, so any system can be evaluated as name/model

Introduced in 10B.12 Running Inspect Evals for Real: Models, Configuration, Concurrency, Caching, Errors and Eval Sets (optional)
Custom workflow

A hand-built StateGraph mixing deterministic nodes, model nodes and agents.

Introduced in 08F.13 Subgraphs and Multi-Agent Systems
custom_id / key

Your own ID attached to a request in a batch and returned with its result; the reliable way to match results, which can arrive in any order.

Introduced in 03.9 Async, Concurrency and Batch Processing
custom_id reconciliation

Joining batch results to inputs by an explicit ID, since output is unordered.

Introduced in 06.2 Embedding Pipelines: Batching, Caching, Scale and Cost
Cycle (route) / repeated delegation

A loop longer than a two-agent bounce: an agent that comes back after one or more others (A to B to C to A), or the same brief sent to the same agent again and again.

Introduced in 10A.12 Evaluating Multi-Agent Systems and Validating User Simulators
Cyclic garbage collector

The gc mechanism that finds and frees unreachable cycles among container objects, organized in generations.

Introduced in 01C.6 Python Memory Management

D

"Done"

The professional bar: tested, reviewed, documented — not just "ran once".

Introduced in 00.9 Working Like an Engineer: Debugging, Asking for Help and Learning Habits
--dry-run

Run the pipeline, report what would change, write nothing.

Introduced in 01A.9 Files, Paths, JSON and CSV
.dockerignore

Keeps build context small and secrets/VCS out of image layers.

Introduced in 11C.1 Deploying LLM Services
@dynamic_prompt

A decorator for middleware that computes the system prompt for each model call from the request.

Introduced in 08F.8 Tools and create_agent
[DONE] sentinel

The non-JSON data: [DONE] line that ends Chat Completions streams; parsers must not json.loads it.

Introduced in 03.3 Streaming Responses
DAG

Directed acyclic graph — the shape of commit history.

Introduced in 00.3 Git Fundamentals
DAG metric (DeepEval)

DAGMetric: a decision graph of task nodes (which produce evidence) and judgement nodes (narrow judge decisions) whose leaves fix the score, giving a controlled, inspectable mapping from decisions to numbers.

Introduced in 10B.3 Judges in DeepEval: Models, G-Eval, DAG and Custom Metrics
dangerously_pull_public_prompt

The flag required to pull another owner's prompt; marks that the manifest is untrusted.

Introduced in 08F.6 Prompts, Output Parsers and Structured Output
Dark pattern

UX design that exploits cognitive biases for engagement at user expense.

Introduced in 13A.3 AI UX II: Trust, Transparency, Feedback and Human-in-the-Loop
Dashboard as code

Dashboards defined in JSON/YAML files provisioned into Grafana and versioned in git, rather than built by click-ops.

Introduced in 11A.2 Metrics, Dashboards, SLOs and Alerting
Data / tensor / pipeline parallelism

Ways of splitting training across many GPUs: by batches of data, within individual layers, and by groups of layers.

Introduced in 02.6 How LLMs Are Trained
Data classification

The labelling of data by sensitivity (public → secrets) that drives provider, region, retention and vendor decisions.

Introduced in 11C.4 Operating LLM Systems: Governance, Incidents and the Production Checklist
Data contamination

Benchmark test data leaking into a model's training data, inflating its benchmark scores.

Introduced in 02.6 How LLMs Are Trained
Data contract

A written upstream agreement on schema, freshness SLA and change notification.

Introduced in 05.10 Data Quality Checks
Data drift

Metric degradation over time: format, volume, nulls, language, schema, model, freshness.

Introduced in 05.10 Data Quality Checks
Data flywheel

The loop: production failures → triage → new cases → versioned dataset → better gates.

Introduced in 10A.2 Building Evaluation Datasets
Data gravity

The tendency of data and evals to accumulate in one vendor's store, making leaving costly ([11.6](13a-product-engineering/08-prompting-rag-or-fine-tuning.md#116-d6-build-vs-buy-including-managed-provider-tools))

Introduced in 13A.8 Decision Frameworks: Eight Decisions Plus One
Data minimisation

Using only the data that is actually needed

Introduced in 14A.3 Security, Data and Compliance Policy
Data mixture

The proportions of different kinds of data (web text, code, maths, other languages...) used to train a model; it strongly shapes the model's strengths and weaknesses.

Introduced in 02.6 How LLMs Are Trained
Data parallelism

Running the same operation on different chunks of data in parallel with no coordination between chunks.

Introduced in 01C.1 Concurrency, Parallelism and Context Switching
Data poisoning

Corrupting a knowledge base or training corpus so a system produces wrong, leaky or steered outputs without touching the model or prompt.

Introduced in 12.7 Securing RAG Data, Keys and the AI Supply Chain
Data processor

The party that processes your data on your behalf under a contract, such as a model provider or cloud platform.

Introduced in 02.9 Model Landscape
Data Protection Impact Assessment (DPIA)

A GDPR-required risk assessment for high-risk processing; engineering inputs are the data map, retention schedule and threat model.

Introduced in 12.4 PII, Privacy and Data Leakage
Data quality dimensions

The nine properties that define "good data" for an AI pipeline: completeness, validity, uniqueness, consistency, freshness, accuracy/fidelity, coverage, representativeness, provenance.

Introduced in 05.10 Data Quality Checks
Data race

Unsynchronized concurrent access to one memory location where at least one access is a write; a narrower, low-level term than race condition.

Introduced in 01C.3 Race Conditions and Thread Safety
Data residency / inference geo

Guaranteeing the geographic region where data is processed or stored, often at a small price uplift.

Introduced in 02.9 Model Landscape
Data retention

How long a provider keeps the inputs and outputs of your API calls

Introduced in 11C.5 Model Lifecycle on One Page
Data slot

A delimited template region that holds untrusted per-request content, kept separate from instructions.

Introduced in 04.10 Prompt Templates, Versioning and a Prompt Library
Data Subject Access Request (DSAR)

A legal right to obtain all personal data an organisation holds about you; requires an export pipeline across every store.

Introduced in 12.4 PII, Privacy and Data Leakage
Data URL

A string that carries a whole file inline, in the form data:<media type>;base64,<data>; OpenAI and OpenRouter use it for images and files.

Introduced in 03.6 Images, PDFs and Files
Data void

A query topic with little high-quality source content; retrieval can't ground what doesn't exist.

Introduced in 13A.7 Case Studies: How Real AI Products Are Built, and How They Fail
Data-flow diagram (DFD)

A diagram of processes, data stores and flows between them, with trust boundaries marked; the backbone of a threat model.

Introduced in 12.1 Threat Modelling LLM Applications
Data-flow inventory

A list of every place data lands (prompts, logs, traces, indexes, memory, eval sets), with owner and retention

Introduced in 14A.7 Data, Vendor and Supply-Chain Governance, plus NIST AI RMF and ISO/IEC 42001 Awareness
Data-not-instructions clause

A system-prompt paragraph saying that content inside labelled blocks is data to report on, never commands to follow

Introduced in 04.5 System Prompts, Roles and Personas
dataclass

@dataclass generates __init__/__repr__/__eq__ from annotated fields.

Introduced in 01A.6 Classes, Dataclasses and Enums
DataFrame

Pandas' labelled table of named columns sharing a common index.

Introduced in 01B.11 NumPy and pandas Essentials for AI Work
Datamarking

A spotlighting technique that inserts a rare marker before every whitespace character in untrusted text (e.g. ^ before each space) so instruction-shaped spans look visibly different.

Introduced in 12.2 Prompt Injection: Direct and Indirect
Dataset card

A document recording what a dataset is, how it was made, its metrics and known limits.

Introduced in 10.2
Dataset fingerprint

Stable hash of case IDs + content + order, catching silent eval-set edits including label corrections.

Introduced in 10A.8 Regression Testing, CI and Experiment Tracking
Dataset, example

A versioned collection of inputs (and optional reference outputs) used for evaluation; each item is an example.

Introduced in 11A.5 LangSmith, Testing and Deployment
DatasetCard

The README of an eval set: purpose, composition, labelling, known gaps, licence, version.

Introduced in 10A.2 Building Evaluation Datasets
Day-2 operations

The discipline of running an LLM service after launch: on-call, incident response, governance, data lifecycle and reliability reviews.

Introduced in 11C.4 Operating LLM Systems: Governance, Incidents and the Production Checklist
DBSF

Distribution-Based Score Fusion (Qdrant v1.11+): normalise each retriever's scores by mean ± 3σ, then sum; unclipped, degenerate input → 0.5.

Introduced in 06.8 Hybrid Search
De-identification vs synthesis

Stripping identifiers from real data vs generating from scratch — different privacy/realism trade-offs.

Introduced in 10A.2 Building Evaluation Datasets
Dead vector

A zero or NaN embedding — meaningless in similarity space.

Introduced in 05.10 Data Quality Checks
Dead-letter

A holding area for items that failed all retries, for inspection or replay.

Introduced in 01B.9 Retries, Timeouts, Backoff and Resilience
Dead-letter queue (DLQ)

The holding state for jobs that exhausted their attempts, waiting for a human

Introduced in 08A.13 Background and Long-Running Agents
Dead-man's switch

An alert that fires when an expected event (a scheduled run) did not happen

Introduced in 08A.13 Background and Long-Running Agents
Deadline

A bound on the whole logical operation across all attempts and retries. See also [Total deadline](#total-deadline).

Introduced in 01B.9 Retries, Timeouts, Backoff and Resilience
Deadline propagation

Passing the remaining budget down so each stage gets min(need, remaining × fraction).

Introduced in 11C.3 Fallbacks, Gateways and Reliability
Deadlock

A state in which each of a set of threads, tasks or transactions holds something and waits for something another member holds, so none can ever proceed.

Introduced in 01C.4 Deadlocks, Livelock and Starvation
Deadlock victim

The transaction a database aborts to break a deadlock; the application must retry it.

Introduced in 01C.4 Deadlocks, Livelock and Starvation
Debouncing

Coalescing bursts of change events per document before processing.

Introduced in 05.9 Ingestion Pipelines and Incremental Updates
debug

A stream mode that combines checkpoints and tasks, wrapped with step, timestamp and type.

Introduced in 08F.14 The Functional API and Streaming
Debugger

A tool (pdb, VS Code debugger) that pauses execution and inspects live state.

Introduced in 00.9 Working Like an Engineer: Debugging, Asking for Help and Learning Habits
Debugging

The systematic search for a bug's cause: observe, hypothesise, experiment, conclude.

Introduced in 00.9 Working Like an Engineer: Debugging, Asking for Help and Learning Habits
Decimal

Exact base-10 arithmetic type for money; construct from strings, never floats.

Introduced in 01A.2 Numbers, Strings and Text
Decision framework

A repeatable way to choose between named options using a default, switch signals and the cost of being wrong ([10.1](13a-product-engineering/08-prompting-rag-or-fine-tuning.md#101-four-habits))

Introduced in 13A.8 Decision Frameworks: Eight Decisions Plus One
Decision ladder

The ordered sequence of interventions — prompt, structured output/tools, RAG, better model/routing, fine-tuning, pretraining — from cheapest and most reversible to most expensive and stickiest.

Introduced in 13A.8 Decision Frameworks: Eight Decisions Plus One
Decision log / ADR

A dated record of a significant choice: context, options, decision, consequences, reversal conditions.

Introduced in 14B.2 Portfolio Strategy: Choosing and Shaping Projects
Decision memo

The written record of an experiment's question, design, results and decision — the deliverable that prevents re-running experiments.

Introduced in 13A.6 Product Metrics, Experiments and Unit Economics
Decision regret

The gap between the chosen option and the rejected one on the same test cases ([13.2](13a-product-engineering/08-prompting-rag-or-fine-tuning.md#132-a-tiny-eval-design-decision-regret))

Introduced in 13A.8 Decision Frameworks: Eight Decisions Plus One
Decision table

A structured mapping from conditions to recommended actions — the backbone of "teach how to decide".

Introduced in 13A.1 Product Thinking for AI Features: What to Build and When Not to Use AI
Decisive error

The earliest agent-and-step whose correction would turn a failed multi-agent run into a successful one; distinct from the symptom, where the failure becomes visible.

Introduced in 10A.12 Evaluating Multi-Agent Systems and Validating User Simulators
Decode (phase)

Generating output tokens one sequential forward pass at a time.

Introduced in 02.5 Generation and Sampling
Decoder

The sequence-model stage turning audio representations into text tokens.

Introduced in 09.4 Speech-to-Text
Decoding / sampling

Choosing the next token from the model's probability distribution.

Introduced in 02.5 Generation and Sampling
Decompression bomb

A small file that expands to an enormous image (or archive) when decoded, used to exhaust memory.

Introduced in 03.6 Images, PDFs and Files
Decontamination

Removing training items that overlap evaluation sets, so evals measure capability not memorisation.

Introduced in 10A.2 Building Evaluation Datasets
Decorator

A function that takes a function and returns a (usually wrapped) function; @deco is sugar for fn = deco(fn).

Introduced in 01A.3 Control Flow and Functions
Decorator factory

@retry(times=3) — a function returning a decorator.

Introduced in 01A.3 Control Flow and Functions
Dedicated Image API (OpenRouter)

POST /api/v1/images + /api/v1/images/models discovery — normalized multi-vendor image generation.

Introduced in 09.3 Image Generation and Editing
Dedupe key

Your own stable key for a side-effecting action (for example conversation ID + tool name + canonical arguments), used to make sure the action runs only once even if a request is retried.

Introduced in 03.8 Errors, Rate Limits, Timeouts and Retries
Dedupe store

A table from key to result that turns repeats into replays

Introduced in 08A.7 Tool Safety in the Loop: Idempotency, Validation and Truncation
Deduplication / MinHash

Removing exact and near-duplicate documents from training data, usually with a technique called MinHash, to save compute and reduce memorization.

Introduced in 02.6 How LLMs Are Trained
Deep Agents

A pre-1.0 agent harness (deepagents) with planning, a virtual filesystem, subagents and context management, built on LangChain and LangGraph.

Introduced in 08F.4 The LangChain Ecosystem and Your Setup
Deep copy

Recursive copy of the whole object graph (copy.deepcopy).

Introduced in 01A.4 Core Data Structures: Lists, Tuples, Dictionaries and Sets
Deep learning

Machine learning using neural networks with many layers.

Introduced in 02.1 Neural Network Basics
Deep Research

An agentic research product that plans, searches, analyses and synthesises a cited report.

Introduced in 04.12 Prompt Hub, Research Findings and Model Notes
Deep-agent pattern

A design philosophy for agents with planning, structured memory and sub-agent delegation (the Prompting Guide's usage; the deepagents package is covered in 08F.17).

Introduced in 04.12 Prompt Hub, Research Findings and Model Notes
`deepagent()`

Inspect's batteries-included long-horizon agent with subagents, memory, task tracking, optional background work and default compaction. *(Introduced in [lesson 10B.14](10b-eval-frameworks/14-inspect-tools-and-agents.md#terms-introduced-in-this-lesson))* *(Extended in [lesson 10B.15](10b-eval-frameworks/15-inspect-sandboxes-limits-and-approval.md#terms-introduced-in-this-lesson))*

DeepEval

Confident AI's open-source (Apache-2.0) Python library for evaluating LLM apps like unit tests: test cases, metric objects with thresholds, evaluate(), assert_test() and the deepeval command line.

Introduced in 10B.2 DeepEval Fundamentals: Test Cases, Metrics and the Test Runner
DeepEval cache

.deepeval/.deepeval-cache.json: stored metric results keyed by six test-case fields and a list of metric settings, reused only with -c or CacheConfig(use_cache=True); custom metric parameters are not in the key.

Introduced in 10B.2 DeepEval Fundamentals: Test Cases, Metrics and the Test Runner
deepeval diagnose

The DeepEval CLI command that prints the effective configuration (default judge, local store, eval mode, login state) and which file or variable each setting came from.

Introduced in 10B.2 DeepEval Fundamentals: Test Cases, Metrics and the Test Runner
deepeval gate

A DeepEval CLI command that checks the project against a governance policy stored on Confident AI and exits non-zero if it fails; it is not a local metric gate.

Introduced in 10B.7 DeepEval in Production: Red Teaming, CI/CD, Prompt Optimization and Confident AI
deepeval inspect

DeepEval's Textual terminal UI that opens a saved test run as a browsable span tree; interactive only, installed with the inspect extra.

Introduced in 10B.5 DeepEval Tracing, Component-Level Evals and Agent Evaluation
deepeval test run

DeepEval's CLI test runner: runs pytest with the DeepEval plugin, prints a results table and run summary, and exits with pytest's return code so CI fails on failing metrics.

Introduced in 10B.2 DeepEval Fundamentals: Test Cases, Metrics and the Test Runner
deepeval.red_team

The DeepEval module (4.3.6 and later) that holds red_team(), RedTeamer, AgenticRedTeamer, Guardrails and the vulnerabilities, attacks and frameworks; the deepeval red-team command runs it from YAML or scans code.

Introduced in 10B.7 DeepEval in Production: Red Teaming, CI/CD, Prompt Optimization and Confident AI
DeepEvalBaseLLM

DeepEval's abstract base class for judge models; a subclass implements load_model, generate, a_generate and get_model_name, and can then judge any metric via model=.

Introduced in 10B.3 Judges in DeepEval: Models, G-Eval, DAG and Custom Metrics
DeepTeam

The former separate open-source package for red teaming and guardrails; it was folded into DeepEval 4.3.6 as deepeval.red_team and is deprecated from 30 January 2027.

Introduced in 10B.7 DeepEval in Production: Red Teaming, CI/CD, Prompt Optimization and Confident AI
Default-deny / deny-wins

No matching allow ⇒ invisible; any matching deny overrides all allows.

Introduced in 05.8 Metadata Design
default=

Json module hooks: convert non-JSON types on write; transform decoded objects / number literals on read.

Introduced in 01A.9 Files, Paths, JSON and CSV
default_factory

Callable producing a fresh default per instance — for mutable or computed defaults.

Introduced in 01B.6 Data Validation with Pydantic
default_retry_on

The default retry predicate: retries ConnectionError, 5xx httpx errors, every requests.HTTPError and any unknown exception; skips probable programming errors and OSError.

Introduced in 08F.12 Human-in-the-Loop and Control Flow
defaultdict

Dict that auto-creates missing keys via a factory (int, list, ...).

Introduced in 01A.4 Core Data Structures: Lists, Tuples, Dictionaries and Sets
Defence in depth

Layering independent controls (grounding, validation, guardrails, humans, monitoring) so each catches failures the others miss.

Introduced in 02.10 Limitations and Failure Modes
Defensive wrapping

Techniques making real prompt delimiters unpredictable or un-typable: random IDs, sanitising, escaping.

Introduced in 04.4 Structuring Prompts: XML, Markdown and Delimiters
defer=True

A node option that delays the node until no other work is pending, so it joins conditional and dynamic branches once.

Introduced in 08F.10 LangGraph Fundamentals
defer_loading

Flag hiding a tool definition until tool search loads it.

Introduced in 08A.8 Provider Built-in and Server-Side Tools
Deferred tool request

Pydantic AI's mechanism for pausing a run to ask a human to approve a tool call.

Introduced in 08F.1 Agent Frameworks and SDKs
Definition of done (DoD)

The checklist a milestone must pass — for AI milestones, including an eval delta and a failure rehearsal.

Introduced in 13B.1 Capstone Planning and Scoping
Deflection rate

Share of queries resolved without a human agent.

Introduced in 10A.9 Offline vs Online Evaluation
defusedxml

XML parser hardened against entity-expansion attacks.

Introduced in 05.3 Parsing HTML, Web Pages and Office Files
Degradation ladder

The ordered honest fallbacks when the chain is exhausted: smaller model → cache → retrieval-only → queue → error.

Introduced in 11C.3 Fallbacks, Gateways and Reliability
Degradation rate

How often fallback paths fire — early warning that a component is degrading before it dies.

Introduced in 07.10 RAG Failure Modes and Debugging
Degraded mode

A fallback path that keeps a feature working at reduced quality when its primary modality or provider is unavailable — e.g. OCR instead of a VLM, text chat instead of voice, standard voice instead of premium.

Introduced in 09.10 Building, Evaluating and Operating Multimodal Products
Degrees of freedom

How tightly a skill constrains the agent: free text, a template, or an exact command

Introduced in 08E.4 A2A Basics, Agent Skills (SKILL.md) and Tool Selection at Scale
Delegation

GPT-Live's mechanism for handing reasoning/tool work from the voice model to a backend.

Introduced in 09.7 Realtime Voice Agents
Delegation brief

The structured instruction — objective, output format, boundaries, tool guidance, effort scaling — passed to a subagent.

Introduced in 08D.3 Multi-Agent Systems
Delete verification

Proving a delete propagated by querying every store for residual doc_ids — a query, not a job status.

Introduced in 07.11 Production RAG: Security, Freshness, Cost and Operations
Deliberative alignment

OpenAI's method of training reasoning models to recall and reason over a written safety specification before answering.

Introduced in 02.6 How LLMs Are Trained
Delimiter

Any marker separating prompt sections: tags, headings, ---, ###, code fences, triple quotes.

Introduced in 04.4 Structuring Prompts: XML, Markdown and Delimiters
Delta cursor / page token

The stored position that lets a change feed resume where it left off.

Introduced in 05.9 Ingestion Pipelines and Incremental Updates
Delta query

An API pattern returning only items changed since a token (SharePoint, Drive Changes).

Introduced in 05.1 Data Sources, Formats and the Ingestion Mindset
DeltaChannel

A beta channel that stores per-step writes and periodic snapshots instead of the full value at every checkpoint.

Introduced in 08F.11 Persistence, Durable Execution and Memory
Demo guardrail stack

The layered controls (edge, application, model gateway, spend, operations) that bound what a public demo can cost or leak.

Introduced in 13B.6 Shipping and Operating Your Capstone: Launch, Demo and Iterate
Demo mode

A server-side flag that swaps in synthetic data and disables persistence and side-effects for the public demo path.

Introduced in 13B.6 Shipping and Operating Your Capstone: Launch, Demo and Iterate
Demo script

A timed, beat-by-beat demo plan with per-beat fallback notes, generated from data by ai_product/demo_script.py.

Introduced in 13B.6 Shipping and Operating Your Capstone: Launch, Demo and Iterate
Demo vs product

A one-off proof-of-possibility vs a reliable, budgeted, owned feature that survives real inputs.

Introduced in 13A.1 Product Thinking for AI Features: What to Build and When Not to Use AI
Demographic bias

Systematically different model outcomes across groups defined by protected attributes (race, gender, age, etc.), as distinct from the NN bias parameter already in the glossary.

Introduced in 12.9 Responsible AI, Policy and Compliance
Denial-of-wallet

Economic denial of service: an attacker inflates model/API spend without proportional cost; controlled by ceilings, quotas, budgets and anomaly detection.

Introduced in 12.5 Guardrails and Output Validation
Denominator

The population a percentage is measured against; "66% of *what*?".

Introduced in 13A.7 Case Studies: How Real AI Products Are Built, and How They Fail
Denormalisation

Copying document fields onto every chunk record because the store can't join.

Introduced in 05.8 Metadata Design
Denormalization

Deliberately duplicating data for read speed.

Introduced in 00.7 SQL Basics with SQLite
Dense retrieval

Retrieval that ranks documents by embedding similarity — a query vector and document vectors compared in a shared vector space — as opposed to lexical/keyword retrieval, which matches terms; the two are complementary and combined in hybrid search.

Introduced in 06.8 Hybrid Search
Dense vector

A short vector where every number carries information (the opposite of one-hot).

Introduced in 02.3 Embeddings
Deny by default

Only explicitly allowed tools are visible or callable

Introduced in 08E.3 Remote MCP: OAuth, Gateways and Many Servers
Denylist

An explicit record of rejected providers or models, with reasons

Introduced in 14A.1 Approved Providers, Models and Regions
Dependabot

GitHub's dependency bot: alerts on vulnerable dependencies, security-update PRs, and version-update PRs.

Introduced in 00.4 GitHub and Collaboration
Dependency / Depends

A function FastAPI calls per request to supply a collaborator (settings, client, auth); cached per request, supports yield cleanup and dependency_overrides.

Introduced in 01B.7 FastAPI Basics: Building a Small API
Dependency cooldown

A resolver or bot setting that ignores releases newer than N days (uv exclude-newer, pip --uploaded-prior-to, Dependabot cooldown, Renovate minimumReleaseAge) so a malicious upload is usually yanked before you can install it; it buys time, it does not detect malware.

Introduced in 12.7 Securing RAG Data, Keys and the AI Supply Chain
Dependency group

A named set of requirements installed on demand (dev, docs) — PEP 735.

Introduced in 01B.1 Project Setup with uv: Environments, Dependencies and Tooling
Dependency hell

Unsatisfiable/conflicting version requirements between packages.

Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Library
Dependency injection

Passing collaborators into constructors/functions instead of hard-coding them.

Introduced in 01A.6 Classes, Dataclasses and Enums
Dependency inventory

The reviewed list of libraries, SDKs, gateways and providers with pinning and upgrade policy.

Introduced in 11C.4 Operating LLM Systems: Governance, Incidents and the Production Checklist
Dependency review

A pull-request check flagging newly added or changed vulnerable dependencies before merge.

Introduced in 00.4 GitHub and Collaboration
dependency_overrides

FastAPI's mechanism for swapping Depends in tests.

Introduced in 01B.8 Testing with pytest
Deployer vs provider

The EU AI Act distinction between the entity that builds a general-purpose AI model (provider) and the entity that uses an AI system in an application (deployer).

Introduced in 12.9 Responsible AI, Policy and Compliance
Deprecated

Still works, but scheduled for removal, with a documented replacement and usually a warning.

Introduced in 08F.15 Patterns, Pitfalls and Migration
Deprecation / migration guide

The docs announcing a feature's removal and how to move off it.

Introduced in 00.8 Reading API Documentation
Deprecation calendar

The scheduled tracking of model lifecycle dates and the migration runbook per route.

Introduced in 11B.5 Model Selection and Routing
Deprecation gate

A test configuration that turns the stack's deprecation warnings into failures.

Introduced in 08F.15 Patterns, Pitfalls and Migration
Deprecation notice period

The advance-warning window a provider commits to before retiring a model or endpoint (e.g. OpenAI ≥6 months for GA models, Anthropic ≥60 days for public models).

Introduced in 14A.9 Staying Current in a Fast-Moving Field
Deprecation warning

A DeprecationWarning (or subclass) that a library raises for an API on its way out, naming the replacement; made loud with warnings filters and test configuration.

Introduced in 08F.17 Finish Learning from the Official Docs
Depth limit

A cap on how many levels of agents may call agents

Introduced in 08A.11 Reflection, Parallel Fan-Out and Agent-as-a-Tool
Depth project

A piece proving rigour in one area through measurement (evals, tuning, cost).

Introduced in 14B.2 Portfolio Strategy: Choosing and Shaping Projects
deque

Double-ended queue with O(1) append/pop at both ends.

Introduced in 01A.4 Core Data Structures: Lists, Tuples, Dictionaries and Sets
DER

Diarization error rate: (miss + false alarm + speaker confusion) / reference speech time.

Introduced in 10A.7 Evaluating Agents, Tool Use and Multimodal Systems
Describe-then-answer

Two-step prompting: describe the image, then answer over the description.

Introduced in 09.1 Vision Applications: Understanding Images
Design decision

A choice between alternatives, with the trade-off you accepted.

Introduced in 14B.8 Interview Prep III: Take-Homes, Behavioural Rounds and Offers
Design doc

A written argument for a change: problem, options, recommendation, risks, rollout.

Introduced in 14B.9 Your First 90 Days and Long-Term Growth
Design effect

1 + (m − 1)ρ: how much clustering inflates variance, so grouped cases are worth fewer independent cases than their count.

Introduced in 10A.2 Building Evaluation Datasets
Deskew

Correcting small rotational tilt of a scanned page.

Introduced in 05.4 OCR and Scanned Documents
Deskew vs orientation

Deskew corrects small rotational tilt; orientation fixes 90°-multiple rotation, detected by OSD.

Introduced in 05.4 OCR and Scanned Documents
Detached HEAD

HEAD pointing directly at a commit rather than a branch; fine for exploration, dangerous for new commits.

Introduced in 00.3 Git Fundamentals
Detection engineering

The practice of writing, testing and maintaining security alert rules as versioned code — predicates over event streams with windows, thresholds and severities — rather than ad-hoc queries.

Introduced in 12.10 Security Operations, Incident Response and the Safety Checklist
Determinism

Same input + same versions → same outputs (IDs, boundaries, embed set).

Introduced in 05.9 Ingestion Pipelines and Incremental Updates
Deterministic baseline

The no-LLM plan every technique is measured against.

Introduced in 07.3 Query Understanding, Rewriting and Expansion
Deterministic bucketing

Hash-based sticky assignment of units to A/B variants so each unit sees one variant.

Introduced in 04.10 Prompt Templates, Versioning and a Prompt Library
Deterministic replay

Re-running a recorded trajectory against current code with no model calls, to reproduce bugs and regressions exactly.

Introduced in 08A.14 Reliable, Safe and Observable Agents
Deterministic sampling

Choosing traces by a hash of their id so the choice is repeatable

Introduced in 11A.4 Production Traces into Eval Datasets
DeterministicFakeEmbedding

A test double that gives the same vector for the same text and carries no meaning.

Introduced in 08F.9 RAG with LangChain
dev / staging / prod

Local / production-like test / live environments — config differs, code doesn't.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Dev mode

python -X dev / PYTHONDEVMODE=1: extra runtime checks — faulthandler on fatal errors, asyncio debug, more warnings — for development only.

Introduced in 01B.10 Logging, Debugging and Packaging: Putting the Toolkit Together
Dev set

A small fixed collection of labelled cases used to iterate a prompt against; large enough to cover failure modes, small enough to run on every change.

Introduced in 04.9 Iterating, Debugging and Porting Prompts
developer message

OpenAI's role for application instructions, ranked above user messages; the recommended replacement for system messages on reasoning models.

Introduced in 03.2 Messages, Roles and Conversation State
Development environment

The full stack of tools a machine needs to build software.

Introduced in 00.1 Setting Up Your Computer for Development
Development response cache

A disk cache that serves saved replies for identical requests while you iterate; it hides non-determinism and outages and is never a production cache.

Introduced in 03.10 Logging, Debugging and Testing LLM Code
DevRel (developer relations)

The discipline of helping external developers adopt a technology or product.

Introduced in 14B.9 Your First 90 Days and Long-Term Growth
DevTools / Network tab

Browser inspector; Network shows every request/response/timing — the web debugger.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Diagnostic metric

Per-slice/per-stage numbers that explain movement in the north star.

Introduced in 10A.1 Why Evals Matter: The Evaluation Mindset
Dialect

The differences of one OpenAI-compatible server (output-cap parameter, reasoning control, usage and cost fields, error behaviour), kept in one table behind a shared adapter.

Introduced in 03.11 Building a Provider-Agnostic Client
Dict view

Live keys()/values()/items() reflection of a dict.

Introduced in 01A.4 Core Data Structures: Lists, Tuples, Dictionaries and Sets
Dict-valued score

An Inspect score whose value is a dictionary; each key becomes its own score in the results with its own metrics, which suits field-level checks from one parse.

Introduced in 10B.10 Inspect Scorers, Metrics, Epochs and the Statistics Inspect Reports (optional)
dictConfig

Dictionary-based logging configuration — the declarative, application-level alternative to one-shot basicConfig.

Introduced in 01B.10 Logging, Debugging and Packaging: Putting the Toolkit Together
Dictionary (dict)

Key→value mapping; insertion-ordered since Python 3.7; the shape of JSON objects.

Introduced in 01A.4 Core Data Structures: Lists, Tuples, Dictionaries and Sets
DictReader / DictWriter

Csv interfaces mapping rows to dicts keyed by header, and dicts back to CSV rows.

Introduced in 01A.9 Files, Paths, JSON and CSV
diff

Line-by-line file comparison; -u gives unified (patch-style) output, exit 1 on differences.

Introduced in 00.2 The Terminal and Shell
Diff tolerance

The similarity threshold below which a golden comparison fails.

Introduced in 05.10 Data Quality Checks
Diff-style editing

Requesting surgical edits as find/replace pairs instead of a full rewrite, so code — not the model — controls exactly what changes.

Introduced in 04.8 Prompt Patterns for Common Tasks
Differential privacy

A formal framework bounding how much any single record can influence a mechanism's output.

Introduced in 10A.2 Building Evaluation Datasets
difflib

Stdlib sequence comparison: SequenceMatcher.ratio() similarity and get_opcodes() edit script.

Introduced in 01A.2 Numbers, Strings and Text
Diffusion language model (dLLM) / masked diffusion

A language model that generates by iteratively unmasking and refining many tokens in parallel instead of one token at a time.

Introduced in 02.4 Attention and Transformers
Diffusion model

Iterative denoising generative architecture behind most specialist image models.

Introduced in 09.3 Image Generation and Editing
Dify

An open-source LLM application platform with workflows, RAG, agents and a built-in API

Introduced in 08F.16 Low-Code Agent Platforms: n8n and Dify (awareness)
Digest

A summary of the trace built in code, with no model call

Introduced in 08A.3 Loop Control, Budgets and Stagnation Detection in the Raw Loop
Digital Omnibus on AI

Regulation (EU) 2026/1744, in force since 27 July 2026: moved the EU AI Act's high-risk deadlines to 2 December 2027 (Annex III) and 2 August 2028 (Annex I), added new prohibitions and an Article 50(2) transition.

Introduced in 12.9 Responsible AI, Policy and Compliance
Dimension (dimensionality)

The number of entries in an embedding vector.

Introduced in 02.3 Embeddings
Dining philosophers

The classic model of circular wait: five diners need two shared forks each.

Introduced in 01C.4 Deadlocks, Livelock and Starvation
Direct injection

The user types the attack

Introduced in 08A.5 Required Agent Security
Directional Stimulus Prompting (DSP)

A small trained policy model writes a hint added to a black-box LLM's prompt (Li et al.).

Introduced in 04.11 Named Prompting Techniques: A Field Guide
Directional test

A metamorphic check asserting that a controlled input change (adding a constraint) moves the output in the expected direction.

Introduced in 10A.3 Deterministic Metrics and Code-Based Graders
direnv

Shell extension loading per-directory env vars from .envrc.

Introduced in 01B.2 Environment Variables, Configuration and Secrets
Dirty log directory

An eval-set directory containing logs that do not belong to the set

Introduced in 10B.12 Running Inspect Evals for Real: Models, Configuration, Concurrency, Caching, Errors and Eval Sets (optional)
Disagreement (uncertainty metric)

Number of distinct answers divided by number of samples.

Introduced in 04.11 Named Prompting Techniques: A Field Guide
Discordant pair

In a comparison of two systems on the same items, an item exactly one of them got right; paired tests such as McNemar's use only these.

Introduced in 10B.6 DeepEval Datasets, Synthetic Data, Conversation Simulation and Benchmarks
Discriminability / separability

How well a detector separates simulated from real conversations, measured as AUC; separability, max(AUC, 1 − AUC), counts differences in either direction.

Introduced in 10A.12 Evaluating Multi-Agent Systems and Validating User Simulators
Discriminated union

Union[...] + Field(discriminator="kind"): variants dispatched by a tag field — the shape provider SDKs use for tool calls/content blocks.

Introduced in 01B.6 Data Validation with Pydantic
DiskANN / Vamana

An SSD-friendly graph ANN algorithm for indexes larger than RAM.

Introduced in 06.4 Vector Indexes: HNSW, IVF, Quantization and Trade-offs
Dispatch node

A node every handoff passes through, where budgets, logging and authorization are enforced.

Introduced in 08F.13 Subgraphs and Multi-Agent Systems
Dispatch table

A dictionary mapping tool names to the functions your code allows the model to call: the safe alternative to eval or dynamic lookups.

Introduced in 03.5 Tool Calling: The API Mechanics
Dispatch tool

One tool (often task) that takes a specialist name and a task, instead of one tool per subagent.

Introduced in 08F.13 Subgraphs and Multi-Agent Systems
Dispatcher

The single function that every tool call passes through, running all the safety stages

Introduced in 08A.7 Tool Safety in the Loop: Idempotency, Validation and Truncation
Distance operator

One of pgvector's comparison operators (<-> L2, <#> negative inner product, <=> cosine distance, <+> L1, <~> Hamming, <%> Jaccard) used in ORDER BY for nearest-neighbour queries.

Introduced in 06.5 Vector Databases: Choosing and Using One
Distillation

See [Knowledge distillation](#knowledge-distillation).

Distilled result

The short, sourced summary a sub-call returns to the main conversation

Introduced in 08B.3 Short-Term Memory: Truncation, Summarization and Compaction
DISTINCT

Collapse duplicate result values.

Introduced in 00.7 SQL Basics with SQLite
Distributed monolith

Multiple deployables that must ship together anyway — paying network and ops costs for none of the independence benefits.

Introduced in 13A.5 Architecture Patterns for AI Applications
Distributed representation / superposition

Storing a concept as a pattern spread across many neurons, with each neuron taking part in many concepts.

Introduced in 02.1 Neural Network Basics
Distribution (distro)

A specific Linux packaging of the OS: Ubuntu, Debian, Fedora, Arch.

Introduced in 00.1 Setting Up Your Computer for Development
Distribution shift (from retries)

Bias introduced when retried samples get more chances to succeed than others

Introduced in 10B.12 Running Inspect Evals for Real: Models, Configuration, Concurrency, Caching, Errors and Eval Sets (optional)
Distributional hypothesis

The idea that words used in similar contexts have similar meanings.

Introduced in 02.3 Embeddings
divmod

Returns (a // b, a % b) as a tuple — quotient and remainder in one call.

Introduced in 01A.2 Numbers, Strings and Text
DNS

The global name→address directory; resolvers answer A/AAAA queries with TTL-bound caching.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
DNS rebinding

An attack where a website makes your browser talk to a local server. Defended by validating Origin and binding to localhost

Introduced in 08E.2 MCP in Depth: Primitives, Servers, Clients and Transports
doc2query / HyDE

A retrieval technique that appends model-predicted queries to documents to improve lexical and dense matching (Nogueira et al., 2019).

Introduced in 05.7 Advanced and Document-Specific Chunking
Docs coverage map

A comparison of a site's llms.txt index against the pages a course or your notes name (matching whole page addresses, not substrings), showing which official pages you have not yet seen.

Introduced in 10B.18 Finish Learning DeepEval and Inspect from the Official Docs
Docs drift

The growing gap between a lesson, guide or page and the current package, caused by releases that nobody wrote back into the text.

Introduced in 10B.18 Finish Learning DeepEval and Inspect from the Official Docs
Docs MCP server

An MCP server that exposes a provider's documentation to assistants for search and retrieval.

Introduced in 00.8 Reading API Documentation
Docs notes file

Your own docs-notes.md of pages read, with date, package versions and what differed, so you can tell later what has gone stale.

Introduced in 08F.17 Finish Learning from the Official Docs
Docs rot

The gradual drift between documentation and the running API.

Introduced in 00.8 Reading API Documentation
Docs-versus-package disagreement

A case where a documentation sentence differs from what the installed package does; resolved in favour of the package and reported to the maintainers.

Introduced in 08F.17 Finish Learning from the Official Docs
Docstring

A """...""" string as the first statement of a module/function/class, shown by help().

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
Doctest

>>> examples inside a docstring that the doctest module runs as tests.

Introduced in 01A.3 Control Flow and Functions
Document

LangChain's unit of data: page_content (text), metadata (a dict) and an optional id.

Introduced in 08F.9 RAG with LangChain
Document AI / document intelligence

Cloud services returning structured fields, tables and key-value pairs from documents (Google Document AI, Azure DI, AWS Textract, Mistral OCR).

Introduced in 05.4 OCR and Scanned Documents
Document block

Anthropic's content block for PDFs, plain text and custom content, with optional title, context, citations and cache_control.

Introduced in 03.6 Images, PDFs and Files
Document compressor

An object with compress_documents(documents, query) that filters, shortens or reranks retrieved documents.

Introduced in 08F.9 RAG with LangChain
Document frequency (df)

Number of documents containing a term.

Introduced in 06.7 Keyword Search and BM25
Document loader (BaseLoader)

An object that reads a source and yields Documents; you implement lazy_load, and load, aload and alazy_load follow.

Introduced in 08F.9 RAG with LangChain
Document prompt injection

Instructions hidden in a document's visible text or text layer that try to steer the extractor; defended by treating document content as data and validating after extraction.

Introduced in 09.2 Document Understanding with Vision Models
Document-AI service

A specialised document-processing API (Textract, Document Intelligence, Document AI, Mistral OCR, Reducto) with its own models and per-page pricing.

Introduced in 09.2 Document Understanding with Vision Models
Document-frequency boilerplate detection

Shingles appearing in most documents = boilerplate.

Introduced in 05.5 Cleaning and Normalization
Document-level / chunk-level metadata

Fields describing the whole source document vs the individual retrievable chunk.

Introduced in 05.8 Metadata Design
Dogfooding

Using your own product internally before external launch — the cheapest real-user test there is.

Introduced in 13A.1 Product Thinking for AI Features: What to Build and When Not to Use AI
DOM

The live tree of page elements that JavaScript queries and mutates.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Domain allowlist

A list of hosts the browser may reach, enforced at the network layer and re-checked on every redirect

Introduced in 08A.15 Coding and Computer-Use Agents
Domain expertise

Deep knowledge of a specific industry (healthcare, finance, legal) that gives an AI engineer an edge.

Introduced in 14B.1 The AI Engineering Landscape: Roles, Teams and Career Paths
Domain name

Human-readable name mapped to IPs via DNS; api.example.com is a subdomain of example.com under the .com TLD.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Dot product

Multiply matching items of two lists of numbers and add the results.

Introduced in 02.1 Neural Network Basics
Dotfile

A hidden config file (name starts with .), e.g. .env, .gitignore.

Introduced in 00.1 Setting Up Your Computer for Development
Dotprompt / Prompty

Open prompt file formats that pair YAML front matter with a templated body, comparable to this lesson's format.

Introduced in 04.10 Prompt Templates, Versioning and a Prompt Library
Double descent

The observation that as models grow, test error can fall, rise, then fall again, so very large neural networks often generalize better than the classic overfitting picture predicts.

Introduced in 02.1 Neural Network Basics
Double texting

A new message arriving while a run is active; handled by the multitask_strategy: enqueue, reject, interrupt or rollback.

Introduced in 11A.5 LangSmith, Testing and Deployment
Double-checked locking

Check without a lock, then lock and check again before creating; used for lazy singletons.

Introduced in 01C.3 Race Conditions and Thread Safety
Double-retry trap

Retries at several layers (your code, the SDK, a gateway) multiplying into many more attempts and much longer waits than any single layer intended.

Introduced in 03.8 Errors, Rate Limits, Timeouts and Retries
DPA

Data processing agreement: a contract for processing personal data on your instructions

Introduced in 14A.1 Approved Providers, Models and Regions
DPDP Act

India's Digital Personal Data Protection Act 2023, operationalised by the DPDP Rules notified November 2025 with an 18-month phased compliance timeline.

Introduced in 12.9 Responsible AI, Policy and Compliance
DPI / render scale

Pixels per inch when rasterising a PDF; render scale × 72 = DPI.

Introduced in 09.2 Document Understanding with Vision Models
DPO

Direct Preference Optimization: training directly on preference pairs with a simple loss, without a separate reward model or RL loop.

Introduced in 02.6 How LLMs Are Trained
Draft PR

A pull request marked not-ready-for-review; it still runs CI and can be shared for early feedback.

Introduced in 00.4 GitHub and Collaboration
Drain (RunControl, GraphDrained)

A cooperative request to stop a run at the next super-step boundary with a saved checkpoint.

Introduced in 08F.12 Human-in-the-Loop and Control Flow
Drift

Any change making past measurements stop predicting present behaviour.

Introduced in 10A.9 Offline vs Online Evaluation
Drift repair

Acting on reconciliation: re-embed manifest_only chunks from the manifest, delete store_only orphans (--repair in the toy).

Introduced in 05.9 Ingestion Pipelines and Incremental Updates
Drive-by PR

A low-effort, unreviewed contribution — visible to maintainers and damaging to reputation.

Introduced in 14B.2 Portfolio Strategy: Choosing and Shaping Projects
Drop report

The per-source ledger a ContextBuilder emits: what was kept, truncated and dropped, with token counts.

Introduced in 04.6 Context Engineering: Selecting and Ordering Context
Dropout

Randomly switching off some neurons during training so the network can't rely too heavily on any one of them. Many modern LLMs are pretrained with little or none.

Introduced in 02.1 Neural Network Basics
Dry-run mode

Counting tokens and estimating embedding cost without calling the embedder.

Introduced in 06.2 Embedding Pipelines: Batching, Caching, Scale and Cost
Dry-run preview

A tool call with execute=false that returns what *would* happen, so a human approves a checked preview, not raw model output.

Introduced in 13B.2 Capstone Build A: The Support Copilot
DSL file (Dify)

A YAML export of a Dify app used to back up, move or version it

Introduced in 08F.16 Low-Code Agent Platforms: n8n and Dify (awareness)
DSPy

A framework for programming (rather than prompting) LM pipelines; ships GEPA, MIPROv2 and BootstrapFewShot prompt optimisers.

Introduced in 04.9 Iterating, Debugging and Porting Prompts
DTMF

Touch-tone phone digits used for IVR-style input on calls.

Introduced in 09.6 Audio-Native Models and Realtime Foundations
DTMF fallback

Keypad path for callers who can't or won't speak.

Introduced in 13B.5 Capstone Build C: The Realtime Voice Agent Product
dtype

The element data type of a NumPy array or pandas column (float32, int64, str, bool...).

Introduced in 01B.11 NumPy and pandas Essentials for AI Work
Dual control

Two humans must approve the highest-risk actions.

Introduced in 13A.3 AI UX II: Trust, Transparency, Feedback and Human-in-the-Loop
Dual-field pattern

Storing original text plus parallel normalized/entity fields rather than overwriting the source.

Introduced in 05.5 Cleaning and Normalization
Dual-LLM pattern

A privilege-separation architecture where a quarantined LLM reads untrusted content with no tools and returns only structured output, while a privileged LLM holding tools sees only that validated output — never the raw untrusted text.

Introduced in 12.2 Prompt Injection: Direct and Indirect
Dual-write

Writing each chunk to two indexes (dense + lexical); the consistency burden of DIY hybrid.

Introduced in 06.8 Hybrid Search
Duck typing

"If it has the needed methods it works" — Python checks behaviour, not declared types.

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
Dunder method

A __x__ method Python calls implicitly for syntax like print(), ==, len().

Introduced in 01A.6 Classes, Dataclasses and Enums
durability

A run option ("sync", "async", "exit") that controls when checkpoints are written.

Introduced in 08F.14 The Functional API and Streaming
Durability mode

The durability argument (exit, async, sync) that sets when checkpoints are written.

Introduced in 08F.11 Persistence, Durable Execution and Memory
Durable execution

Temporal's model: workflow state persisted server-side so runs resume mid-flight.

Introduced in 05.9 Ingestion Pipelines and Incremental Updates
Durable skill

A concept or method that survives tool churn (HTTP, SQL, evals, threat modelling).

Introduced in 14A.8 Skills Map and Gap Analysis
Durable workflow

A run whose progress is persisted outside the process so it survives crashes, waits and restarts.

Introduced in 08A.9 Workflows vs Agents
Dynamic Client Registration (DCR)

Registering a client automatically via an endpoint. Deprecated for MCP in 2026-07-28

Introduced in 08E.3 Remote MCP: OAuth, Gateways and Many Servers
Dynamic few-shot

Selecting examples per query (by similarity, category or recency) instead of using one fixed set.

Introduced in 04.2 Zero-Shot, Few-Shot and Examples
Dynamic filtering

Filtering tool results inside a provider sandbox before they reach the context window (Anthropic web_search_20260209+/web_fetch_20260209+, Gemini built-ins), cutting input-token cost.

Introduced in 08A.8 Provider Built-in and Server-Side Tools
Dynamic typing

Types belong to values, not variables; the same name can point at different types over time.

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics

E

.env file

A KEY=value file loaded into the process environment at start-up for development; never committed.

Introduced in 01B.2 Environment Variables, Configuration and Secrets
.env.example

The committed template listing variable names without values.

Introduced in 01B.2 Environment Variables, Configuration and Secrets
`.env` loading

Inspect finds a .env by searching up from the working directory; it never overrides variables already in the environment

Introduced in 10B.12 Running Inspect Evals for Real: Models, Configuration, Concurrency, Caching, Errors and Eval Sets (optional)
.eval log file

Inspect's default log file format: a zip archive of zstd-compressed JSON members (header, sample summaries, reductions, one file per sample and epoch) that can be read partially. *(Introduced in [lesson 10B.8](10b-eval-frameworks/08-inspect-fundamentals.md#62-what-is-inside-a-eval-file))* *(Extended in [lesson 10B.13](10b-eval-frameworks/13-inspect-logs-analysis-and-extending.md#21-inside-a-eval-file))*

@entrypoint

The decorator that turns a one-argument function into a compiled, resumable workflow (a Pregel).

Introduced in 08F.14 The Functional API and Streaming
__eq__ / __hash__

Equality and hashability — must agree; defining __eq__ alone makes the object unhashable.

Introduced in 01A.6 Classes, Dataclasses and Enums
EAFP / LBYL

"Easier to Ask Forgiveness than Permission" (try the operation, catch the failure) vs "Look Before You Leap" (check conditions first). Python favours EAFP because checks aren't atomic.

Introduced in 01A.8 Errors, Exceptions, Debugging and Logging
Eager task

A task that runs its first step synchronously inside create_task (Python 3.12, opt-in via asyncio.eager_task_factory) and is only scheduled if it actually suspends.

Introduced in 01C.2 Synchronous vs Asynchronous Programming and the asyncio Event Loop
Early stopping (Inspect)

Skipping sample-epochs based on results so far, through an object implementing the EarlyStopping protocol on the task; it needs scheduling that lets evidence arrive first.

Introduced in 10B.12 Running Inspect Evals for Real: Models, Configuration, Concurrency, Caching, Errors and Eval Sets (optional)
Early stopping, weight decay, dropout

Stopping training when the validation error starts rising, even if the training error is still falling, to avoid overfitting.

Introduced in 02.1 Neural Network Basics
early termination / shortcut retrieval

Trying retrievers in priority order and stopping at the first "good enough" result.

Introduced in 07.2 Retrieval Strategies for RAG
Early win

A small, low-risk shipped improvement that proves you can deliver in your first months.

Introduced in 14B.9 Your First 90 Days and Long-Term Growth
Easy Apply

LinkedIn's on-platform application flow, subject to daily and speed limits.

Introduced in 14B.5 Résumé, LinkedIn and the Job Search
Echo cancellation (AEC)

Removing speaker output leaking into the mic.

Introduced in 09.6 Audio-Native Models and Realtime Foundations
Echo-back check

Asking the model to restate the task before answering, to separate comprehension from reasoning failures.

Introduced in 04.9 Iterating, Debugging and Porting Prompts
Edge

A transition between nodes: normal (fixed), conditional (chosen by a function) or dynamic (Command, Send).

Introduced in 08F.10 LangGraph Fundamentals
Edit capture

Recording user edits to AI output as labelled training examples.

Introduced in 13A.3 AI UX II: Trust, Transparency, Feedback and Human-in-the-Loop
edit_score() (Inspect)

A function that changes one score in an eval log, keeps the original in the score's history with provenance, and recomputes the metrics.

Introduced in 10B.11 Model Grading in Inspect, and Validating the Grader (optional)
Editable install (pip install -e .)

Installs the project as a link to the source tree — live edits.

Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Library
efConstruction / ef_construction / ef_construct

HNSW candidate-list size at build time.

Introduced in 06.4 Vector Indexes: HNSW, IVF, Quantization and Trade-offs
Effect size (paired Cohen's d)

Mean(diff)/sd(diff): how big the difference is, independent of sample size.

Introduced in 10A.8 Regression Testing, CI and Experiment Tracking
Effective context length

The longest input at which a model still performs a task above a quality bar, often far shorter than its advertised context window.

Introduced in 02.7 Context Windows
Effective date

The first (and optionally last) day a price applies.

Introduced in 03.7 Token Counting, Cost Tracking and Prompt Caching
Effective parallelism

Total compute time divided by critical-path latency: a multi-agent run's average concurrency, near 1 when it ran mostly in sequence; not a speed-up over anything.

Introduced in 10A.12 Evaluating Multi-Agent Systems and Validating User Simulators
effective score

The reranker's score when the pipeline produced one, else the retriever's own — the score shaping decisions use.

Introduced in 07.2 Retrieval Strategies for RAG
efSearch / ef / num_candidates

HNSW candidate-list size at query time (same idea, different names).

Introduced in 06.4 Vector Indexes: HNSW, IVF, Quantization and Trade-offs
Egress allow-list

Network policy permitting only approved destinations from the sandbox.

Introduced in 08A.15 Coding and Computer-Use Agents
Egress allowlist

The exact hosts, schemes and ports a tool may contact

Introduced in 08A.5 Required Agent Security
Egress control

Restricting outbound network destinations at the sandbox or proxy layer — the control that cuts the exfiltration leg of the lethal trifecta.

Introduced in 12.6 Securing Tools, Agents and MCP
Eight fallacies

Sun engineers' list of always-false network assumptions (Deutsch 1994, the eighth added by Gosling) — the prod-debugging checklist.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Eight fallacies of distributed computing

Deutsch's 1994 list of always-false network assumptions — the production-debugging checklist.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
elbow cutoff

Adaptive-k heuristic: cut the ranked score list at the largest gap between consecutive scores.

Introduced in 07.2 Retrieval Strategies for RAG
Elicitation

Server→client request for user input (form or URL mode).

Introduced in 08E.1 The Model Context Protocol (MCP)
Elicitation (evaluation)

How hard, and in what way, an eval's solver tries to get the right answer out of a model (prompting, chain of thought, critique, agents); part of what the score measures.

Introduced in 10B.9 Inspect Datasets, Solvers and Task Configuration (optional)
elicitation_callback

Client constructor callback that answers elicitation/create entries inside MRTR inputRequests; the SDK then retries the call automatically.

Introduced in 08E.1 The Model Context Protocol (MCP)
EmailStr

Email-validated string; requires the pydantic[email] extra (email-validator).

Introduced in 01B.6 Data Validation with Pydantic
Embed spec version

The recorded (model, dims, preprocessing) tuple that makes vectors comparable; change ⇒ re-embed.

Introduced in 09.9 Multimodal Embeddings and Retrieval
embed_text vs display text

The breadcrumb-augmented text sent to the embedder vs the raw text shown to users.

Introduced in 05.6 Chunking Strategies
Embedder / EmbedSpec

The tuple of model id, version, dimensions, task type and preprocessing hash that fully determines an embedding vector; part of every cache key.

Introduced in 06.2 Embedding Pipelines: Batching, Caching, Scale and Cost
Embedder protocol

A small interface (model_id, dimensions, embed_documents, embed_query) that abstracts over embedding providers and local models so pipeline code stays provider-agnostic and testable with a deterministic fake.

Introduced in 06.1 Embedding Models and APIs in Practice
Embedding

A dense vector of numbers representing content so that similar content gets similar vectors.

Introduced in 02.3 Embeddings
Embedding drift

Vectors gradually or suddenly no longer matching the current model, content or queries.

Introduced in 02.3 Embeddings
Embedding inversion

Reconstructing the original text from its embedding.

Introduced in 02.3 Embeddings
Embedding matrix (token embedding table)

The learned vocabulary × hidden-size table an LLM uses to look up each token's vector.

Introduced in 02.3 Embeddings
Embedding model

A model trained specifically to produce comparable vectors for texts (or images).

Introduced in 02.3 Embeddings
Embedding reuse

Keeping vectors for surviving chunk IDs instead of re-calling the embedder.

Introduced in 05.9 Ingestion Pipelines and Incremental Updates
Embedding space

The coordinate system a particular embedding model (plus its version, dimensions and preprocessing) produces vectors in; vectors from different spaces cannot be meaningfully compared even if their shapes match.

Introduced in 06.1 Embedding Models and APIs in Practice
Embedding table

See [Embedding matrix (token embedding table)](#embedding-matrix-token-embedding-table).

Embeddings

The interface with embed_documents (many texts) and embed_query (one question) that every embedding class implements.

Introduced in 08F.9 RAG with LangChain
EmbedSpec

The tuple of model id, version, dimensions, task type and preprocessing hash that fully determines an embedding vector; part of every cache key.

Introduced in 06.2 Embedding Pipelines: Batching, Caching, Scale and Cost
Emergency override

Scripted escalation for symptom language, before any dialog state.

Introduced in 13B.5 Capstone Build C: The Realtime Voice Agent Product
Emergent abilities

Capabilities that seem to appear suddenly as models get larger; research suggests this is partly an artefact of all-or-nothing metrics.

Introduced in 02.6 How LLMs Are Trained
Employment verification

The employer practice of checking dates, titles and credentials, often via third parties.

Introduced in 14B.5 Résumé, LinkedIn and the Job Search
Empty attempt

A re-run of a sample with Inspect's do-nothing empty_attempt() solver, scored by the task's own scorers to define what a failure looks like.

Introduced in 10B.13 Inspect Logs, Analysis and Extending Inspect (optional)
Empty jailbreak

A "successful" jailbreak that produces useless or vague harmful output — metrics that only check refusal often overstate real success.

Introduced in 12.3 Jailbreaks and Model-Level Safety
Empty-list score

The fixed score a QAG metric returns when nothing was extracted to judge: 1 for most DeepEval metrics, 0 for Contextual Recall, Contextual Relevancy and Summarization alignment, so an extraction failure can look like a perfect result.

Introduced in 10B.4 DeepEval's Built-in Metrics, Opened Up: RAG, Safety, Conversations and More
Empty-plan pass

DeepEval 4.3.5's behaviour of scoring Plan Adherence and Plan Quality as 1.0 when no plan is evidenced in the trace, making plan instrumentation mandatory before those scores mean anything.

Introduced in 10B.5 DeepEval Tracing, Component-Level Evals and Agent Evaluation
Encoder-decoder ASR

Whisper-style architecture pairing an audio encoder with an autoregressive text decoder.

Introduced in 09.4 Speech-to-Text
Encoder-only / decoder-only / encoder-decoder

The three transformer variants (BERT / GPT / T5-style).

Introduced in 02.4 Attention and Transformers
encoding=

The codec mapping bytes↔str on open(); always pass "utf-8" explicitly — Windows defaults to a locale code page.

Introduced in 01A.9 Files, Paths, JSON and CSV
Encrypted reasoning (encrypted_content)

OpenAI's opaque reasoning payload on reasoning items in stateless mode, which you resend to keep continuity.

Introduced in 03.2 Messages, Roles and Conversation State
Encrypted reasoning item

OpenAI's opaque reasoning output (an encrypted_content field on reasoning items) that you pass back to continue the model's reasoning across calls, especially in stateless mode.

Introduced in 02.8 Reasoning Models
EncryptedSerializer

A serializer wrapper that encrypts checkpoints at rest (AES via from_pycryptodome_aes).

Introduced in 08F.11 Persistence, Durable Execution and Memory
End-of-turn detection

Deciding the speaker finished their thought, via silence duration or a semantic completeness model.

Introduced in 09.6 Audio-Native Models and Realtime Foundations
End-state grader

A check that runs after the agent finishes and looks at the result (for example, the tests), not at what the agent said

Introduced in 08A.4 Harness Engineering: Everything Around the Model
Endpoint

One method + URL pair in an API ([glossary](glossary.md) has the full entry).

Introduced in 00.8 Reading API Documentation
Endpointing

Deciding when a speaker's turn has ended in streaming speech-to-text.

Introduced in 09.4 Speech-to-Text
Energy VAD / ML VAD

Threshold-on-loudness / neural-net speech detector (Silero).

Introduced in 09.6 Audio-Native Models and Realtime Foundations
Engineering manager (EM)

A people manager responsible for a team's output, growth and health.

Introduced in 14B.1 The AI Engineering Landscape: Roles, Teams and Career Paths
Enrichment

Deriving metadata from content — deterministically (regex, lookups, NER) or via schema-validated LLM calls — and versioning it against drift.

Introduced in 05.8 Metadata Design
Enrichment drift

Tag/output distribution shifting when prompts or models change.

Introduced in 05.8 Metadata Design
Ensemble / voting

Same task run through N agents with programmatic or judge-based aggregation.

Introduced in 08D.3 Multi-Agent Systems
EnsembleRetriever

A classic retriever that fuses several retrievers' rankings by weighted reciprocal rank fusion.

Introduced in 08F.9 RAG with LangChain
Entailment check

Verifying that a quoted passage actually supports the claim it is attached to (NLI model or LLM judge), beyond string containment.

Introduced in 07.5 Citations and Attribution
Entity-centric document

Grouping rows by the entity users ask about (customer → all their orders).

Introduced in 05.1 Data Sources, Formats and the Ingestion Mindset
Entropy

A single number measuring how spread out a probability distribution is: high entropy means uncertain.

Introduced in 02.5 Generation and Sampling
Entry point (inspect_ai)

Package metadata ([project.entry-points.inspect_ai]) that makes Inspect import a module at startup, registering the package's tasks, scorers, providers, hooks and other extensions.

Introduced in 10B.13 Inspect Logs, Analysis and Extending Inspect (optional)
entrypoint.final

A return wrapper, entrypoint.final(value=, save=), that returns one value to the caller and saves another for previous.

Introduced in 08F.14 The Functional API and Streaming
Enum / member

A fixed vocabulary of named values; members have .name and .value.

Introduced in 01A.6 Classes, Dataclasses and Enums
Enum mode

Gemini's text/x.enum response type for generate_content, which returns one bare enum value instead of a JSON object.

Introduced in 03.4 Structured Output
Enum/StrEnum/IntEnum

Named constant sets; StrEnum members equal their string value.

Introduced in 01A.11 Coming from PHP, JavaScript or Java: Side by Side
enumerate

Yields (index, item) pairs in a loop.

Introduced in 01A.3 Control Flow and Functions
`env_ignore_empty`

SettingsConfigDict option treating empty-string environment variables as unset so field defaults apply.

Introduced in 01B.2 Environment Variables, Configuration and Secrets
env_nested_delimiter

__ separator mapping A__B env vars into nested models.

Introduced in 01B.2 Environment Variables, Configuration and Secrets
Environment alias (production, staging)

A mutable pointer to a specific prompt version, used for fast rollout and rollback — a *prompt*-environment pointer, distinct from a model alias (which points at a model snapshot).

Introduced in 04.10 Prompt Templates, Versioning and a Prompt Library
Environment marker

A ; sys_platform == '...' condition on a requirement.

Introduced in 01B.1 Project Setup with uv: Environments, Dependencies and Tooling
Environment protection

CI/CD rules that restrict secrets and deployments to approved branches/actors.

Introduced in 11C.2 CI/CD for Prompts, Models and Evals
Environment variable

A named value the OS passes to every program (PATH, HOME, later API keys).

Introduced in 00.1 Setting Up Your Computer for Development
EOS token

A special end-of-sequence token the model generates to signal that it's finished.

Introduced in 02.5 Generation and Sampling
Ephemeral client secret / token

A short-lived credential minted server-side so browsers/clients can connect without your real API key.

Introduced in 09.7 Realtime Voice Agents
Ephemeral environment

A sandbox created per task and destroyed afterwards

Introduced in 08A.5 Required Agent Security
Ephemeral token / client secret

Short-lived credential minted server-side for client-side realtime sessions.

Introduced in 09.6 Audio-Native Models and Realtime Foundations
Episodic memory

Records of what happened — past sessions, incidents, outcomes — typically stored as summaries with pointers to full records.

Introduced in 08B.2 Memory for Agents: Short-Term and Long-Term
Episodic memory buffer

Reflexion's store of past reflections fed into later attempts.

Introduced in 08A.10 Agent Patterns: ReAct, Plan-and-Execute, Routing and Orchestrator-Workers
Epoch

One full pass through the entire training dataset.

Introduced in 02.1 Neural Network Basics
Epoch (Inspect)

One repetition of every sample in an Inspect run; a sample's epoch scores are reduced to one value (by default their mean) before metrics are computed.

Introduced in 10B.8 Inspect AI Fundamentals: Task = Dataset + Solver + Scorer (optional)
Epoch flip rate

The share of samples whose verdicts disagree across epochs of the same run: a measure of a system's instability, distinct from its accuracy.

Introduced in 10B.10 Inspect Scorers, Metrics, Epochs and the Statistics Inspect Reports (optional)
Equal-budget baseline

A single-agent configuration with the same model, tools, token budget and iterations as the multi-agent system it is compared with.

Introduced in 10A.12 Evaluating Multi-Agent Systems and Validating User Simulators
Equity grant

Equity compensation terms: the grant, its schedule, the no-vest period, the option exercise price, and the main instrument types.

Introduced in 14B.8 Interview Prep III: Take-Homes, Behavioural Rounds and Offers
Erasure verification / residual rate

Proving a deletion by scanning every store and derived copy afterwards for the subject's canaries; the residual rate is the share of planted canaries still found, which must be zero.

Introduced in 10A.11 Evaluating Agent Memory and Context Management
Erasure/deletion runbook

The cross-store procedure for honouring a user's data-deletion request.

Introduced in 11C.4 Operating LLM Systems: Governance, Incidents and the Production Checklist
Error analysis

Reading actual failures and coding them into categories before designing metrics.

Introduced in 10A.1 Why Evals Matter: The Evaluation Mindset
Error budget

The allowed badness complement of an SLO: (1 - SLO) × window.

Introduced in 11A.2 Metrics, Dashboards, SLOs and Alerting
Error envelope

The uniform {"error": {...}} shape APIs use for failure responses.

Introduced in 00.8 Reading API Documentation
Error inside a 200 (FAILED outcome)

A 200 OK whose body reports a failure (status: "failed", an error object); retry only when its own code is transient.

Introduced in 03.8 Errors, Rate Limits, Timeouts and Retries
Error propagation

A wrong output from one agent being accepted and built on by the next

Introduced in 08D.1 One Agent or Several: Roles and the Two Basic Patterns
Error result

A tool result that tells the model the call failed (is_error, an error key or error text), instead of raising.

Introduced in 03.5 Tool Calling: The API Mechanics
Error taxonomy

A small, stable list of failure classes used to count and alert

Introduced in 11A.3 Latency Percentiles, Error Classification, Audit Logs, Session Replay, Dashboards and SLOs
Error threshold (`fail_on_error`)

How many sample errors (boolean, proportion or count) make the run fail

Introduced in 10B.12 Running Inspect Evals for Real: Models, Configuration, Concurrency, Caching, Errors and Eval Sets (optional)
Error-budget policy

The pre-agreed rule for what happens when an SLO's error budget burns at a given rate.

Introduced in 11C.4 Operating LLM Systems: Governance, Incidents and the Production Checklist
error_handler

A function attached to a node that runs only after retries are exhausted and returns an update or a Command.

Introduced in 08F.12 Human-in-the-Loop and Control Flow
Errored span (DeepEval)

A traced span whose function raised an exception; its status is ERRORED and its metrics are skipped, and in DeepEval 4.3.6 it fails the golden only if the exception escapes the trace, so a caught component crash can still produce a passing test case.

Introduced in 10B.5 DeepEval Tracing, Component-Level Evals and Agent Evaluation
errors=

Decode/encode recovery mode: strict, replace, ignore, backslashreplace (+ xmlcharrefreplace, namereplace on encode).

Introduced in 01A.2 Numbers, Strings and Text
Escalation

Moving work to a stronger model, a different provider or a human when the current path cannot succeed.

Introduced in 08A.9 Workflows vs Agents
Escalation path

The documented ladder for raising concerns: owner → skip-level/safety → formal channel.

Introduced in 14B.9 Your First 90 Days and Long-Term Growth
Escalation tracker

A session-level monitor that detects probing patterns (refusal streaks, category repetition, near-duplicate prompts) across conversation turns.

Introduced in 12.3 Jailbreaks and Model-Level Safety
Escape hatch

A deliberate way to pass provider-specific fields or reach the raw SDK object from inside an abstraction, such as Request.extra keyed by provider and Response.raw.

Introduced in 03.11 Building a Provider-Agnostic Client
Estimate

A guess at how long a ticket takes, with uncertainty attached.

Introduced in 00.9 Working Like an Engineer: Debugging, Asking for Help and Learning Habits
ETag / Last-Modified / 304

HTTP validators for conditional (unchanged) fetches.

Introduced in 05.3 Parsing HTML, Web Pages and Office Files
EU AI Act

The EU's AI-specific regulation, organised by risk tiers with staged dates

Introduced in 14A.3 Security, Data and Compliance Policy
Euclidean distance

Straight-line distance between vectors; lower means more similar.

Introduced in 02.3 Embeddings
Eval breaker

The flag the interpreter loop checks at safe points to handle pending requests such as "drop the GIL".

Introduced in 01C.5 The Global Interpreter Lock (GIL)
Eval case / case_id

The docs_qa/eval schema fields: one labelled test instance; the chunks that should reach the context (span-labelled upstream); correct behaviour is refusal; a partial answer is acceptable.

Introduced in 07.9 Evaluating RAG
Eval culture

The habits — ownership, eval-first development, shared datasets, review rituals, budgeting — that keep evaluations trusted and current.

Introduced in 10A.10 Evaluation Platforms, Benchmarks and Building an Eval Culture
Eval dataset

A labelled set of inputs with the information needed to judge outputs — the first term of "dataset + task + scorer + aggregation + report".

Introduced in 10A.2 Building Evaluation Datasets
Eval flywheel

The loop where production failures become new labelled eval cases.

Introduced in 10A.1 Why Evals Matter: The Evaluation Mindset
Eval framework

A library that supplies the parts of an eval harness (case format, checks, runner, records, command line) so you do not write them yourself. DeepEval and Inspect AI are two; evalkit is a small one you wrote.

Introduced in 10B.1 The Eval Framework Track: DeepEval, Inspect AI and Your Setup
Eval gate

A policy that turns an evalkit run directory into a blocking FAIL, advisory WARN or PASS using GateThresholds and a baseline run.

Introduced in 11C.2 CI/CD for Prompts, Models and Evals
Eval harness

The code that runs dataset × task × scorers and produces the report.

Introduced in 10A.1 Why Evals Matter: The Evaluation Mindset
Eval kit

The code layer of evaluation: datasets, scorers, judges, runner and reports that you own and version in your repo. evalkit is this path's kit.

Introduced in 10A.10 Evaluation Platforms, Benchmarks and Building an Eval Culture
Eval maturity model

A 0–4 scale (Vibes → Ad-hoc → Dataset → Automated → Closed loop) for assessing a team's evaluation practice.

Introduced in 10A.10 Evaluation Platforms, Benchmarks and Building an Eval Culture
Eval mode (DeepEval)

The setting (llm, hybrid, system_one) that decides whether an LLM judge or the paid Jev decision model makes a metric's yes/no decisions.

Introduced in 10B.3 Judges in DeepEval: Models, G-Eval, DAG and Custom Metrics
Eval platform

A product layer around evaluations — dataset UI, run comparison, annotation queues, CI hooks — that sells visibility and collaboration rather than measurement.

Introduced in 10A.10 Evaluation Platforms, Benchmarks and Building an Eval Culture
Eval report

A decision document containing setup, metrics with confidence intervals, slices, failure examples, cost and a recommendation.

Introduced in 10A.10 Evaluation Platforms, Benchmarks and Building an Eval Culture
Eval saturation

An eval the system already passes completely, so it no longer shows progress.

Introduced in 10A.1 Why Evals Matter: The Evaluation Mindset
Eval set (Inspect)

A run of several task × model pairs that owns a log directory, retries failed tasks, reuses completed samples, and is a no-op when re-run complete; inspect eval-set exits 1 when tasks remain incomplete.

Introduced in 10B.12 Running Inspect Evals for Real: Models, Configuration, Concurrency, Caching, Errors and Eval Sets (optional)
Eval set / evaluation set

A fixed set of items with known expected behaviour used to measure system quality.

Introduced in 10A.2 Building Evaluation Datasets
Eval smoke test

A keyless CI check running the eval pipeline against a fake model to catch wiring bugs deterministically.

Introduced in 14B.3 GitHub Presence and Project READMEs
Eval spec

The golden examples, scoring method and pass threshold written into the PRD before the build, so "done" is a number.

Introduced in 13A.1 Product Thinking for AI Features: What to Build and When Not to Use AI
Eval table with confidence intervals

Published metrics showing dataset size, method, date and uncertainty bounds.

Introduced in 14B.2 Portfolio Strategy: Choosing and Shaping Projects
Eval task / grader

A prompt plus the checks that decide pass/fail (state, tool-call, budget, judge, human).

Introduced in 08A.14 Reliable, Safe and Observable Agents
Eval-before-merge rule

The rule that behaviour-changing work merges only after an eval run shows no regression against a baseline

Introduced in 14A.2 Review Standards, Coding and Prompt Conventions
Eval-driven development

Writing the eval alongside the system and letting it adjudicate every change.

Introduced in 10A.1 Why Evals Matter: The Evaluation Mindset
Eval-set drift

The dataset decaying: label rot, distribution shift, saturation.

Introduced in 10A.2 Building Evaluation Datasets
eval_retry

Inspect's function and command (inspect eval-retry) that finishes a failed or crashed task in a new log with the same task id, reusing its completed samples.

Introduced in 10B.12 Running Inspect Evals for Real: Models, Configuration, Concurrency, Caching, Errors and Eval Sets (optional)
EvalExample

The Pydantic schema for one eval case: example_id, inputs, expected, split, tags, difficulty, language, rubric, provenance, notes.

Introduced in 10A.2 Building Evaluation Datasets
evalkit

This module's shared eval package: core.py in 10A.1, dataset.py (10A.2), scorers.py (10A.3), judges.py (10A.4), runner.py (10A.8).

Introduced in 10A.1 Why Evals Matter: The Evaluation Mindset
EvalLog

The Python object for a whole Inspect log: status, the run's specification, plan, results, stats, error, samples, reductions, tags, metadata and post-run edit history. *(Introduced in [lesson 10B.8](10b-eval-frameworks/08-inspect-fundamentals.md#72-finding-logs-and-the-header))* *(Extended in [lesson 10B.13](10b-eval-frameworks/13-inspect-logs-analysis-and-extending.md#32-evallog-the-top-level))*

`evals_iterator`

EvaluationDataset's generator API for traced evaluation: it yields goldens, collects spans produced by the application run, evaluates span and trace metrics, and returns the result as the generator's return value.

Introduced in 10B.5 DeepEval Tracing, Component-Level Evals and Agent Evaluation
EvalSample

One sample's record for one epoch in an Inspect log: input, target, messages, output, scores, events, usage, timing and errors.

Introduced in 10B.13 Inspect Logs, Analysis and Extending Inspect (optional)
EvalSpec

The part of an Inspect log that records what ran: task and version, model and generation settings, eval configuration, dataset ids, git revision and the Inspect version.

Introduced in 10B.13 Inspect Logs, Analysis and Extending Inspect (optional)
evaluate() (DeepEval)

DeepEval's in-code runner: scores a list of test cases with a list of metrics and returns an EvaluationResult of TestResults, each with per-metric MetricData.

Introduced in 10B.2 DeepEval Fundamentals: Test Cases, Metrics and the Test Runner
Evaluation / eval

A structured, repeatable measurement of system quality: dataset + task + scorer(s) + aggregation + report.

Introduced in 10A.1 Why Evals Matter: The Evaluation Mindset
evaluation awareness

Evidence that a model recognises or reasons about the fact that it is being evaluated.

Introduced in 10B.16 Evaluating Agents with Inspect, and the Inspect Ecosystem (optional)
Evaluation matrix

Rows are pipeline components (query rewriting, retrieval, reranking, context assembly, generation, citations), columns are metric families; each cell names the metric that can see that component's failures at the cheapest sufficient isolation level.

Introduced in 10A.6 Evaluating RAG Pipelines in Depth
Evaluation steps (G-Eval)

The numbered instructions a G-Eval judge applies when scoring; either generated by the judge from criteria or fixed by you with evaluation_steps, which keeps the metric identical across runs.

Introduced in 10B.3 Judges in DeepEval: Models, G-Eval, DAG and Custom Metrics
Evaluation-driven development

Writing the eval alongside the system and letting it adjudicate every change.

Introduced in 10A.1 Why Evals Matter: The Evaluation Mindset
evaluation_template (DeepEval)

The metric constructor argument that replaces one or more of a metric's prompts with your own template class (DeepEval passes the template variables your method's signature names), while keeping the metric's extraction structure and scoring code. *(Introduced in [lesson 10B.3](10b-eval-frameworks/03-deepeval-judges-geval-and-custom-metrics.md#410-replacing-the-prompt-evaluation_template); applied to a built-in QAG metric in [lesson 10B.4](10b-eval-frameworks/04-deepeval-built-in-metrics.md#94-when-the-definition-is-wrong-for-you-template-parameter-g-eval-or-your-own-metric))*

EvaluationDataset

DeepEval's collection of goldens, either all single-turn or all multi-turn, with JSON, JSONL and CSV loaders and savers.

Introduced in 10B.6 DeepEval Datasets, Synthetic Data, Conversation Simulation and Benchmarks
Evaluator

A function (or judge) that scores a run; it asks for any of run, example, inputs, outputs, reference_outputs.

Introduced in 11A.5 LangSmith, Testing and Deployment
Evaluator-optimizer

A generate→critique→revise loop that iterates until a quality bar is met or a stop criterion fires.

Introduced in 08A.9 Workflows vs Agents
Event (Inspect)

One entry in a sample's transcript, such as a span boundary, model call, tool call, state change, score, error or log message.

Introduced in 10B.13 Inspect Logs, Analysis and Extending Inspect (optional)
Event contract

The typed message vocabulary between server and clients.

Introduced in 13A.2 AI UX I: Streaming, Latency and Perceived Speed
Event dispatch

The SSE rule that a blank line ends an event and hands it to the client.

Introduced in 03.3 Streaming Responses
Event hook

Callable fired per request/response (logging, tracing, metrics).

Introduced in 01B.5 HTTP Clients with httpx
Event hooks (httpx)

Per-request and per-response callables registered on an httpx client for wire-level logging, monitoring or tracing.

Introduced in 01B.10 Logging, Debugging and Packaging: Putting the Toolkit Together
Event loop

The scheduler that runs async/await coroutines cooperatively.

Introduced in 01A.11 Coming from PHP, JavaScript or Java: Side by Side
Event protocol

The small set of typed events your own server sends to its clients (delta, usage, error, done…), independent of any provider.

Introduced in 03.3 Streaming Responses
Event sourcing

Storing events as the primary record and deriving current state by replay; the pragmatic version is an append-only audit-events table.

Introduced in 13A.5 Architecture Patterns for AI Applications
Event streaming

The stream_events(version="v3") API that exposes typed projections (messages, tool_calls, values, ...) of an agent run.

Introduced in 08F.8 Tools and create_agent
Event-driven invalidation

Dropping cached entries on the events that change their inputs (document delete, reindex, policy change).

Introduced in 11B.3 Caching Strategies
Event-driven pipeline

An architecture where producers emit events and consumers process them independently, with state held in stores and the event log rather than in request scope.

Introduced in 13A.5 Architecture Patterns for AI Applications
Event-loop lag

How late a timer fires on the event loop; measures how long the loop was blocked.

Introduced in 01C.1 Concurrency, Parallelism and Context Switching
EventSource

The browser's built-in SSE client: GET only, no custom headers, and automatic reconnection that sends Last-Event-ID.

Introduced in 03.3 Streaming Responses
Evidence

An artefact a stranger could inspect: repo, test suite, eval report, PR review, postmortem.

Introduced in 14A.8 Skills Map and Gap Analysis
Evidence budget

The token limit for what the judge sees, set by the judge's context window; overflow is handled by ranking, chunking or per-criterion calls and recorded in run metadata.

Introduced in 10A.4 LLM-as-Judge
Evidence bundle

Everything shown to a judge that the verdict may depend on: question, output, context, reference, pre-verified facts.

Introduced in 10A.4 LLM-as-Judge
evidence chain of custody

The traceable path from task input and system configuration through execution evidence, scoring, aggregation, audit and public claim.

Introduced in 10B.16 Evaluating Agents with Inspect, and the Inspect Ecosystem (optional)
Evidence field

The structured passage_id+quote pairs that make an answer verifiable.

Introduced in 07.4 Grounded Generation: Prompts, Context Assembly and Abstention
Evidence gap vs skill gap

"I can't prove X" (documentation) vs "I can't do X" (learning) — different fixes.

Introduced in 14A.8 Skills Map and Gap Analysis
Evidence layer

The additions that turn a learning project into portfolio material: evals, failure analysis, cost report, security note, demo, decision log.

Introduced in 14B.2 Portfolio Strategy: Choosing and Shaping Projects
Evidence preservation

Snapshotting security events, traces, audit logs and exact outputs to immutable storage before remediation, with integrity hashing.

Introduced in 12.10 Security Operations, Incident Response and the Safety Checklist
Evidence theatre

"Verified" badges or spinners implying checks that don't happen.

Introduced in 13A.3 AI UX II: Trust, Transparency, Feedback and Human-in-the-Loop
evidence trustedness ladder

The ordering from directly observed local execution through recorded tool events, provider observations, external self-report and unverifiable claims.

Introduced in 10B.16 Evaluating Agents with Inspect, and the Inspect Ecosystem (optional)
Evidence-backed take

An opinionated post whose claims rest on the author's own measurements rather than assertion.

Introduced in 14B.4 Writing and Learning in Public
Evidence-based explanation

Explanation that lets users verify independently (citations, source regions).

Introduced in 13A.3 AI UX II: Trust, Transparency, Feedback and Human-in-the-Loop
Evol-Instruct

A 2023 technique evolving instructions to be harder/more constrained for training data.

Introduced in 10A.2 Building Evaluation Datasets
Evolution (DeepEval)

A weighted rewrite step that makes a generated input harder or broader; seven types descended from Evol-Instruct and WizardLM.

Introduced in 10B.6 DeepEval Datasets, Synthetic Data, Conversation Simulation and Benchmarks
Exact k-NN

Scoring a query vector against every stored vector and returning the true top-k — the baseline all ANN indexes approximate.

Introduced in 06.3 Similarity Metrics and Nearest-Neighbour Search
exact-match cache

CachedRetriever: memoises (query, k, filters) → hits with TTL; filters carry the ACL scope.

Introduced in 07.2 Retrieval Strategies for RAG
Exact-match response cache

Stores whole LLM responses keyed by normalised request + scope + versions; replays identical requests without a provider call.

Introduced in 11B.3 Caching Strategies
Example / Score / Scorer / FunctionScorer / Row / EvalReport

Evalkit's core types: a case, a verdict, the scorer protocol, the adapter that wraps a plain function as a scorer, a scored run, the aggregate.

Introduced in 10A.1 Why Evals Matter: The Evaluation Mindset
Example selector

An object that chooses which examples to include per input (LengthBased, SemanticSimilarity, MaxMarginalRelevance, or custom).

Introduced in 08F.6 Prompts, Output Parsers and Structured Output
Example store

A store of labelled examples with embeddings for similarity-based selection.

Introduced in 04.2 Zero-Shot, Few-Shot and Examples
Exception chaining

Linking a new exception to the one being handled: implicit ("During handling...") or explicit via raise ... from e ("direct cause").

Introduced in 01A.8 Errors, Exceptions, Debugging and Logging
Exception handler

@app.exception_handler(...) — maps exception types to custom responses (your error envelope).

Introduced in 01B.7 FastAPI Basics: Building a Small API
Exception hierarchy

BaseException → Exception → specific classes like ValueError, KeyError.

Introduced in 01A.8 Errors, Exceptions, Debugging and Logging
Exception record

A time-boxed, approved record of an allowed departure from the standard

Introduced in 14A.1 Approved Providers, Models and Regions
ExceptionGroup / except*

Bundling several exceptions; matching subgroups by type (3.11+).

Introduced in 01A.8 Errors, Exceptions, Debugging and Logging
Excessive agency

An agent given more functionality, permission or autonomy than its task requires — OWASP LLM03:2026; the amplifier that turns prompt injection into real-world damage.

Introduced in 12.6 Securing Tools, Agents and MCP
Exchange (unit interaction)

A user turn plus the assistant turns that answer it, also called a unit interaction; DeepEval's turn metrics group a conversation into exchanges and slide windows over them, and its multi-turn agent metrics build these units first (incomplete or very short ones can be skipped). *(Introduced in [lesson 10B.4](10b-eval-frameworks/04-deepeval-built-in-metrics.md#61-turns-exchanges-and-windows))* *(Extended in [lesson 10B.5](10b-eval-frameworks/05-deepeval-tracing-and-agent-evaluation.md#111-the-unit-interaction-preprocessing-step))*

excinfo

The exception info object from pytest.raises, with .type/.value/.tb.

Introduced in 01B.8 Testing with pytest
`execute_tools()`

The handoff-aware function that executes calls requested in the latest assistant message.

Introduced in 10B.14 Tools and Agents in Inspect: Custom Tools, MCP, react() and Multi-Agent Systems (optional)
executemany

Bulk-insert API / dict-like rows / per-connection settings / Python 3.12+ transaction opt-out.

Introduced in 00.7 SQL Basics with SQLite
Execution accuracy / test-suite accuracy

Grading SQL (or code) by running it: on one database (execution accuracy, can over-credit) or on several databases built to tell wrong queries apart (test-suite accuracy).

Introduced in 10A.3 Deterministic Metrics and Code-Based Graders
Execution-augmented judging

Pre-computing verifiable facts in code and injecting them into the judge prompt as evidence.

Introduced in 10A.4 LLM-as-Judge
Execution-result evaluation

Judging generated SQL by comparing the rows it returns with a reference result, not by comparing query text.

Introduced in 14B.7 Interview Prep II: LLM System Design
Exemplar

A trace ID attached to a metric observation, linking an aggregated spike to the exact request that caused it.

Introduced in 11A.2 Metrics, Dashboards, SLOs and Alerting
Exfiltration channel

Any path by which model output can carry data out of the trust boundary — Markdown images/links auto-fetched on render, tool calls to attacker URLs, messaging tools, DNS side channels, covert encoding.

Introduced in 12.2 Prompt Injection: Direct and Indirect
Exfiltration indicator

Evidence that an actor attempted to move data out of the system — a request to a non-allow-listed domain or an outbound tool call to an unusual destination.

Introduced in 12.10 Security Operations, Incident Response and the Safety Checklist
EXIF

Metadata embedded in image files: camera, timestamps, orientation and often GPS location; it travels with the file unless you strip it.

Introduced in 03.6 Images, PDFs and Files
EXIF orientation

An EXIF flag telling viewers how to rotate a photo for display, instead of the pixels being stored upright; apply it before sending an image to a model.

Introduced in 03.6 Images, PDFs and Files
exif_transpose

Pillow function applying EXIF orientation to pixels.

Introduced in 09.1 Vision Applications: Understanding Images
Exit code / $?

The numeric success/failure result a command returns; $? holds the last one (0 = success).

Introduced in 00.2 The Terminal and Shell
Exit plan (eval framework)

The habits that make leaving an eval framework a port instead of a rewrite: datasets as JSONL in git, checks as plain functions, prompts and rubrics as files, archived run records, and your own statistics.

Introduced in 10B.17 DeepEval or Inspect? Choosing, Combining and Migrating (optional)
ExitStack

A stack of context managers entered dynamically, unwound in reverse.

Introduced in 01A.8 Errors, Exceptions, Debugging and Logging
Expand-contract migration

Add-new → dual-write → backfill → switch → drop-old, for zero-downtime schema changes.

Introduced in 11C.1 Deploying LLM Services
expect_abstain / partial_ok

Case labels: correct behaviour is refusal; a partial answer is acceptable.

Introduced in 07.9 Evaluating RAG
Expectations (DeepEval)

A per-test-case checklist of must and must-not conditions judged one by one with evidence; the case passes only if every condition passes.

Introduced in 10B.3 Judges in DeepEval: Models, G-Eval, DAG and Custom Metrics
Expected Calibration Error (ECE)

The average gap between a model's stated confidence and its actual accuracy across confidence bins — 0 is perfectly calibrated.

Introduced in 10A.3 Deterministic Metrics and Code-Based Graders
Expected facts

An enumerable list of facts an answer must contain, used as a paraphrase-robust correctness rubric instead of a prose reference answer.

Introduced in 07.9 Evaluating RAG
Experiment

The results of running one version of an application over a dataset: outputs, scores and traces.

Introduced in 11A.5 LangSmith, Testing and Deployment
Experiment tracking

Logging every run's dataset/prompt/model/judge versions, scores, cost, latency.

Introduced in 10A.8 Regression Testing, CI and Experiment Tracking
Expert / router / shared expert

One of the many smaller MLPs that replace the single MLP block in each layer of a mixture-of-experts model. Only a few are used for each token, and they don't correspond to human topics.

Introduced in 02.1 Neural Network Basics
EXPLAIN QUERY PLAN

Shows the planner's chosen strategy for a query.

Introduced in 00.7 SQL Basics with SQLite
Explicit context cache

A Gemini CachedContent object that you create, use by name, extend and delete, paying storage per hour. Not available in Interactions or on Gemini 4 Argon and later.

Introduced in 03.7 Token Counting, Cost Tracking and Prompt Caching
Explicit feedback

Deliberate user signals: thumbs, ratings, comments, edits.

Introduced in 10A.9 Offline vs Online Evaluation
Exploding gradient

See [Vanishing / exploding gradients](#vanishing--exploding-gradients).

Exploding offer

A job offer with an unreasonably short acceptance deadline, used to pressure quick decisions.

Introduced in 14B.8 Interview Prep III: Take-Homes, Behavioural Rounds and Offers
Exponential backoff

Wait time that doubles each retry, up to a cap.

Introduced in 01B.9 Retries, Timeouts, Backoff and Resilience
Exponential backoff + jitter

Retry strategy with growing delays randomised to prevent thundering herds.

Introduced in 14B.6 Interview Prep I: Coding and Fundamentals
Exponential backoff with jitter

Waiting longer after each failure, with a random component so retries spread out

Introduced in 08A.13 Background and Long-Running Agents
Export controls (EAR)

Trade rules that can restrict who may receive advanced chips, model weights or model access — separate from AI law and from model licences.

Introduced in 12.9 Responsible AI, Policy and Compliance
Expression

Code that produces a value (2 + 3, len(x)).

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
Expression vs statement

An expression produces a value; a statement performs an action. Only expressions auto-print in the REPL.

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
ExtendedModelResponse

A wrap_model_call return type that carries both the model response and a Command with state updates.

Introduced in 08F.8 Tools and create_agent
Extension

A plugin that adds a language or feature to an editor.

Introduced in 00.1 Setting Up Your Computer for Development
External content table

FTS5 table storing only the index; text stays in the source table.

Introduced in 00.7 SQL Basics with SQLite
Externally managed environment

A Python installation marked by an EXTERNALLY-MANAGED file (PEP 668) — typically a distro system Python — where pip refuses global installs so OS packages stay intact; the fix is a venv.

Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Library
extra_headers / extra_query / extra_body

Per-request escape hatches to add headers, query parameters or body fields.

Introduced in 03.1 The Provider APIs and Your First Calls
Extraction call

A schema-constrained LLM pass that converts a conversation into candidate memory operations for validation and storage.

Introduced in 08B.2 Memory for Agents: Short-Term and Long-Term
Extraction card

A short note capturing a paper's claim, method, evidence, limits and the applied "so what" — the output of pass 2.

Introduced in 14A.9 Staying Current in a Fast-Moving Field
Extractive compression

Selecting the most query-relevant sentences verbatim rather than generating a summary.

Introduced in 07.4 Grounded Generation: Prompts, Context Assembly and Abstention
Extractive vs abstractive summarization

Extractive summaries select and stitch sentences verbatim from the source; abstractive summaries write new sentences conveying the meaning.

Introduced in 04.8 Prompt Patterns for Common Tasks
Extractor

The step (usually a model call) that proposes candidate memories from a conversation

Introduced in 08B.4 Long-Term Memory and Memory Operations
extrasaction

DictWriter policy for unexpected dict keys: "raise" (default) or "ignore".

Introduced in 01A.9 Files, Paths, JSON and CSV
extruct / JSON-LD / OpenGraph

Structured-metadata extraction (syntax / schema.org embed / og:* meta).

Introduced in 05.3 Parsing HTML, Web Pages and Office Files

F

@field_validator

Decorated per-field and cross-field validation hooks with before/after/wrap/plain modes.

Introduced in 01B.6 Data Validation with Pydantic
__file__

Module-level variable holding the path of the file being executed; anchor for locating data files that ship with code.

Introduced in 01A.9 Files, Paths, JSON and CSV
f-string

String literal prefixed with f that evaluates {expr} (and {expr:spec}) inline at runtime; the modern default for formatting text.

Introduced in 01A.2 Numbers, Strings and Text
Fact-level extraction F1

Precision and recall of a memory store's active records against the current gold facts, matched one-to-one through a validated matcher, combined as F1.

Introduced in 10A.11 Evaluating Agent Memory and Context Management
Fact-retention probe

A test that plants a fact early and checks recall after many turns.

Introduced in 04.7 Context Engineering: Managing Context Over Time
Factuality vs faithfulness

Factuality is being correct about the world; faithfulness is being consistent with the context provided (the key metric for RAG).

Introduced in 02.10 Limitations and Failure Modes
Fail closed

When a check can't run (a missing secret, an unreadable config), refuse everything instead of accepting everything. See also [Fail-closed hook](#fail-closed-hook).

Introduced in 03.9 Async, Concurrency and Batch Processing
Fail fast

Validating required config at start-up so errors surface before request one.

Introduced in 01B.2 Environment Variables, Configuration and Secrets
Fail-closed gate

A CI gate that treats an empty scan, a vanished case, missing coverage, an errored span, a case with no scored metric or an unreadable result as failure and reports every reason it found, instead of passing when it checks nothing.

Introduced in 10B.17 DeepEval or Inspect? Choosing, Combining and Migrating (optional)
Fail-closed hook

A hook whose failure stops the call instead of being ignored: every before hook, and an after hook with fail_closed = True; the opposite of an *observer*, which is contained. See also [Fail closed](#fail-closed).

Introduced in 03.11 Building a Provider-Agnostic Client
Fail-closed versus fail-open (Inspect controls)

Whether a control blocks or allows what no policy covers: Inspect approval rejects unmatched tool calls, tool result review lets unmatched results through. See also [Fail closed](#fail-closed).

Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)
Fail-detection precision/recall

Of judge "fail" verdicts, how many are real / of real fails, how many caught.

Introduced in 10A.5 Calibrating and Validating Judges
Fail-open exporter

Telemetry that drops/buffers rather than blocks or raises — observability can't cause outages.

Introduced in 11A.1 Tracing and Observability for LLM Applications
fail_on_error

Inspect's error threshold: True (fail on the first error), False (never), a proportion below 1 or a count of 1 or more; in 0.3.292 the run fails once errors reach the threshold.

Introduced in 10B.12 Running Inspect Evals for Real: Models, Configuration, Concurrency, Caching, Errors and Eval Sets (optional)
fail_on_refusal

A generation setting that turns a provider refusal (stop_reason="content_filter") into a sample error instead of a scored, usually wrong, answer.

Introduced in 10B.12 Running Inspect Evals for Real: Models, Configuration, Concurrency, Caching, Errors and Eval Sets (optional)
Failing-set diff

Listing the cases that fail in one eval harness and not the other (new and missing failures) before comparing any aggregate number; the fastest way to find a porting bug, such as a test case that lost its metadata.

Introduced in 10B.1 The Eval Framework Track: DeepEval, Inspect AI and Your Setup
Failure family

A group of related RAG failure modes sharing a pipeline stage and fix owner (this lesson's F1–F14).

Introduced in 07.10 RAG Failure Modes and Debugging
Failure isolation

One bad document fails alone; the run continues and reports it.

Introduced in 05.1 Data Sources, Formats and the Ingestion Mindset
Failure state

Any designed UI condition produced when an AI feature cannot serve the request as normal; rendered from a UserMessage.

Introduced in 13A.4 AI UX III: Failure States, Edge Cases and Inclusive Design
Failure taxonomy

Classifying eval failures by pipeline stage — retrieval miss, assembly loss, generation, citation, abstention, judge disagreement, pipeline error — using set differences between retrieved/context/gold/cited ids.

Introduced in 07.9 Evaluating RAG
Failure triage queue

The queue of suspected production failures awaiting labelling.

Introduced in 10A.9 Offline vs Online Evaluation
Failure-modes section

A table of known failures: trigger, frequency, current behaviour, planned fix.

Introduced in 14B.2 Portfolio Strategy: Choosing and Shaping Projects
`failure_error_function`

The per-tool function that decides what error message the model sees when a tool fails

Introduced in 08F.2 OpenAI Agents SDK
Fair lock

A lock that guarantees waiters are served in a defined order (usually arrival order).

Introduced in 01C.4 Deadlocks, Livelock and Starvation
Fair queueing / round-robin

Serving one job per tenant or class per round instead of in global arrival order.

Introduced in 01C.4 Deadlocks, Livelock and Starvation
Fair-code

A label for source-available software with usage restrictions, used by n8n for its Sustainable Use License

Introduced in 08F.16 Low-Code Agent Platforms: n8n and Dify (awareness)
Faithful citation

A citation produced during generation and bound to the claim as it is written, rather than attached afterwards.

Introduced in 07.5 Citations and Attribution
Faithful transcription

Prompting a vision-language model to reproduce document text exactly rather than summarise or interpret it.

Introduced in 05.2 Parsing PDFs
Faithfulness / groundedness

The fraction of an answer's claims that are supported by the retrieved context; Ragas calls it faithfulness, TruLens groundedness.

Introduced in 07.9 Evaluating RAG
Fake

A working, simplified implementation used as a test double (e.g. ScriptedBackend).

Introduced in 01B.8 Testing with pytest
Fake agent under test

A scripted stand-in agent with a switch per defence, used to prove that the suite itself works

Introduced in 12.8 Red Teaming and Security Testing
Fake chat model

A test double such as FakeListChatModel or GenericFakeChatModel that returns scripted replies without a provider.

Introduced in 08F.7 Runnables and LCEL
Fake client

A hand-written stand-in for the model client that returns scripted replies (or raises) and records how it was called.

Introduced in 03.10 Logging, Debugging and Testing LLM Code
Fake clock

An injected, manually advanced source of "now" that makes time a test fixture, so expiry, decay and relative-time behaviour can be tested deterministically.

Introduced in 10A.11 Evaluating Agent Memory and Context Management
Fake judge (DeepEval)

FakeJudge (fake_judge.py), the DeepEval track's keyless stand-in judge: a DeepEvalBaseLLM subclass that answers each structured-output request from scripted answers (popped in call order, or routed by text found in the prompt) instead of calling a model, records every prompt, and fails loudly on an unscripted call; it tests eval plumbing, never the quality of a metric. Not the same as evalkit's function-style rag_eval.ScriptedJudge (10A.6) or online.FakeJudge (10A.9).

Introduced in 10B.2 DeepEval Fundamentals: Test Cases, Metrics and the Test Runner
FakeCallModel

Deterministic rule/script-driven stand-in for tests and demos.

Introduced in 10A.4 LLM-as-Judge
FakeJudge

The scripted DeepEval judge of 10B.2 that tests plumbing without a model call

Introduced in 13B.4 Capstone Build D: a Tool-Using or Two-Agent App with One Outside System
FakeModel

A deterministic stub call_model that lets a prompt test loop run with no API key.

Introduced in 04.1 Anatomy of a Good Prompt
Fallback

A second Runnable that with_fallbacks tries, with the same input, when the first raises a handled exception.

Introduced in 08F.7 Runnables and LCEL
Fallback chain

An ordered list of models tried in turn when the current one fails with an error on the fallback list, after its own retries are used up. See also [Model fallback](#model-fallback).

Introduced in 03.11 Building a Provider-Agnostic Client
Fallback ladder

Ordered degradation: partial result → model fallback → workflow → human handoff.

Introduced in 08A.14 Reliable, Safe and Observable Agents
False hit

A semantic-cache match serving an answer to a different question; the asymmetric cost of semantic caching.

Introduced in 11B.3 Caching Strategies
False positive / false negative

Saying yes when truth is no / saying no when truth is yes; evals must encode the asymmetric costs.

Introduced in 10A.1 Why Evals Matter: The Evaluation Mindset
False saving

An optimisation that cuts the cost dashboard but loses on business metrics (retries, re-asks, escalations).

Introduced in 11B.1 Cost and Latency Optimization
False-handoff rate / missed-handoff rate

The share of decision points where an agent handed off although none was needed, and where it kept a request that should have been handed off.

Introduced in 10A.12 Evaluating Multi-Agent Systems and Validating User Simulators
False-premise failure

The model agreeing with a user's incorrect assertion instead of correcting it from sources.

Introduced in 07.10 RAG Failure Modes and Debugging
Fan-in

Merging events from several concurrent streams into one ordered queue.

Introduced in 03.3 Streaming Responses
Fan-out

Running the same operation over many items concurrently.

Introduced in 01B.4 Concurrency Patterns for I/O-Heavy Work
Fan-out and merge

Running independent chain steps in parallel and then combining their results, trading N× cost for single-step latency.

Introduced in 04.8 Prompt Patterns for Common Tasks
fancy indexing

Indexing with a list/array of integers or booleans — always copies.

Introduced in 01B.11 NumPy and pandas Essentials for AI Work
Fast mode

A premium tier that charges more for lower latency.

Introduced in 11B.2 Tokenomics: The Unit Economics of LLM Applications
Fast-forward

Merge that slides a branch pointer forward when no divergence occurred.

Introduced in 00.3 Git Fundamentals
Fault injection

Testing by making a dependency misbehave on purpose (a hung server, a raising hook, a 200 that says failed) with a scripted server and a fake clock.

Introduced in 03.11 Building a Provider-Agnostic Client
faulthandler

Dumps the Python stack on hard crashes or on demand.

Introduced in 01A.8 Errors, Exceptions, Debugging and Logging
Feature brief

The one-page document capturing problem framing and AI-specific decisions before any build.

Introduced in 13A.1 Product Thinking for AI Features: What to Build and When Not to Use AI
Feature extraction (log-mel)

Converting waveform windows into the time-frequency representation an ASR model consumes.

Introduced in 09.4 Speech-to-Text
Feature flag

A runtime switch routing traffic to variants without redeploying.

Introduced in 10A.9 Offline vs Online Evaluation
federated retrieval

Querying all indexes and fusing results, as opposed to routing to one.

Introduced in 07.2 Retrieval Strategies for RAG
feed autodiscovery

Finding a site's RSS/Atom/JSON feed via <link rel="alternate"> in <head>.

Introduced in 05.3 Parsing HTML, Web Pages and Office Files
Feed-forward network (FFN) / MLP block

The per-token two- or three-matrix network inside each block.

Introduced in 02.4 Attention and Transformers
Feedback

A score on a run: a key, a numeric score or categorical value, and an optional comment.

Introduced in 11A.5 LangSmith, Testing and Deployment
Feedback flywheel

Production feedback → eval cases → improvements → better production.

Introduced in 13A.3 AI UX II: Trust, Transparency, Feedback and Human-in-the-Loop
Feedback loop (RAG)

/feedback + implicit signals → nightly triage → eval cases + ingestion fixes → regression gate.

Introduced in 07.11 Production RAG: Security, Freshness, Cost and Operations
Feedback taxonomy

Closed set of "what was wrong" categories for structured feedback.

Introduced in 13A.3 AI UX II: Trust, Transparency, Feedback and Human-in-the-Loop
Feedback-loop bias

Corruption of the data flywheel by survivorship, position, verbosity or sycophancy effects.

Introduced in 13A.6 Product Metrics, Experiments and Unit Economics
Fencing

Wrapping injected memories in a labelled block and telling the model they are data, not instructions

Introduced in 08B.5 Memory Failure Modes, Context Rot, Production State Stores and AGENTS.md-style Files
Fencing token

A value (here the attempt number) checked on writes so a stale owner is rejected

Introduced in 08A.13 Background and Long-Running Agents
Fertility

A tokenizer's average number of tokens per word for some text (lower means more efficient).

Introduced in 02.2 Tokens and Tokenization
fetch()

The browser's built-in HTTP client — the front end's only channel to a backend.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Few-shot chain-of-thought (few-shot CoT)

Eliciting reasoning by showing worked examples of question → reasoning → answer that the model imitates.

Introduced in 04.3 Reasoning Prompts: Chain-of-Thought and Friends
Few-shot CoT

CoT elicited by worked examples showing question → reasoning → answer.

Introduced in 04.3 Reasoning Prompts: Chain-of-Thought and Friends
FewShotChatMessagePromptTemplate

A template that renders each example as chat messages (human/AI pairs).

Introduced in 08F.6 Prompts, Output Parsers and Structured Output
FewShotPromptTemplate

A string template that renders examples between a prefix and a suffix.

Introduced in 08F.6 Prompts, Output Parsers and Structured Output
field(default_factory=...)

Per-instance default for mutable/expensive fields.

Introduced in 01A.6 Classes, Dataclasses and Enums
Field-level encryption

Encrypting specific fields in your application before they reach the store

Introduced in 08B.5 Memory Failure Modes, Context Rot, Production State Stores and AGENTS.md-style Files
Field-level metrics

Per-field precision/recall/exact-match with tolerance rules.

Introduced in 09.2 Document Understanding with Vision Models
FieldSpec

An Inspect mapping from source field names to Sample fields, including which columns become metadata or a frozen Pydantic model that validates them.

Introduced in 10B.9 Inspect Datasets, Solvers and Task Configuration (optional)
File annotations

The parsed-PDF content OpenRouter attaches to a Chat Completions reply; sending them back in the next turn skips re-parsing and its cost.

Introduced in 03.6 Images, PDFs and Files
File ID

A provider's reference to a file uploaded to its Files API, sent in requests instead of the file's bytes; scoped to a project or workspace, not to an end user.

Introduced in 03.6 Images, PDFs and Files
File lock

An operating-system lock on a file that coordinates unrelated programs (fcntl.flock on Unix); released by the OS if the holder dies.

Introduced in 01C.7 Shared Memory and Inter-Process Communication
File Search (OpenAI)

OpenAI's file_search Responses tool + vector stores: upload files, model retrieves and cites.

Introduced in 07.7 Managed RAG: Provider Tools, Platforms and Frameworks
File Search store (Gemini)

Google's file_search_stores container with a selectable embedding model.

Introduced in 07.7 Managed RAG: Provider Tools, Platforms and Frameworks
File state

A Gemini uploaded file's processing status, PROCESSING, ACTIVE or FAILED; only ACTIVE files can be used in requests.

Introduced in 03.6 Images, PDFs and Files
file-parser plugin

OpenRouter's PDF processing option, choosing between the native, cloudflare-ai (free) and mistral-ocr (paid, also on BYOK) engines.

Introduced in 03.6 Images, PDFs and Files
File-search tool

A provider-run tool that chunks, embeds and searches your uploaded files; OpenAI and Gemini have one, Anthropic does not

Introduced in 08A.8 Provider Built-in and Server-Side Tools
file_citation

Provider citation objects on answer content: OpenAI file_citation is file-level (file_id, filename, char index); url_citation binds an answer span to a web URL (OpenAI, Gemini Interactions, OpenRouter).

Introduced in 07.5 Citations and Attribution
Files API

A provider endpoint for uploading, listing, retrieving and deleting files that requests then reference by ID, each with its own size limits and retention rules.

Introduced in 03.6 Images, PDFs and Files
Filler / earcon

Acknowledgement sound during agent thinking (voice).

Introduced in 13A.2 AI UX I: Streaming, Latency and Perceived Speed
Filler phrase

A short spoken acknowledgement ("one moment") during slow tool calls.

Introduced in 09.7 Realtime Voice Agents
Filter (logging)

A logging.Filter that drops a record or mutates it — attaching a request ID or scrubbing secrets — before formatting.

Introduced in 01B.10 Logging, Debugging and Packaging: Putting the Toolkit Together
Filter field map

The explicit schema-field → metadata-key table deciding which extracted filters become search() predicates.

Introduced in 07.3 Query Understanding, Rewriting and Expansion
Filter scope

The permission context derived from a Principal and applied as mandatory clauses inside every retrieval query; empty group sets fail closed.

Introduced in 07.11 Production RAG: Security, Freshness, Cost and Operations
Filterable / searchable / display-only field

The three audiences a metadata field can serve: exact/range matching at query time, lexical-semantic matching, or human display only.

Introduced in 05.8 Metadata Design
FilterScope / scope key

The permission context translated into mandatory retrieval filters and a cache-key component; empty groups fail closed.

Introduced in 07.11 Production RAG: Security, Freshness, Cost and Operations
Filtration (DeepEval)

A critic and rewrite loop for synthetic inputs and conversational scenarios that keeps the last rewrite when retries run out, so it never rejects anything.

Introduced in 10B.6 DeepEval Datasets, Synthetic Data, Conversation Simulation and Benchmarks
Final

"Assign once" — advisory to checkers; doesn't freeze the object.

Introduced in 01A.10 Type Hints and Writing Readable Code
Final-state scoring

Scoring by reading files, processes or other world state after the agent has acted, rather than trusting its answer.

Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)
Finalizer (__del__)

Code that runs when an object is destroyed; timing, exceptions and exit-time behaviour are unreliable, so it is not a cleanup mechanism.

Introduced in 01C.6 Python Memory Management
Fine-grained location

Caret under the exact failing sub-expression in tracebacks (Python 3.11+, PEP 657).

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
Fine-grained tool streaming

Anthropic's per-tool eager_input_streaming option: tool input streams without server-side buffering or validation, so it arrives sooner but may be invalid JSON.

Introduced in 03.3 Streaming Responses
Fine-tune rot

The drift of a tuned model's behaviour when its base model updates or the data distribution moves — the fine-tuning analogue of model drift.

Introduced in 13A.8 Decision Frameworks: Eight Decisions Plus One
Fine-tuning

Further training an existing model on your own data, changing its weights.

Introduced in 02.1 Neural Network Basics
Finish reason / stop reason

The field telling you why generation stopped.

Introduced in 02.5 Generation and Sampling
Finish tool

A tool (e.g. submit_answer) whose successful call ends the loop with its output.

Introduced in 08A.2 The Tool Loop: From One Round Trip to an Agent
FinOps for AI

The discipline of forecasting, attributing, budgeting and governing LLM spend.

Introduced in 11B.1 Cost and Latency Optimization
First-class function

A function usable as a value (pass, store, return).

Introduced in 01A.3 Control Flow and Functions
Five-minute test

The cold-review script for evaluating whether a repo survives a hiring manager's first scan.

Introduced in 14B.2 Portfolio Strategy: Choosing and Shaping Projects
Fix sufficiency / fix necessity (attribution)

Fixing a point is sufficient for success when fixing it alone flips a failed run, and necessary when the run still fails with every other point fixed; in causal terms the first makes the fault a but-for (necessary) cause of the failure, and the second makes the fault sufficient on its own.

Introduced in 10A.12 Evaluating Multi-Agent Systems and Validating User Simulators
Fixed and broken counts

In a reflection ablation, tasks reflection turned from fail to pass, and from pass to fail

Introduced in 08A.11 Reflection, Parallel Fan-Out and Agent-as-a-Tool
Fixed-criterion template

A grading template that contains the criterion itself, so a grader can check a behaviour (such as not caving in to a false premise) without a per-sample target.

Introduced in 10B.11 Model Grading in Inspect, and Validating the Grader (optional)
Fixture

A named, scoped, cached dependency pytest injects into tests by parameter name.

Introduced in 01B.8 Testing with pytest
Fixture scope

How long a fixture lives: function/class/module/package/session.

Introduced in 01B.8 Testing with pytest
Flag / IntFlag

Enums whose members combine bitwise (READ \| WRITE).

Introduced in 01A.6 Classes, Dataclasses and Enums
Flagship project

Your best, most complete project — the one reviewers should find first.

Introduced in 14B.2 Portfolio Strategy: Choosing and Shaping Projects
Flake / flaky eval

An eval failing non-deterministically for infrastructure reasons rather than quality reasons.

Introduced in 10A.1 Why Evals Matter: The Evaluation Mindset
Flaky bug

A bug that fails intermittently — usually timing, state, randomness or environment.

Introduced in 00.9 Working Like an Engineer: Debugging, Asking for Help and Learning Habits
Flaky gate

A gate that fails non-deterministically, usually from noise treated as signal.

Introduced in 10A.8 Regression Testing, CI and Experiment Tracking
Flaky metric (DeepEval)

A DeepEval metric or test case marked flaky=True: its failure is reported but cannot fail the test case or the build.

Introduced in 10B.2 DeepEval Fundamentals: Test Cases, Metrics and the Test Runner
Flaky test

A test failing intermittently for reasons unrelated to the code.

Introduced in 01B.8 Testing with pytest
FlashAttention

An exact attention algorithm that avoids materializing the full score matrix.

Introduced in 02.4 Attention and Transformers
Fleiss' kappa

Kappa generalised to more than two raters.

Introduced in 10A.2 Building Evaluation Datasets
Flex / priority tiers

Cheaper lower-priority, or pricier faster, ways to call the same model. *(Introduced in [lesson 02.9](02-how-llms-work/09-model-landscape.md#try-it-one-model-many-prices))* Flex can return a 429 "Resource Unavailable" when capacity is short, and the response reports the tier that actually served the request ([Served tier](#served-tier)). *(Extended in [lesson 03.9](03-llm-apis/09-async-and-batch.md#121-the-tiers-provider-by-provider))*

Flex and priority tiers

See [Flex / priority tiers](#flex--priority-tiers).

Flip rate

How often a model abandons a correct answer when a user pushes back with a wrong one; a standard sycophancy metric.

Introduced in 02.10 Limitations and Failure Modes
Floor division / modulo

// rounds down; % returns a result with the divisor's sign.

Introduced in 01A.2 Numbers, Strings and Text
FLOPs

Floating-point operations: individual arithmetic operations, used as the unit of training compute (frontier training runs use around 10²⁵ or more).

Introduced in 02.6 How LLMs Are Trained
Fold

Replacing a batch of old messages with an update to the summary

Introduced in 08B.3 Short-Term Memory: Truncation, Summarization and Compaction
Folklore prompt

Ritual prompting tricks (tips, threats, ALL CAPS, politeness, emotional appeals) lacking provider documentation or replicated evidence.

Introduced in 04.1 Anatomy of a Good Prompt
Font encoding / ToUnicode CMap

A table inside a PDF font mapping glyph codes back to Unicode characters; missing or broken maps make text extraction produce codes or garbage.

Introduced in 05.2 Parsing PDFs
Footnote, endnote, sidebar

Small-print notes: in-text markers paired with bodies at page bottom or document end; margin bands beside the main column.

Introduced in 05.2 Parsing PDFs
for/else

else on a loop runs only if no break occurred.

Introduced in 01A.11 Coming from PHP, JavaScript or Java: Side by Side
for: duration

How long a condition must hold before an alert fires — filters flapping.

Introduced in 11A.2 Metrics, Dashboards, SLOs and Alerting
Force push

Overwriting remote history — forbidden on shared branches.

Introduced in 00.3 Git Fundamentals
Forced hand-off

Making a thread that dropped the GIL wait until another thread has taken it, so it cannot immediately re-grab it.

Introduced in 01C.5 The Global Interpreter Lock (GIL)
Forced tool choice

tool_choice set to "required"/"any" or a named tool.

Introduced in 03.5 Tool Calling: The API Mechanics
Foreign key (FK)

Column referencing another table's primary key.

Introduced in 00.7 SQL Basics with SQLite
Fork

Your own copy of someone else's repository on GitHub, used to contribute changes back via a pull request.

Introduced in 00.4 GitHub and Collaboration
Fork (checkpoint)

Changing state at an old checkpoint with update_state and resuming on a new branch.

Introduced in 08F.11 Persistence, Durable Execution and Memory
Fork (subagent input)

Passing the parent's messages to the subagent as well as the question, so it shares context (and cost).

Introduced in 08F.13 Subgraphs and Multi-Agent Systems
`fork_session`

Start a new session from a copy of an earlier one, leaving the original unchanged

Introduced in 08F.3 Claude Agent SDK
forkserver

A start method that forks workers from a clean helper process instead of from your (possibly multi-threaded) parent; the Linux default since Python 3.14.

Introduced in 01C.7 Shared Memory and Inter-Process Communication
Format drift

Output departing from the requested format, for example prose or code fences around JSON, or changed field names.

Introduced in 02.10 Limitations and Failure Modes
Format instructions

Text from get_format_instructions() that tells the model how to shape its reply; part of your prompt and its token cost.

Introduced in 08F.6 Prompts, Output Parsers and Structured Output
Format sensitivity

Measured phenomenon where meaning-preserving formatting changes swing model accuracy.

Introduced in 04.4 Structuring Prompts: XML, Markdown and Delimiters
Format spec

The :... mini-language inside f-string braces controlling fill/alignment/sign/width/precision/type, e.g. {x:>10.2f}.

Introduced in 01A.2 Numbers, Strings and Text
Formatter (logging)

Converts a LogRecord into output text or bytes — plain text for humans or JSON for machines.

Introduced in 01B.10 Logging, Debugging and Packaging: Putting the Toolkit Together
Formula / cask

A Homebrew package for a command-line tool / for a pre-built app.

Introduced in 00.1 Setting Up Your Computer for Development
Forward pass

Running inputs through a network, layer by layer, to produce outputs. An LLM runs one forward pass per generated token.

Introduced in 02.1 Neural Network Basics
Forward reference

An annotation naming a not-yet-defined type; lazy on 3.14+, quoted/__future__ on ≤3.13.

Introduced in 01A.10 Type Hints and Writing Readable Code
Forward-deployed engineer (FDE)

An engineer embedded inside a customer account to deploy AI solutions on the customer's infrastructure; the title originated at Palantir.

Introduced in 14B.1 The AI Engineering Landscape: Roles, Teams and Career Paths
FP4 (MXFP4, NVFP4)

4-bit floating-point number formats in which each small block of values shares a scale factor. MXFP4 uses 32-value blocks; NVIDIA's NVFP4 uses 16-value blocks and runs natively on Blackwell GPUs.

Introduced in 02.1 Neural Network Basics
Fraction

Exact rational arithmetic type; Fraction(1,3) stays exactly one third.

Introduced in 01A.2 Numbers, Strings and Text
Fragmentation

Free memory scattered between live objects so it cannot be returned or reused for other sizes.

Introduced in 01C.6 Python Memory Management
Frame sampling

Extracting still frames from a video yourself (ffmpeg/PyAV/OpenCV) and sending them as ordinary image inputs to any vision model.

Introduced in 09.8 Video Understanding
frame_count / frame_duration_ms

GIF-only parameters on gpt-image-2.6 (2–16 frames, default 9; ≥20 ms per frame, default 200).

Introduced in 09.3 Image Generation and Editing
Framework / loader / splitter

RAG libraries supplying file parsers, chunkers, store wrappers and retrievers.

Introduced in 07.7 Managed RAG: Provider Tools, Platforms and Frameworks
Framework track

Lessons 10B.1 to 10B.18 of Module 10B, which teach DeepEval and Inspect AI in depth after the framework-neutral lessons 10A.1 to 10A.12.

Introduced in 10B.1 The Eval Framework Track: DeepEval, Inspect AI and Your Setup
Framework-neutral checklist

The 10 questions in [1.3](08f-frameworks-and-platforms/01-agent-frameworks.md#13-a-framework-neutral-checklist) for evaluating any agent framework.

Introduced in 08F.1 Agent Frameworks and SDKs
Free-threaded build

A CPython build with the GIL disabled (PEP 703), officially supported but optional since 3.14; usually python3.14t.

Introduced in 01C.5 The Global Interpreter Lock (GIL)
Free-threaded Python

The no-GIL CPython build; officially supported from 3.14, still non-default.

Introduced in 01B.3 Async Python: async/await and the Event Loop
Frequency penalty

A logit reduction proportional to how many times a token has appeared.

Introduced in 02.5 Generation and Sampling
Frequency × severity

The prioritisation rule for fixes: how often × how bad.

Introduced in 10A.9 Offline vs Online Evaluation
Fresh profile

A new browser profile per task with no cookies, saved passwords or extensions, deleted afterwards

Introduced in 08A.15 Coding and Computer-Use Agents
freshness filters

latest_only / as_of filter dicts built by freshness_filters().

Introduced in 07.2 Retrieval Strategies for RAG
Freshness metadata

The content's own date (not retrieval date) used to judge staleness.

Introduced in 04.6 Context Engineering: Selecting and Ordering Context
Freshness SLA

Maximum acceptable lag between source change and index update.

Introduced in 05.10 Data Quality Checks
from_attributes

Config letting models validate objects by attribute (ORM rows, dataclasses, other models).

Introduced in 01B.6 Data Validation with Pydantic
Front end / back end

The part running in the browser (HTML/CSS/JS) vs the part running on the server (routing, logic, integrations).

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Front matter

The YAML metadata block at the top of a prompt file, describing name, version, model, owner, variables.

Introduced in 04.10 Prompt Templates, Versioning and a Prompt Library
Front-truncation

Inspect exec()'s behaviour of keeping the end of output and dropping the beginning once output exceeds 10 MiB.

Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)
Frozen attack set

A saved set of generated attacks replayed against each new version of an app, in process with reuse_simulated_test_cases or across CI runs from persisted inputs, so red-team pass rates are comparable.

Introduced in 10B.7 DeepEval in Production: Red Teaming, CI/CD, Prompt Optimization and Confident AI
frozen dataclass

Immutable instance; gets __hash__ for free — the value-object pattern.

Introduced in 01A.6 Classes, Dataclasses and Enums
frozenset

Immutable, hashable set; usable as a dict key or set member.

Introduced in 01A.4 Core Data Structures: Lists, Tuples, Dictionaries and Sets
fsync / durable write

os.fsync forces buffered file contents (and, on POSIX, a directory fd) to stable storage — the extra step that makes an atomic rename survive a machine crash.

Introduced in 01A.9 Files, Paths, JSON and CSV
ftfy

Library that repairs mojibake and Unicode glitches (fix_text, fix_and_explain).

Introduced in 05.5 Cleaning and Normalization
FTS5

SQLite's built-in full-text search virtual table.

Introduced in 00.7 SQL Basics with SQLite
Full / equal / decorrelated jitter

The three jitter formulas from the AWS Architecture Blog analysis.

Introduced in 01B.9 Retries, Timeouts, Backoff and Resilience
Full fine-tuning

Updating every weight of the model.

Introduced in 02.6 How LLMs Are Trained
Full suite

The larger statistical eval tier run before merge, nightly or pre-release.

Introduced in 11C.2 CI/CD for Prompts, Models and Evals
Full-disk encryption

Encrypting everything on the drive (FileVault, BitLocker, LUKS) so a lost laptop does not expose your files; keep the recovery key in your password manager.

Introduced in 00.1 Setting Up Your Computer for Development
Full-duplex

Both sides can speak simultaneously / only one side speaks at a time.

Introduced in 09.6 Audio-Native Models and Realtime Foundations
Full-history baseline

An evaluation condition that gives the model every earlier session verbatim, to show whether a memory system beats simply using a long context, on accuracy and on cost.

Introduced in 10A.11 Evaluating Agent Memory and Context Management
Function calling (realtime)

Model emits a function_call item; your code runs it and returns function_call_output.

Introduced in 09.7 Realtime Voice Agents
Function colouring

Once you await, everything above must be async def — async infects callers.

Introduced in 01B.3 Async Python: async/await and the Event Loop
function_tool / @tool

Decorators that turn a Python function into a model-callable tool with generated schema (Agents SDK / LangChain / Claude Agent SDK variants).

Introduced in 08F.1 Agent Frameworks and SDKs
Functional API

LangGraph's way to add persistence, resume, memory and streaming to ordinary Python functions with @entrypoint and @task, without declaring a graph.

Introduced in 08F.14 The Functional API and Streaming
functools.partial

Pre-bind some arguments of a function.

Introduced in 01A.3 Control Flow and Functions
functools.reduce

Folds an iterable to one value via a binary function.

Introduced in 01A.5 Comprehensions, Iterators and Generators
functools.wraps

Copies __name__/__doc__ onto a wrapper.

Introduced in 01A.3 Control Flow and Functions
Funnel

The staged pipeline applied → screen → interview → offer, measured by conversion between stages.

Introduced in 14B.5 Résumé, LinkedIn and the Job Search
Funnel metrics

Conversion rates at each stage of the job-search process.

Introduced in 14B.8 Interview Prep III: Take-Homes, Behavioural Rounds and Offers
Fusion

The stage that merges multiple retrievers' ranked lists into a single ranking — by ranks (RRF, Borda), normalised scores, or distribution stats.

Introduced in 06.8 Hybrid Search
Future

An object representing a result that doesn't exist yet; Task is one.

Introduced in 01B.3 Async Python: async/await and the Event Loop

G

.gitattributes

Rule file for line endings, binary types, LFS and linguist hints.

Introduced in 00.3 Git Fundamentals
.gitignore

Pattern files controlling which paths git tracks / how git normalises line endings, binaries and LFS.

Introduced in 00.3 Git Fundamentals
G-Eval

A judge method (Liu et al., 2023) that turns evaluation criteria into steps and asks a model for a score; in DeepEval, the GEval metric, which asks for an integer from 0 to 10 and divides it by the scale to give 0 to 1.

Introduced in 10B.3 Judges in DeepEval: Models, G-Eval, DAG and Custom Metrics
Game day

A scheduled rehearsal of an outage scenario to test humans and runbooks, not just code.

Introduced in 11C.3 Fallbacks, Gateways and Reliability
Gap analysis

Subtracting current skill levels from target-role requirements to find what to learn next.

Introduced in 14A.8 Skills Map and Gap Analysis
Garbage in, garbage out

The principle that system quality is bounded by input quality — made expensive by LLMs' fluent wrongness.

Introduced in 05.1 Data Sources, Formats and the Ingestion Mindset
Garbage ratio

Fraction of damaged characters (replacement chars, private-use glyphs, control chars, mojibake) in extracted text.

Introduced in 05.10 Data Quality Checks
Gate (verification gate)

A check between workflow steps — deterministic code or a model call — that accepts, retries or rejects a step's output.

Introduced in 08A.9 Workflows vs Agents
Gateway / router

A service that offers many models from many providers through one API and key, with routing and fallbacks; OpenRouter is the best-known example. *(Introduced in [lesson 02.9](02-how-llms-work/09-model-landscape.md#54-openrouter-a-unified-gateway))* Lesson 03.11 compares a hosted gateway, a self-hosted proxy such as LiteLLM and your own thin wrapper. *(Extended in [lesson 03.11](03-llm-apis/11-provider-agnostic-client.md#14-build-buy-or-gateway))*

Gating

Validating each chain step's output against its contract before feeding it to the next step, so errors don't propagate silently.

Introduced in 04.8 Prompt Patterns for Common Tasks
Gauge

A metric that goes up and down (queue depth, in-flight requests, scores).

Introduced in 11A.2 Metrics, Dashboards, SLOs and Alerting
gc.freeze / permanent generation

Moves all currently tracked objects to a permanent generation ignored by future collections; used after startup loading and before fork.

Introduced in 01C.6 Python Memory Management
GDPR

The EU's General Data Protection Regulation on personal data

Introduced in 14A.3 Security, Data and Compliance Policy
Gemini Live API

Google's bidirectional audio WebSocket API.

Introduced in 09.7 Realtime Voice Agents
`gen_ai.operation.name`

The attribute saying what a GenAI span is: chat, execute_tool, invoke_agent, invoke_workflow, retrieval and so on

Introduced in 11A.1 Tracing and Observability for LLM Applications
GenAI semantic conventions

OTel's gen_ai.* attribute names for LLM telemetry; all Development status in open-telemetry/semantic-conventions-genai as of Nov 2026.

Introduced in 11A.1 Tracing and Observability for LLM Applications
Generalization

A model's ability to perform well on new data it never saw during training.

Introduced in 02.1 Neural Network Basics
Generate at eval time

Running the current app on each golden and building fresh test cases, so one dataset serves every app version.

Introduced in 10B.6 DeepEval Datasets, Synthetic Data, Conversation Simulation and Benchmarks
generate() (Inspect)

The built-in Inspect solver, and the function handed to every solver, that sends the current messages to the active model and appends its reply.

Introduced in 10B.8 Inspect AI Fundamentals: Task = Dataset + Solver + Scorer (optional)
generate_content / generateContent

Gemini's long-standing API, "legacy" but fully supported.

Introduced in 03.1 The Provider APIs and Your First Calls
Generated-knowledge prompting

Generating relevant facts first and answering with them as extra input (Liu et al., ACL 2022).

Introduced in 04.3 Reasoning Prompts: Chain-of-Thought and Friends
Generation

A group of tracked objects collected at a given frequency; survivors of a young-generation collection move to older generations.

Introduced in 01C.6 Python Memory Management
Generation ID

OpenRouter's ID for one call, returned in the X-Generation-Id header.

Introduced in 03.1 The Provider APIs and Your First Calls
Generation settings (inference settings)

Request settings such as temperature and max_tokens that control how output is generated, not training.

Introduced in 02.1 Neural Network Basics
Generative AI

Models that generate content from a prompt; a capability

Introduced in 08A.1 Agent Definitions, the Autonomy Spectrum and Agent Anatomy
Generative AI Profile (NIST AI 600-1)

NIST's companion profile mapping the RMF onto generative-AI-specific risks (July 2024).

Introduced in 12.1 Threat Modelling LLM Applications
Generator / yield

A function containing yield that produces values lazily, one at a time, as it is iterated.

Introduced in 01A.3 Control Flow and Functions
Generator expression

A comprehension with parentheses instead of brackets — produces a lazy iterator, not a list.

Introduced in 01A.5 Comprehensions, Iterators and Generators
Generator function

A def containing yield; calling it returns a generator without running the body.

Introduced in 01A.5 Comprehensions, Iterators and Generators
GeneratorExit

The exception .close() throws into a paused generator.

Introduced in 01A.5 Comprehensions, Iterators and Generators
GenericFakeChatModel / FakeListChatModel

Key-free fake chat models for tests; one scripted reply per call, or canned replies that cycle.

Introduced in 08F.5 Chat Models, Messages and Content Blocks
GEPA

DSPy's reflective prompt optimizer: mutates instructions from natural-language feedback on execution traces, maintaining a Pareto frontier of candidates.

Introduced in 04.9 Iterating, Debugging and Porting Prompts
get / setdefault

Safe dict read with a default / read-or-create-default.

Introduced in 01A.4 Core Data Structures: Lists, Tuples, Dictionaries and Sets
get_graph()

The method returning a drawable structure (draw_mermaid, draw_ascii, draw_png) and the nodes and edges as data.

Introduced in 08F.10 LangGraph Fundamentals
get_num_tokens_from_messages

A chat model method that counts input tokens before a call; local for OpenAI, a network call for Anthropic and Google, a GPT-2 fallback (needs transformers) elsewhere.

Introduced in 08F.5 Chat Models, Messages and Content Blocks
get_path

Helper walking a mixed dict-key/list-index path with a default fallback.

Introduced in 01A.4 Core Data Structures: Lists, Tuples, Dictionaries and Sets
get_settings()

functools.lru_cache-backed factory returning the process-wide Settings once.

Introduced in 01B.2 Environment Variables, Configuration and Secrets
get_state_history

The method that yields a thread's checkpoints, newest first, across all branches.

Introduced in 08F.11 Persistence, Durable Execution and Memory
get_type_hints

Resolves string/lazy annotations to real type objects; raises NameError for names absent at run time.

Introduced in 01A.10 Type Hints and Writing Readable Code
get_usage_metadata_callback

A context manager that aggregates usage_metadata across calls and models, keyed by model name.

Introduced in 08F.5 Chat Models, Messages and Content Blocks
GFM (GitHub Flavoured Markdown)

Markdown plus GitHub extensions: task lists, alert boxes, mentions, issue references, collapsible sections, Mermaid diagrams.

Introduced in 00.4 GitHub and Collaboration
GGUF

A file format for (usually quantized) models, used by llama.cpp and Ollama.

Introduced in 02.9 Model Landscape
Gibberish metrics

Heuristics (alpha/vowel ratio, char-run, dict hit rate) for noise detection.

Introduced in 05.5 Cleaning and Normalization
GIL

Global Interpreter Lock — serialises CPython bytecode; threads help I/O waits, not CPU work.

Introduced in 01A.10 Type Hints and Writing Readable Code
GIL-bound

A workload whose speed does not improve with more threads because it holds the GIL while it works.

Introduced in 01C.5 The Global Interpreter Lock (GIL)
GIN index

Postgres's generalized inverted index for tsvector columns.

Introduced in 06.7 Keyword Search and BM25
Git

The distributed VCS tool and protocol; every clone is a complete repository.

Introduced in 00.3 Git Fundamentals
git bisect

Binary-searching commit history for the first bad commit using good/bad marks or a test script (exit 0 = good, 1–127 except 125 = bad, 125 = skip).

Introduced in 00.3 Git Fundamentals
git blame

Per-line last-modifying commit, author and date.

Introduced in 00.3 Git Fundamentals
Git branch

A movable pointer to a commit — a named line of work that costs nothing to create.

Introduced in 00.3 Git Fundamentals
Git Credential Manager (GCM)

A credential helper that gives plain git over HTTPS the same browser-based sign-in gh provides, storing tokens in the OS keychain.

Introduced in 00.4 GitHub and Collaboration
Git hook

An executable script git runs automatically at workflow points (pre-commit, commit-msg, pre-push).

Introduced in 00.3 Git Fundamentals
Git host

A service that stores git repositories and adds collaboration features around them — GitHub, GitLab, Bitbucket.

Introduced in 00.4 GitHub and Collaboration
Git LFS

Large File Storage: pointer files in the repo, real bytes on an LFS server.

Introduced in 00.3 Git Fundamentals
git reflog

Log of every HEAD/branch movement — the recovery mechanism for "lost" commits (90/30-day expiry).

Introduced in 00.3 Git Fundamentals
git reset

Move branch pointer; --soft/--mixed/--hard decide file fate.

Introduced in 00.3 Git Fundamentals
git revert

Undo a commit by adding an inverse commit — safe for shared history.

Introduced in 00.3 Git Fundamentals
Git snapshot

Git's storage unit: the complete state of all files at one commit (stored as content-addressed blobs and trees).

Introduced in 00.3 Git Fundamentals
git stash

Shelve worktree+index changes and clean the tree.

Introduced in 00.3 Git Fundamentals
git status

Shows working-tree/index/HEAD differences and untracked files.

Introduced in 00.3 Git Fundamentals
git worktree

Extra working directories attached to one repository.

Introduced in 00.3 Git Fundamentals
GitHub

A hosting service and collaboration layer built on git (PRs, issues, Actions).

Introduced in 00.3 Git Fundamentals
GitHub "Releases only" watch

A repository notification setting that alerts on new releases without issue/PR noise; "Custom" watch adds security alerts and other event types.

Introduced in 14A.9 Staying Current in a Fast-Moving Field
GitHub Actions

GitHub's CI/CD platform: YAML workflows in .github/workflows/ run on hosted runners.

Introduced in 00.4 GitHub and Collaboration
GitHub App

A bot identity with its own fine-grained permissions, installed on chosen repos or orgs — GitHub's recommended alternative to PATs for organisation-owned or long-lived automation.

Introduced in 00.4 GitHub and Collaboration
GitHub Codespaces

GitHub's cloud dev environments; free monthly quota on personal accounts.

Introduced in 00.1 Setting Up Your Computer for Development
GitHub Discussions

Forum-style Q&A threads attached to a repo.

Introduced in 00.4 GitHub and Collaboration
GitHub issue / Discussion

The project's own tracker/forum — where maintainers answer.

Introduced in 00.9 Working Like an Engineer: Debugging, Asking for Help and Learning Habits
GitHub Pages

Free static-site hosting from a repo (public repos on Free plan; site is public even if repo is private).

Introduced in 14B.3 GitHub Presence and Project READMEs
GitHub Release

A named snapshot of a repository — a tag plus release notes and optional binaries.

Introduced in 00.4 GitHub and Collaboration
GITHUB_TOKEN

The automatic per-run token a workflow gets, scoped by the permissions: key.

Introduced in 00.4 GitHub and Collaboration
Glitch token / under-trained token

A token that was frequent in the tokenizer's training data but rare in the model's training data, so it's under-trained and can make the model behave erratically (for example " SolidGoldMagikarp" in GPT-2/GPT-3).

Introduced in 02.2 Tokens and Tokenization
Glob / globbing

Wildcard expansion of *, ?, […], {a,b} into filenames.

Introduced in 00.2 The Terminal and Shell
Global Interpreter Lock (GIL)

The mutex in standard CPython that lets only one thread execute Python bytecode at a time; it is released during blocking I/O and by native code that opts in.

Introduced in 01C.5 The Global Interpreter Lock (GIL)
Glyph

The visual shape of a character in a font; PDFs place glyphs at coordinates rather than storing text.

Introduced in 05.2 Parsing PDFs
Go/no-go criteria

The pre-registered rules deciding whether a launch proceeds, including rollback thresholds written before launch rather than improvised during an incident.

Introduced in 13B.6 Shipping and Operating Your Capstone: Launch, Demo and Iterate
Goal hijacking

An injection goal where the attacker replaces the application's intended task with their own — distinct from prompt leaking (extracting the system prompt) and data exfiltration (stealing content).

Introduced in 12.2 Prompt Injection: Direct and Indirect
Goal-completion metric

A conversation-level score asking whether a multi-turn exchange resolved the user's goal — it catches failures that per-turn answer metrics miss.

Introduced in 10A.6 Evaluating RAG Pipelines in Depth
GoAway

Gemini message warning a connection will close, with time left.

Introduced in 09.7 Realtime Voice Agents
Gold chunk ids

The chunks that should reach the context for a case — span-labelled upstream so re-chunking doesn't orphan them.

Introduced in 07.9 Evaluating RAG
Gold memory operation

The write operation (ADD, UPDATE, DELETE, NOOP or REJECT) a correct memory system performs for one candidate fact in one session; the label write-quality metrics are scored against.

Introduced in 10A.11 Evaluating Agent Memory and Context Management
Golden (DeepEval)

DeepEval's durable dataset row: an input plus optional references such as expected output and context, with no application output. The same golden evaluates every app version.

Introduced in 10B.6 DeepEval Datasets, Synthetic Data, Conversation Simulation and Benchmarks
Golden dataset

A reviewed set of test cases you trust and rerun on every change

Introduced in 11A.4 Production Traces into Eval Datasets
Golden document

A representative fixture with expected output used to catch parser regressions.

Introduced in 05.9 Ingestion Pipelines and Incremental Updates
Golden examples

10–30 real input cases collected before product code to sanity-check feasibility.

Introduced in 13A.1 Product Thinking for AI Features: What to Build and When Not to Use AI
Golden fixture

A fixed, versioned set of representative media inputs with expected outputs, re-run after every model/prompt/preprocessing change to catch regressions — the media equivalent of a golden-file test.

Introduced in 09.10 Building, Evaluating and Operating Multimodal Products
Golden set

The dev set frozen at ship time and promoted into the prompt regression suite.

Introduced in 04.9 Iterating, Debugging and Porting Prompts
Goodhart's law

When a measure becomes a target it ceases to be a good measure — the reason guardrail metrics exist.

Introduced in 10A.1 Why Evals Matter: The Evaluation Mindset
GPAI (general-purpose AI)

An AI model that can perform a wide range of tasks; providers of GPAI models carry EU AI Act Chapter V obligations from August 2025.

Introduced in 12.9 Responsible AI, Policy and Compliance
GPT Image family

OpenAI's image models: the current gpt-image-2.6-* pair and the -2.5-* pair, plus older gpt-image-2, -1.5 and -1-mini, which are on the deprecation list.

Introduced in 09.3 Image Generation and Editing
GPT-Live

OpenAI's delegated voice architecture: voice model + separate reasoning backend (/v1/live).

Introduced in 09.7 Realtime Voice Agents
Graceful degradation

Giving users a sensible, reduced experience (a clear message, a queued job, a fallback model) when a dependency fails, instead of a raw error.

Introduced in 03.8 Errors, Rate Limits, Timeouts and Retries
Graceful shutdown / draining

Stop new traffic, let in-flight requests finish before SIGKILL.

Introduced in 11C.1 Deploying LLM Services
Grade pattern (Inspect)

The regular expression that extracts a verdict from a grader's reply; Inspect's default binds to the last GRADE: line and tolerates common formatting.

Introduced in 10B.11 Model Grading in Inspect, and Validating the Grader (optional)
Graded relevance

Relevance as grades (e.g. 0/1/2) rather than binary relevant/not.

Introduced in 06.10 Evaluating and Tuning Retrieval
Grader

The broader verdict-producer: a metric, a code check, a judge or a human.

Introduced in 10A.1 Why Evals Matter: The Evaluation Mindset
Grader (OpenAI Evals)

OpenAI's name for a scoring rule in an eval: a string check, text similarity, an LLM label or score model, a Python function, or a combination. The hosted service was shut down on 30 November 2026.

Introduced in 10A.10 Evaluation Platforms, Benchmarks and Building an Eval Culture
Grader nonce

A random 8-hex-character code Inspect makes for each grading request and puts on the template's field markers, so markers forged inside an answer can be told apart.

Introduced in 10B.11 Model Grading in Inspect, and Validating the Grader (optional)
Grader role (Inspect)

The model role, named grader by default, that Inspect's model-graded scorers use when no explicit grader model is given; it is bound per run and recorded in the log.

Introduced in 10B.11 Model Grading in Inspect, and Validating the Grader (optional)
grader_failed (Inspect)

The score reason Inspect records when a grader gives no usable verdict; the sample is unscored and leaves the metric's denominator.

Introduced in 10B.11 Model Grading in Inspect, and Validating the Grader (optional)
Gradient

For each weight, the direction and steepness in which the loss increases. Training moves weights in the opposite direction.

Introduced in 02.1 Neural Network Basics
Gradient clipping

Capping the size of a training update so that one unusual batch can't blow up training.

Introduced in 02.1 Neural Network Basics
Gradient descent

The training method of repeatedly nudging every weight a small step "downhill" to reduce the loss.

Introduced in 02.1 Neural Network Basics
Grading template (Inspect)

The Python format string from which Inspect builds the grading prompt, filled with {question}, {answer}, {criterion}, {instructions}, {grader_nonce} and sample metadata.

Introduced in 10B.11 Model Grading in Inspect, and Validating the Grader (optional)
Gradual typing

Typing that coexists with dynamic code — hints are per-symbol opt-in and unenforced at run time.

Introduced in 01A.10 Type Hints and Writing Readable Code
Graduation

Moving cases from a capability eval into the regression suite once they pass consistently.

Introduced in 10A.1 Why Evals Matter: The Evaluation Mindset
Grant

A scoped, expiring pre-approval, such as "refunds up to 50 for this run, three uses"

Introduced in 08A.12 Human-in-the-Loop and Approval Gates as a Pattern
Graph / orchestration framework

A framework where you define nodes and edges explicitly and it executes the graph with checkpointing and interrupts (e.g. LangGraph, ADK workflows, Microsoft Agent Framework).

Introduced in 08F.1 Agent Frameworks and SDKs
Graph-of-thought (GoT)

Generalising reasoning steps to nodes in an arbitrary dependency graph (Besta et al., 2024).

Introduced in 04.3 Reasoning Prompts: Chain-of-Thought and Friends
Grapheme cluster

What a human sees as one character; may be several code points.

Introduced in 01A.2 Numbers, Strings and Text
GraphInterrupt

The internal exception interrupt() raises to pause a run; a bare except that catches it breaks the pause.

Introduced in 08F.12 Human-in-the-Loop and Control Flow
GraphPrompt

Learnable prompt tuning for graph neural networks; not LLM text prompting.

Introduced in 04.11 Named Prompting Techniques: A Field Guide
GraphQL

An API style with a single endpoint where the client writes a query describing exactly the fields it wants.

Introduced in 00.6 HTTP, REST and JSON
GraphRAG

Retrieval over an entity/relation knowledge graph built from text, aimed at global and multi-hop questions.

Introduced in 07.1 RAG Architecture: From Question to Grounded Answer
Greedy decoding

Always choosing the single most likely token.

Introduced in 02.5 Generation and Sampling
Greedy first-fit packing

O(n) batching that fills each request until the next item would overflow.

Introduced in 06.2 Embedding Pipelines: Batching, Caching, Scale and Cost
Greedy vs lazy

*/+ match max then backtrack vs *?/+? match min.

Introduced in 01A.2 Numbers, Strings and Text
Greedy vs lazy matching

*/+ consume maximally then backtrack; *?/+? consume minimally — use lazy when extracting between delimiters.

Introduced in 01A.2 Numbers, Strings and Text
Gross margin (AI feature)

(price − cost per success) / price.

Introduced in 13A.6 Product Metrics, Experiments and Unit Economics
Ground-truth set

Human-verified reference transcriptions used to measure OCR accuracy (CER/WER) per engine.

Introduced in 05.4 OCR and Scanned Documents
Grounded answer

An answer generated from supplied context documents rather than the model's parametric memory; grounding raises but does not guarantee factuality.

Introduced in 07.1 RAG Architecture: From Question to Grounded Answer
Grounded generation

Producing an answer constrained to retrieved context, with evidence and an abstention path — the contract this lesson implements.

Introduced in 07.4 Grounded Generation: Prompts, Context Assembly and Abstention
Grounded QA

Question answering constrained to provided context only, with quoted evidence, citation identifiers and an explicit abstention path.

Introduced in 04.8 Prompt Patterns for Common Tasks
Grounded refusal

The behaviour of declining to answer (or answering only in part) when the retrieved context does not support an answer; implemented here as abstention gates 1 to 3

Introduced in 07.4 Grounded Generation: Prompts, Context Assembly and Abstention
Grounding

Supplying the relevant facts in the prompt (for example via RAG, tools or a provider's built-in search) so the model reads them instead of recalling them from its weights.

Introduced in 02.10 Limitations and Failure Modes
Grounding check

A validator that requires an extracted value (a total, a quote, a name) to appear in the source text, catching invented values.

Introduced in 03.4 Structured Output
Grounding prompt

The system+user prompt that constrains the model to answer only from retrieved passages.

Introduced in 07.4 Grounded Generation: Prompts, Context Assembly and Abstention
grounding_metadata

Gemini's citation payload on generate_content: grounding_chunks (retrieved context incl. page_numbers, media_id, custom_metadata) plus grounding_supports binding answer segments to chunk indices.

Introduced in 07.5 Citations and Attribution
grounding_supports / grounding_chunk_indices

Gemini structures mapping answer segments to supporting chunks.

Introduced in 07.5 Citations and Attribution
Group explosion

When a user's group memberships grow so large the inline ACL filter becomes unwieldy.

Introduced in 06.6 Filtering, Metadata and Multi-Tenant Search
Group-aware split

Assigning all cases that share a source (document, conversation, customer, seed) to the same split, to stop leakage.

Introduced in 10A.2 Building Evaluation Datasets
Group-by-document / collapse

Returning at most N chunks per document so one doc doesn't fill the result set.

Introduced in 06.6 Filtering, Metadata and Multi-Tenant Search
groupby

Pandas' split-apply-combine operation: aggregate or transform rows per key.

Introduced in 01B.11 NumPy and pandas Essentials for AI Work
grouped (Inspect metric)

An Inspect metric wrapper that computes a metric separately for each value of a metadata key (a slice), with an optional all entry over samples or over groups.

Introduced in 10B.10 Inspect Scorers, Metrics, Epochs and the Statistics Inspect Reports (optional)
Growth test

A test that measures the net memory retained per call after warm-up to catch leaks in regression.

Introduced in 01C.6 Python Memory Management
gRPC

A strongly-typed RPC framework that runs over HTTP/2 with Protocol Buffers bodies.

Introduced in 00.6 HTTP, REST and JSON
GRPO

Group Relative Policy Optimization, an RL algorithm (introduced in DeepSeekMath and used for DeepSeek-R1) that scores each answer against the average of a group of answers to the same prompt.

Introduced in 02.6 How LLMs Are Trained
GSM-NoOp / distractor sensitivity

Performance dropping when irrelevant information is added to a problem.

Introduced in 02.10 Limitations and Failure Modes
Guaranteed share

The part of a shared limit reserved for one team

Introduced in 11B.7 Rate Limits Across Teams, Throughput Options, Kill Switches and Spend Alerts
Guard clause

Early return/raise flattening nesting so the happy path stays unindented.

Introduced in 01A.10 Type Hints and Writing Readable Code
Guard model

A dedicated safety classifier model (e.g. Llama Guard, ShieldGemma, gpt-oss-safeguard) used for input/output moderation.

Introduced in 12.3 Jailbreaks and Model-Level Safety
Guarded stream

A streaming wrapper that withholds a configurable hold-back tail until the end-of-stream check passes, enabling mid-stream aborts.

Introduced in 12.5 Guardrails and Output Validation
Guardrail

A check that runs outside the model's reasoning and can block, transform or escalate a request, response or proposed tool call.

Introduced in 08A.14 Reliable, Safe and Observable Agents
Guardrail bypass signal

A pattern suggesting a detector was evaded or drifted — e.g. a request denied by a guardrail followed by a near-identical one that succeeded, or a shift in score distributions.

Introduced in 12.10 Security Operations, Incident Response and the Safety Checklist
Guardrail metric

A must-not-regress number (safety, cost, latency) — mostly system-level.

Introduced in 10A.1 Why Evals Matter: The Evaluation Mindset
Guardrail stack

The ordered layers of checks around a model call: edge controls → input validation → input classifiers → model → output validation → action authorisation → rendering.

Introduced in 12.5 Guardrails and Output Validation
Guardrails (red teaming)

Runtime input and output guards, each one LLM-judge call per message; breached unless the level is safe

Introduced in 10B.7 DeepEval in Production: Red Teaming, CI/CD, Prompt Optimization and Confident AI
Guide (feedforward control)

A control that steers an agent before it acts: instructions, docs, templates.

Introduced in 08A.4 Harness Engineering: Everything Around the Model
Guided track / bring-your-own

The three pre-scoped builds (13B.2–13B.5) vs scoping your own product.

Introduced in 13B.1 Capstone Planning and Scoping
gVisor

User-space kernel for container isolation without full VM cost.

Introduced in 08A.15 Coding and Computer-Use Agents

H

Half-open probe

The single trial call allowed through after a breaker's cooldown to test recovery.

Introduced in 11C.3 Fallbacks, Gateways and Reliability
halfvec / bit / sparsevec

Pgvector's float16 / binary / sparse vector column types.

Introduced in 06.5 Vector Databases: Choosing and Using One
Hallucination

Plausible-but-wrong output — invented APIs, outdated versions, subtle bugs.

Introduced in 00.9 Working Like an Engineer: Debugging, Asking for Help and Learning Habits
Hamming distance

Count of differing bit positions between equal-length bit strings; the metric binary-quantized embeddings are built for.

Introduced in 06.3 Similarity Metrics and Nearest-Neighbour Search
Handle / TimerHandle

One scheduled callback in the event loop (a function, its arguments and a context), returned by call_soon; call_later and call_at return a TimerHandle.

Introduced in 01C.2 Synchronous vs Asynchronous Programming and the asyncio Event Loop
handle_errors

ToolStrategy option: True, a message string, exception type(s), a callable or False.

Introduced in 08F.6 Prompts, Output Parsers and Structured Output
Handler (logging)

The logging component that decides *where* a record goes — console, file, socket or network — independent of how it is formatted.

Introduced in 01B.10 Logging, Debugging and Packaging: Putting the Toolkit Together
Handoff / swarm

Control transfers to a specialist agent that owns the rest of the turn; a swarm lets any agent hand off to any other.

Introduced in 08D.3 Multi-Agent Systems
Handoff budget

A hard limit on how many times control may pass between agents

Introduced in 08D.1 One Agent or Several: Roles and the Two Basic Patterns
Handoff contract

The task, the context and the expected answer format for a handoff, plus a check on the reply

Introduced in 08D.1 One Agent or Several: Roles and the Two Basic Patterns
Handoff prompt

The extra system-prompt layer Inspect's react() adds when an agent holds handoff tools: it describes the multi-agent system and tells the model not to mention transfers to the user.

Introduced in 10B.14 Tools and Agents in Inspect: Custom Tools, MCP, react() and Multi-Agent Systems (optional)
Handoff summary

A structured document passed between agent runs carrying goal, verified state, evidence, open questions and next action.

Introduced in 08B.2 Memory for Agents: Short-Term and Long-Term
Handoff timing

Whether a handoff happened inside its annotated turn window: premature, late, missing or on time.

Introduced in 10A.12 Evaluating Multi-Agent Systems and Validating User Simulators
Handoff tool

A tool that returns Command(goto=..., graph=Command.PARENT, update=...) with the AIMessage plus ToolMessage pair.

Introduced in 08F.13 Subgraphs and Multi-Agent Systems
`handoff()`

Delegation mechanism in which a specialist sees filtered shared history and its filtered turns return to that history.

Introduced in 10B.14 Tools and Agents in Inspect: Custom Tools, MCP, react() and Multi-Agent Systems (optional)
Handover

Transferring ownership to a named person with documentation and a walkthrough

Introduced in 14A.10 Your First-90-Days Project on an Internal Use Case
Handshake (`initialize`)

The legacy opening exchange of initialize and notifications/initialized. Gone in 2026-07-28

Introduced in 08E.2 MCP in Depth: Primitives, Servers, Clients and Transports
HAR

HTTP Archive — DevTools' JSON recording of every request/response a page made.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Harbor task

A task packaged for the Harbor framework, potentially including instructions, environment, verifier and metadata.

Introduced in 10B.16 Evaluating Agents with Inspect, and the Inspect Ecosystem (optional)
Hard gate vs soft score

A hard gate (passed=False) fails the example outright; a soft score (passed=None) only feeds aggregates — the split between invariants and quality measurements.

Introduced in 10A.3 Deterministic Metrics and Code-Based Graders
Hard limit

The point at which work is cancelled or refused

Introduced in 08A.3 Loop Control, Budgets and Stagnation Detection in the Raw Loop
Hard negative

An example that looks similar to a positive case but has a different correct answer — teaches the decision boundary.

Introduced in 04.2 Zero-Shot, Few-Shot and Examples
Hard requirement / gate

A must-pass criterion; any failure blocks, no averaging.

Introduced in 10A.1 Why Evals Matter: The Evaluation Mindset
Hard rule

A signal that rules an option out entirely, for example irreversible actions rule out autonomy ([12.2](13a-product-engineering/08-prompting-rag-or-fine-tuning.md#122-the-scorer-and-the-record-writer))

Introduced in 13A.8 Decision Frameworks: Eight Decisions Plus One
Hard vs soft constraint

A limit enforced by the API (max tokens, truncation) versus a request the model approximates ("under 200 words").

Introduced in 04.1 Anatomy of a Good Prompt
Hard-wrap rejoining

Merging visually-wrapped lines back into paragraphs.

Introduced in 05.5 Cleaning and Normalization
Harm taxonomy

A standardised category list for prohibited content (MLCommons S1–S13, provider usage policies, OWASP).

Introduced in 12.3 Jailbreaks and Model-Level Safety
Harness engineering

Designing everything around a model (context, tools, loop, state, permissions, checks) so the same model performs better and more reliably.

Introduced in 08A.4 Harness Engineering: Everything Around the Model
Hash chain

Block hashes that each include the previous block's hash, so a hit means the whole prefix matches.

Introduced in 11B.4 Token Caching in Depth: How It Works, Who Supports It, and How to Use It
Hash checking

Verifying downloaded files against lockfile-recorded hashes.

Introduced in 01B.1 Project Setup with uv: Environments, Dependencies and Tooling
Hash pinning

Requiring a dependency's cryptographic hash to match a recorded value before installing it

Introduced in 14A.7 Data, Vendor and Supply-Chain Governance, plus NIST AI RMF and ISO/IEC 42001 Awareness
Hash-chained audit log

An append-only log where each event includes the previous event's hash, so edits are detectable

Introduced in 08A.12 Human-in-the-Loop and Approval Gates as a Pattern
Hashable

Usable as dict key/set member (immutables generally are).

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
Hashing embedder

A toy bag-of-words embedder used in the lesson's demo; real systems call an embedding API.

Introduced in 04.2 Zero-Shot, Few-Shot and Examples
hashlib

Stdlib cryptographic hash functions (e.g., SHA-256) used to fingerprint content for cache keys and change detection.

Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Library
HATEOAS

Hypermedia As The Engine Of Application State — responses containing links to related actions so clients discover capabilities; rarely implemented.

Introduced in 00.6 HTTP, REST and JSON
Head vs tail sampling

Decide at trace start (random %) vs buffer-then-decide on outcome; tail keeps rare bad traces.

Introduced in 11A.1 Tracing and Observability for LLM Applications
Head-of-line blocking

Many waiters queued behind one slow holder of a fair lock or resource; plain queueing delay.

Introduced in 01C.4 Deadlocks, Livelock and Starvation
head_dim

The vector size each attention head works with (hidden_size / number of heads, unless set explicitly).

Introduced in 02.4 Attention and Transformers
Header carry-forward

Sending prior pages' header context so continuation pages extend one record.

Introduced in 09.2 Document Understanding with Vision Models
Header/footer boilerplate

Repeated marginal text (running titles, page numbers, disclaimers) detected by repetition across pages plus position near margins.

Introduced in 05.2 Parsing PDFs
`HeaderMismatch` (`-32020`)

The error when mirrored headers disagree with the body

Introduced in 08E.2 MCP in Depth: Primitives, Servers, Clients and Transports
Headless browser

A real browser driven by script (Playwright) for JS-rendered pages.

Introduced in 05.1 Data Sources, Formats and the Ingestion Mindset
Headless mode

Non-interactive CLI invocation (claude -p, codex exec, gemini "prompt").

Introduced in 08A.15 Coding and Computer-Use Agents
Headline metric (Inspect)

The single metric Inspect shows for a task in the log viewer, progress display and evals_df(); by default the first metric of the first scorer, set explicitly with Task(headline_metric=...).

Introduced in 10B.10 Inspect Scorers, Metrics, Epochs and the Statistics Inspect Reports (optional)
Health vs readiness probe

/healthz (process alive → restart) vs /readyz (serve traffic → drain).

Introduced in 11C.1 Deploying LLM Services
heapq / bisect

Priority-queue / sorted-insert helpers over plain lists.

Introduced in 01A.4 Core Data Structures: Lists, Tuples, Dictionaries and Sets
heapq.nlargest / nsmallest

Top/bottom-k of any iterable without a full sort.

Introduced in 01A.5 Comprehensions, Iterators and Generators
Heartbeat

A regular proof-of-life signal from the code being guarded.

Introduced in 01C.4 Deadlocks, Livelock and Starvation
Heartbeat (runtime)

An explicit runtime.heartbeat() call that resets the idle clock when refresh_on="heartbeat".

Introduced in 08F.12 Human-in-the-Loop and Control Flow
Heavy-user problem

A flat price on variable-cost usage, with a fat tail of very expensive users.

Introduced in 11B.2 Tokenomics: The Unit Economics of LLM Applications
Hedged request

Sending the same request twice and using the first response (cuts tail latency, costs double).

Introduced in 01B.9 Retries, Timeouts, Backoff and Resilience
Heisenbug

A bug that disappears or changes when you try to observe it; races are the classic case.

Introduced in 01C.3 Race Conditions and Thread Safety
Held-out set

Eval cases not looked at during tuning, used to check against overfitting

Introduced in 14A.10 Your First-90-Days Project on an Internal Use Case
Here-document

<<'EOF' — feed the following lines to a command until a lone EOF.

Introduced in 00.2 The Terminal and Shell
Hidden file

A file whose name starts with . (Unix) — hidden from plain ls.

Introduced in 00.2 The Terminal and Shell
Hidden layer

A layer of neurons between a network's input and its output. Its values are internal and never seen directly.

Introduced in 02.1 Neural Network Basics
Hidden multiplier

A factor that multiplies the naive per-call cost: retries, truncation, fallbacks, reasoning, history, agent steps.

Introduced in 11B.1 Cost and Latency Optimization
Hidden size (d_model)

The width of the vectors flowing through a model's layers.

Introduced in 02.3 Embeddings
Hidden state

State kept outside the graph state (a global, closure or cache), shared across users and invisible to checkpoints.

Introduced in 08F.15 Patterns, Pitfalls and Migration
Hidden test

A test inside the sandbox or scorer that the model is not told about, used to verify final state.

Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)
Hidden/bad OCR layer

An invisible text layer from a previous OCR pass that may contain errors; detectable by text-quality heuristics, not by presence alone.

Introduced in 05.4 OCR and Scanned Documents
Hierarchical summary

Layered summaries (turn → episode → session) that compress long-horizon conversations while keeping each level small.

Introduced in 04.7 Context Engineering: Managing Context Over Time
High-risk AI system

An EU AI Act category (Annex I embedded systems, Annex III standalone uses like recruitment and credit scoring) carrying the strictest obligations; Annex III applies December 2027, Annex I August 2028 post-Omnibus.

Introduced in 12.9 Responsible AI, Policy and Compliance
HIPAA

The US health-privacy law; sending protected health information to an API requires the vendor's Business Associate Agreement and HIPAA-eligible endpoints.

Introduced in 03.2 Messages, Roles and Conversation State
Hiring funnel

The pipeline of applications → screens → interviews → offers, used to measure conversion.

Introduced in 14B.1 The AI Engineering Landscape: Roles, Teams and Career Paths
Hiring scam

Fraudulent recruiting (fake interviews, advance fees, credential theft), the theft of personal data it enables, and job-search conversion tracking.

Introduced in 14B.8 Interview Prep III: Take-Homes, Behavioural Rounds and Offers
Histogram

A metric that counts observations into buckets for percentile estimation.

Introduced in 11A.2 Metrics, Dashboards, SLOs and Alerting
Hit

One retrieved result: id, score, text, metadata, source (provenance: which stage produced it).

Introduced in 06.10 Evaluating and Tuning Retrieval
Hit rate / context sufficiency

The fraction of evaluation questions whose answer-bearing text appears inside the retrieved context — the core chunking-quality metric in this lesson.

Introduced in 05.7 Advanced and Document-Specific Chunking
Hit rate and MRR

The share of questions whose answer chunk is in the top k, and the mean of 1/rank of the first right chunk.

Introduced in 08F.9 RAG with LangChain
HMAC signature

A keyed fingerprint of a message that proves the sender knows a shared secret and the message was not altered.

Introduced in 03.9 Async, Concurrency and Batch Processing
HNSW

Hierarchical Navigable Small World — a layered graph index where each vector links to approximate nearest neighbours and queries greedily descend the layers.

Introduced in 06.4 Vector Indexes: HNSW, IVF, Quantization and Trade-offs
hnsw.ef_search / hnsw_ef / ef

The query-time candidate-list size knob, named differently per store.

Introduced in 06.5 Vector Databases: Choosing and Using One
hOCR / ALTO / TSV

Structured OCR output formats carrying word boxes, reading order and confidence scores.

Introduced in 05.4 OCR and Scanned Documents
Hold and wait

Holding one resource while waiting for another.

Introduced in 01C.4 Deadlocks, Livelock and Starvation
Hold-back window

The un-emitted tail of a stream retained so end-of-stream checks can still abort before release.

Introduced in 12.5 Guardrails and Output Validation
Hold-out set

Labelled cases never used during prompt iteration, reserved to detect overfitting; the less-contaminated estimate of real performance.

Introduced in 04.9 Iterating, Debugging and Porting Prompts
Holdout

A small permanent control group that never receives the feature, for measuring cumulative novelty-free effect.

Introduced in 13A.6 Product Metrics, Experiments and Unit Economics
Homebrew

The package manager for macOS (also works on Linux/WSL): formulae and casks.

Introduced in 00.1 Setting Up Your Computer for Development
Homoglyph

Lookalike character from another script (Cyrillic а vs Latin a).

Introduced in 05.5 Cleaning and Normalization
Homoglyph guard

A check that blocks text containing a protected name in a visually confusable form while allowing the literal name.

Introduced in 12.5 Guardrails and Output Validation
Honeytoken / canary credential

A fake credential, document or URL planted to trip an alert when an attacker or agent uses it.

Introduced in 12.8 Red Teaming and Security Testing
Hook (Inspect)

A Hooks subclass registered with @hooks whose async methods run at eval-set, run, task, sample and model-call events, used for tracking, monitoring and request or key management.

Introduced in 10B.13 Inspect Logs, Analysis and Extending Inspect (optional)
Host / client / server

The LLM app / its per-server connector / the capability provider.

Introduced in 08E.1 The Model Context Protocol (MCP)
Host mount

A host file or directory made visible in a container; writable host mounts are blocked by default because they break containment.

Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)
Hosted agent platform

A service where the agent runtime runs on the provider's or a third party's infrastructure and you configure agents via API/console (e.g. Anthropic Managed Agents, Vertex AI Agent Engine).

Introduced in 08F.1 Agent Frameworks and SDKs
Hosted document AI

Per-page-priced parsing and OCR services such as LlamaParse, Mistral OCR, AWS Textract, Google Document AI and Azure AI Document Intelligence.

Introduced in 05.2 Parsing PDFs
Hosted tool

A tool OpenAI runs on its servers (web search, file search, code interpreter, hosted MCP and others)

Introduced in 08F.2 OpenAI Agents SDK
Hot-path and background memory writes

Saving memories while answering (usually through a tool) versus afterwards in a separate job.

Introduced in 08F.11 Persistence, Durable Execution and Memory
House defaults

The limits, retries and names every agent in an application gets by default.

Introduced in 08F.15 Patterns, Pitfalls and Migration
HSTS

Strict-Transport-Security — a response header that makes HTTPS-only behaviour permanent for a domain.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
HTML / CSS / JavaScript

Structure / appearance / behaviour of a web page; JavaScript also runs server-side (Node.js etc.).

Introduced in 00.5 How Web Apps Work: Client, Server and Database
htmldate / w3lib / courlan

Date extraction / URL canonicalization / URL filtering libraries.

Introduced in 05.3 Parsing HTML, Web Pages and Office Files
HTTP

The plain-text request/response protocol of the web (RFC 9110): a start line, headers, a blank line and an optional body in each direction.

Introduced in 00.6 HTTP, REST and JSON
HTTP client

A library that builds, sends and receives HTTP requests and responses (httpx, requests, aiohttp).

Introduced in 01B.5 HTTP Clients with httpx
HTTP request / response

Method+URL+headers+body out; status+headers+body back. (Deep dive: [00.6](00-developer-foundations/06-http-rest-and-json.md).).

Introduced in 00.5 How Web Apps Work: Client, Server and Database
HTTP/1.1, /2, /3

Protocol revisions: text / binary multiplexed / QUIC-over-UDP transport; same HTTP semantics.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
HTTPException

FastAPI's exception for expected HTTP failures (status_code, detail).

Introduced in 01B.7 FastAPI Basics: Building a Small API
HTTPS

HTTP inside TLS — the https:// scheme; certificate proves domain control.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
httpx

The modern Python HTTP client: sync + async, HTTP/2, timeouts, streaming.

Introduced in 01B.5 HTTP Clients with httpx
httpx.Limits

Pool sizing options: max_connections, max_keepalive_connections and keepalive_expiry.

Introduced in 01B.5 HTTP Clients with httpx
httpx.Timeout

Httpx's four-phase timeout configuration: connect, read, write and pool.

Introduced in 01B.5 HTTP Clients with httpx
httpx2

Pydantic's maintained fork of httpx, used by openai 3.x and anthropic 2.x (and, from 3.0.0, by google-genai).

Introduced in 01B.5 HTTP Clients with httpx
Hubness

The phenomenon where a small number of vectors appear in disproportionately many queries' top-k lists.

Introduced in 06.3 Similarity Metrics and Nearest-Neighbour Search
Human baseline

A run in which a person performs the same task under the same interface, environment, budget and scorer, using human_cli() in Inspect.

Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)
Human review queue

A prioritised list of traces for human labelling and judge calibration.

Introduced in 10A.9 Offline vs Online Evaluation
Human-eval service

A vendor selling expert-labelled data and human grading at scale (e.g., Scale AI, Surge AI).

Introduced in 10A.10 Evaluation Platforms, Benchmarks and Building an Eval Culture
Human-in-the-loop (HITL)

A workflow design in which a person approves, edits or answers at some step before the run continues.

Introduced in 08F.12 Human-in-the-Loop and Control Flow
Human-in-the-loop approval

Pause before risky tools; approve / edit / reject; resume from a snapshot.

Introduced in 08A.10 Agent Patterns: ReAct, Plan-and-Execute, Routing and Orchestrator-Workers
Human-in-the-loop checkpoint

A workflow pause point where a person approves, edits or rejects a proposal before it commits.

Introduced in 08A.9 Workflows vs Agents
Human-in-the-loop triage

VLM flags candidates, human decides — for safety-critical inspection.

Introduced in 09.1 Vision Applications: Understanding Images
HumanInTheLoopMiddleware

Middleware that pauses before chosen tool calls for an approve, edit, reject or respond decision; needs a checkpointer.

Introduced in 08F.8 Tools and create_agent
Human–human agreement ceiling

The κ between expert labellers — the upper bound a judge can meaningfully reach.

Introduced in 10A.5 Calibrating and Validating Judges
Hybrid e-invoice (Factur-X / ZUGFeRD)

A PDF/A-3 invoice with a machine-readable XML invoice attached inside it; read the XML first, use the page as a cross-check.

Introduced in 09.2 Document Understanding with Vision Models
Hybrid model

A model mixing attention layers with SSM or linear-attention layers.

Introduced in 02.4 Attention and Transformers
Hybrid OCR pipeline

Routing each page to the cheapest engine that can read it, escalating low-confidence or handwriting pages to a VLM.

Introduced in 05.4 OCR and Scanned Documents
Hybrid RAG

RAG with query enhancement, retrieval validation, answer validation and bounded iteration around retrieval.

Introduced in 08F.9 RAG with LangChain
Hybrid reasoning model

A single model that can either think or answer directly, controlled by a switch such as Qwen3's enable_thinking.

Introduced in 02.8 Reasoning Models
Hybrid simulation graph

A DeepEval simulation graph that mixes scripted user nodes with default_simulation_node() branches improvised by the simulator model, trading some repeatability for realism.

Introduced in 10B.6 DeepEval Datasets, Synthetic Data, Conversation Simulation and Benchmarks
Hybrid strategy

Parsing approach that tries cheap deterministic extraction first and escalates only failed or hard pages to a vision model.

Introduced in 05.2 Parsing PDFs
HybridChunker / chunk_by_title

The structure-reading chunkers of Docling (split over-long element chunks by tokens, merge small neighbours with the same headings) and Unstructured (start a new chunk at each Title, never span sections); see [4.5.1](05-data-engineering-for-ai/06-chunking-strategies.md#451-chunkers-that-read-parsed-structure-docling-and-unstructured).

Introduced in 05.6 Chunking Strategies
HyDE

Hypothetical Document Embeddings: generating a fake answer to the query and embedding that instead of the query itself (Gao et al., 2022).

Introduced in 05.7 Advanced and Document-Specific Chunking
Hyperparameters

Settings chosen by humans before training, such as the number of layers, learning rate and batch size, as opposed to parameters, which are learned.

Introduced in 02.1 Neural Network Basics
Hypothetical question generation

Generating questions a chunk would answer at index time so query embeddings have a matching "register" to hit; related to doc2query and HyDE.

Introduced in 05.7 Advanced and Document-Specific Chunking
Hypothetical questions

LLM-generated questions stored per chunk and embedded as extra vectors resolving to the same chunk_id (multi-vector retrieval, owned by 05.7).

Introduced in 05.8 Metadata Design
Hyrum's law

The observation that, with enough users, every observable behavior of a system is depended on by someone, documented or not; the reason undocumented behavior an eval relies on needs its own re-test after upgrades.

Introduced in 10B.18 Finish Learning DeepEval and Inspect from the Official Docs

I

__init__

The initialiser Python calls on Class(...); fills in instance attributes.

Introduced in 01A.6 Classes, Dataclasses and Enums
__init__.py

The package's front door: runs once on first import; re-exports the public API.

Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Library
I/O multiplexing

Waiting on many file descriptors with one call (select, poll, epoll, kqueue) and being told which are ready.

Introduced in 01C.1 Concurrency, Parallelism and Context Switching
I/O-bound / CPU-bound

Time dominated by waiting on external I/O / by local computation.

Introduced in 01B.3 Async Python: async/await and the Event Loop
IC track / management track

Individual-contributor vs people-management career paths (the IC definition is [14B.1](14b-career-appendix/01-the-ai-engineering-landscape.md)'s).

Introduced in 14B.9 Your First 90 Days and Long-Term Growth
ICC profile

Colour-space information embedded in an image file; dropping it can shift colours in wide-gamut (for example Display P3) photos.

Introduced in 03.6 Images, PDFs and Files
IDE / editor

Interactive software for writing code; VS Code is the recommended one here.

Introduced in 00.1 Setting Up Your Computer for Development
Idempotency

Performing an operation once vs *n* times has the same effect.

Introduced in 01B.9 Retries, Timeouts, Backoff and Resilience
Idempotency key

A client-chosen unique ID making a retried POST safe. See also [Idempotent action](#idempotent-action).

Introduced in 00.6 HTTP, REST and JSON
Idempotent

Repeating the operation leaves the same end state as doing it once (close_ticket yes, add_note no).

Introduced in 01A.3 Control Flow and Functions
Idempotent action

An action that is safe to run twice: repeating it doesn't send a second email or charge a card twice. *(Introduced in [lesson 02.10](02-how-llms-work/10-limitations-and-failure-modes.md#182-try-it-why-errors-compound))* LLM inference APIs have no idempotency keys, so side effects of tool calls must be deduplicated by your own code. See [Dedupe key](#dedupe-key) and [Idempotent resubmission](#idempotent-resubmission). *(Extended in [lesson 03.8](03-llm-apis/08-errors-and-retries.md#111-no-idempotency-keys-for-inference))*

Idempotent cleaning

clean(clean(x)) == clean(x) — a cleaner that changes nothing on re-run.

Introduced in 05.10 Data Quality Checks
Idempotent job handling

Processing a job twice has the same effect as processing it once

Introduced in 08A.13 Background and Long-Running Agents
Idempotent method

An HTTP method where repeating the same request has the same effect as sending it once — GET, HEAD, OPTIONS, TRACE, PUT and DELETE (RFC 9110 §9.2.2); POST, CONNECT and PATCH-by-default are not.

Introduced in 00.6 HTTP, REST and JSON
Idempotent resubmission

Re-running a job so that only items without a good result are sent again. See also [Idempotent action](#idempotent-action).

Introduced in 03.9 Async, Concurrency and Batch Processing
Idempotent script

Safe-to-rerun property (same inputs → same outputs); dry-run previews changes writing nothing.

Introduced in 01A.9 Files, Paths, JSON and CSV
Identifier

A name for a variable, function, class or module.

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
Identity (id, is)

Whether two names refer to the same object (not whether they are equal).

Introduced in 01C.6 Python Memory Management
IDF

Inverse document frequency — a term's rarity weight.

Introduced in 06.7 Keyword Search and BM25
Idle timeout

Expiry after a period without activity; the deadline slides with each request

Introduced in 08B.1 Kinds of State and Session Management
IEEE 754

The binary floating-point standard float implements; explains why 0.1 + 0.2 != 0.3.

Introduced in 01A.2 Numbers, Strings and Text
if __name__ == "__main__"

Guard so a file runs as script but not when imported; __main__ is the script's module name.

Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Library
Image API (OpenAI)

POST /v1/images/generations and /v1/images/edits — direct single-shot calls.

Introduced in 09.3 Image Generation and Editing
Image detail level (detail)

OpenAI's per-image setting (low, high, original, auto) that controls how an image is resized before tokenization, and so its cost and fidelity.

Introduced in 03.6 Images, PDFs and Files
Image digest

An immutable content hash of a container image, used when a tag such as latest would make runs non-reproducible.

Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)
Image editing / image-to-image

Generating a new image conditioned on one or more input images plus a prompt.

Introduced in 09.3 Image Generation and Editing
Image token multiplier

OpenAI's per-model factor (for example 1.2) applied to an image's patch count to get its billable input tokens.

Introduced in 03.6 Images, PDFs and Files
image_config / ImageConfig

Gemini's generate_content config for aspect_ratio + image_size.

Introduced in 09.3 Image Generation and Editing
image_generation tool

The Responses API built-in tool letting a mainline model generate/edit images in conversation.

Introduced in 09.3 Image Generation and Editing
image_generation_call

The Responses output item carrying a generated image's base64 result and revised_prompt.

Introduced in 09.3 Image Generation and Editing
Immortal object

An object whose reference count is never updated (such as None; immortal objects arrived in 3.12 for all builds, PEP 683), so threads never contend over it.

Introduced in 01C.5 The Global Interpreter Lock (GIL)
Immutability (strings)

str cannot be changed in place; every "edit" produces a new string — why strings are safe dict keys and why join beats +=.

Introduced in 01A.2 Numbers, Strings and Text
Immutable

A value that can't be changed in place; "edits" create new objects.

Introduced in 01A.2 Numbers, Strings and Text
Impact statement

A bullet formula: action verb + scope + method + measured result.

Introduced in 14B.5 Résumé, LinkedIn and the Job Search
Implicit delegation

Models treating relevant untrusted-context files (e.g. AGENTS.md, README) as authorised instructions without an explicit instruction role.

Introduced in 04.5 System Prompts, Roles and Personas
Implicit feedback

Behavioural signals: retries, abandonment, escalation, task completion.

Introduced in 10A.9 Offline vs Online Evaluation
Implicit vs explicit caching

Caching the provider applies automatically to repeated prefixes vs caching you request or configure yourself (for example with cache_control or a cache object). *(Introduced in [lesson 02.7](02-how-llms-work/07-context-windows.md#73-provider-prompt-caching-as-of-november-2026))* Gemini's explicit caches are not supported in the Interactions API or on Gemini 4 Argon and later; see [Explicit context cache](#explicit-context-cache). *(Extended in [lesson 03.7](03-llm-apis/07-cost-and-caching.md#85-if-youre-on-interactions-or-gemini-4-argon))*

Importance

A 1 to 10 rating of how much a memory matters

Introduced in 08B.4 Long-Term Memory and Memory Operations
Importance score

A per-turn weight deciding compaction priority, from heuristics, a classifier, or code that knows what matters.

Introduced in 04.7 Context Engineering: Managing Context Over Time
importlib.metadata

Stdlib API (3.8+) that reads the *installed* distribution's metadata — version, requirements, entry points — the same data PyPI shows.

Introduced in 01B.10 Logging, Debugging and Packaging: Putting the Toolkit Together
importlib.reload

Re-execute a module file into the same module object (development tool).

Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Library
importlib.util.find_spec

Ask where a module would load from without importing it.

Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Library
Imposter syndrome

The unfounded feeling that everyone else understands and you don't.

Introduced in 00.9 Working Like an Engineer: Debugging, Asking for Help and Learning Habits
Improper output handling

OWASP LLM05:2025 — insufficient validation, sanitisation and handling of model outputs before they reach downstream systems (XSS, SSRF, SQLi, RCE).

Introduced in 12.5 Guardrails and Output Validation
In-context learning

A model with frozen weights performing a new task from examples placed in the prompt, with no weight update.

Introduced in 02.4 Attention and Transformers
In-flight slot

A counted unit of concurrent work held for a request's whole life, including streams.

Introduced in 11C.1 Deploying LLM Services
In-memory fake

A test double implementing a port with deterministic local behaviour, letting the whole application run with no network, keys or services.

Introduced in 13A.5 Architecture Patterns for AI Applications
In-process MCP server

Claude Agent SDK's create_sdk_mcp_server: Python functions exposed as MCP tools without a subprocess.

Introduced in 08F.1 Agent Frameworks and SDKs
Incident

An unplanned event that harms or threatens users, data, money or trust and needs a coordinated response

Introduced in 14A.5 The Incident Process for AI Systems
Incident commander

The role owning an incident response: delegates all other roles and keeps the living incident document.

Introduced in 11C.4 Operating LLM Systems: Governance, Incidents and the Production Checklist
Incident lifecycle

The phases of incident response: detect, triage, contain, mitigate, resolve, communicate, postmortem.

Introduced in 11C.4 Operating LLM Systems: Governance, Incidents and the Production Checklist
Incident playbook

The contain → audit → assess → fix → verify → write-up procedure for agent incidents.

Introduced in 08A.14 Reliable, Safe and Observable Agents
Incident severity (SEV-1..4)

A triage rating combining blast radius, exploitability and data sensitivity; SEV-1 pages immediately, SEV-4 is informational.

Introduced in 12.10 Security Operations, Incident Response and the Safety Checklist
include_raw

Makes with_structured_output return {"raw", "parsed", "parsing_error"} so failures become values.

Introduced in 08F.6 Prompts, Output Parsers and Structured Output
include_server_side_tool_invocations

Gemini ToolConfig flag that returns server-side tool calls and responses in the Content message, used when mixing built-in tools with your functions on generate_content.

Introduced in 03.5 Tool Calling: The API Mechanics
Incomplete run

A run stopped by a budget; it must fail the gate and never be reported as the suite's score

Introduced in 11B.8 The Cost of Agents and Long Contexts, Prompt Caching per Provider, and the Cost of Running Evals
Incremental GC

A collector that scans the old generation in slices to cut pause times; shipped in Python 3.14.0 to 3.14.4 and reverted in 3.14.5.

Introduced in 01C.6 Python Memory Management
Incremental indexing framework

A tool (for example CocoIndex) that keeps an index in sync with changing sources by re-running only what changed.

Introduced in 05.9 Ingestion Pipelines and Incremental Updates
Indentation

Leading whitespace that defines code blocks; 4 spaces per level, never mixed with tabs.

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
IndentationError / TabError

Compile-time errors for bad/mixed indentation.

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
independent epoch

A repeated sample episode intended to start from equivalent task conditions rather than continue prior state.

Introduced in 10B.16 Evaluating Agents with Inspect, and the Inspect Ecosystem (optional)
Index (B-tree)

Sorted lookup structure trading write cost for read speed.

Introduced in 00.7 SQL Basics with SQLite
Index configuration

The index={"embed", "dims", "fields"} argument that turns on semantic search in a store.

Introduced in 08F.11 Persistence, Durable Execution and Memory
Index freshness

How current the data the retriever actually serves is, measured through the index alias — distinct from content freshness of the source corpus.

Introduced in 07.11 Production RAG: Security, Freshness, Cost and Operations
Indexing API (index)

A langchain_core.indexing function that syncs a vector store with a source using content hashes and a record manager.

Introduced in 08F.9 RAG with LangChain
Indirect injection

The attack is planted in content the agent reads (documents, web pages, tool results)

Introduced in 08A.5 Required Agent Security
Indirect injection fixture

A self-hosted page, email or document carrying benign test instructions for probing retrieval/tool channels.

Introduced in 12.8 Red Teaming and Security Testing
Indirect object / xref table

Numbered PDF objects + the byte-offset index that locates them.

Introduced in 05.2 Parsing PDFs
Indirect prompt injection

Instructions hidden in content the model processes (web pages, emails, documents, tool results) that override the developer's intended behaviour.

Introduced in 02.10 Limitations and Failure Modes
Individual contributor (IC)

A technical track where you advance via scope and judgement rather than managing people.

Introduced in 14B.1 The AI Engineering Landscape: Roles, Teams and Career Paths
Induction head

An attention head that continues a pattern seen earlier in the context.

Introduced in 02.4 Attention and Transformers
Inference

Using a trained model, with frozen weights, to produce outputs. Every LLM API call is inference.

Introduced in 02.1 Neural Network Basics
Information hygiene

The discipline of verifying dates, sources and incentives before repeating AI-related claims — including detecting sponsored content, AI-generated slop and fabricated citations.

Introduced in 14A.9 Staying Current in a Fast-Moving Field
Informational interview

A short conversation to learn about a role/team — not a job interview and not a pitch.

Introduced in 14B.5 Résumé, LinkedIn and the Job Search
Infra error vs task error

Provider/environment failure (excluded) vs bug in the system under test (fails loudly).

Introduced in 10A.8 Regression Testing, CI and Experiment Tracking
Ingested-at

When the pipeline saw the document — processing time, always UTC.

Introduced in 05.8 Metadata Design
Ingestion pipeline

The nine-stage flow turning raw sources into retrievable, citable text: discover → fetch → parse → clean → chunk → enrich → embed → index → serve.

Introduced in 05.1 Data Sources, Formats and the Ingestion Mindset
Inheritance

class B(A) — B *is* an A; reuse via super() and overriding.

Introduced in 01A.6 Classes, Dataclasses and Enums
init_chat_model

A factory in langchain.chat_models that builds a chat model from "provider:model", model_provider= or an inferred name.

Introduced in 08F.5 Chat Models, Messages and Content Blocks
init_embeddings

A factory that builds an embeddings object from "provider:model".

Introduced in 08F.9 RAG with LangChain
initialize_model (DeepEval)

The DeepEval function that turns a metric's model= argument and the environment (USE_* flags, DEEPEVAL_LLM) into a judge object, at metric construction time.

Introduced in 10B.3 Judges in DeepEval: Models, G-Eval, DAG and Custom Metrics
Initializer

A function a ProcessPoolExecutor runs once in each worker at start-up, used to load or attach big read-only data once per worker instead of once per task.

Introduced in 01C.7 Shared Memory and Inter-Process Communication
Initializer agent

The first session of a long-running harness, which sets up the environment, progress file and feature list.

Introduced in 08A.4 Harness Engineering: Everything Around the Model
Injected parameter

A parameter (config, store, writer, runtime, previous) that LangGraph fills in by name and annotation.

Introduced in 08F.14 The Functional API and Streaming
Inline media

A file sent inside the request body, base64-encoded, rather than by URL or file ID.

Introduced in 03.6 Images, PDFs and Files
InMemoryRateLimiter

An in-process, thread-safe token-bucket limiter on request count, passed as rate_limiter=.

Introduced in 08F.5 Chat Models, Messages and Content Blocks
InMemorySaver

The in-memory checkpointer for tests and demos (MemorySaver is the old alias).

Introduced in 08F.11 Persistence, Durable Execution and Memory
InMemoryStore / SqliteStore / PostgresStore

Store backends: RAM, a SQLite file, and Postgres (with pgvector for semantic search).

Introduced in 08F.11 Persistence, Durable Execution and Memory
InMemoryVectorStore

Core's dictionary-backed vector store using cosine similarity; needs numpy for search.

Introduced in 08F.9 RAG with LangChain
Input audio transcription

Optional per-session transcription of what the user said, for captions/logs (off by default).

Introduced in 09.7 Realtime Voice Agents
Input drift

Change in the queries/users themselves.

Introduced in 10A.9 Offline vs Online Evaluation
Input tokens / prompt tokens

All tokens sent to the model in a request: system prompt, tools, history, documents, media and the new message. Also called prompt tokens.

Introduced in 02.7 Context Windows
Input tokens per minute (ITPM)

Anthropic's rate limit on input tokens; cache reads don't count towards it on most Claude models.

Introduced in 02.7 Context Windows
Input, output and private schema

The shapes a graph accepts, returns and passes privately between nodes.

Introduced in 08F.10 LangGraph Fundamentals
input_audio_buffer.append

WebSocket event streaming base64 PCM audio chunks to the model.

Introduced in 09.7 Realtime Voice Agents
input_examples

Anthropic's optional array of schema-valid example inputs on a tool definition.

Introduced in 08A.6 Designing Tools Models Can Use
Insertion order

Dict iteration order equals the order keys were first added (guaranteed 3.7+).

Introduced in 01A.4 Core Data Structures: Lists, Tuples, Dictionaries and Sets
Insertion-ordered dict

dict preserves key insertion order (guaranteed 3.7+).

Introduced in 01A.11 Coming from PHP, JavaScript or Java: Side by Side
Inspect (Inspect AI)

The UK AI Security Institute's open-source, MIT-licensed evaluation framework (co-developed with Meridian Labs): the inspect_ai Python package, the inspect command line and the Inspect View log viewer.

Introduced in 10B.8 Inspect AI Fundamentals: Task = Dataset + Solver + Scorer (optional)
Inspect Cyber

The AISI cyber-evaluation framework built on Inspect.

Introduced in 10B.16 Evaluating Agents with Inspect, and the Inspect Ecosystem (optional)
Inspect Evals

The public library of evaluation implementations built for Inspect.

Introduced in 10B.16 Evaluating Agents with Inspect, and the Inspect Ecosystem (optional)
Inspect Harbor

The bridge that runs Harbor-format tasks through Inspect solvers, scorers, sandboxes and logs.

Introduced in 10B.16 Evaluating Agents with Inspect, and the Inspect Ecosystem (optional)
Inspect Petri

The multi-turn adversarial auditing framework for probing model behaviour with an auditor model.

Introduced in 10B.16 Evaluating Agents with Inspect, and the Inspect Ecosystem (optional)
inspect score

Inspect's command for grading a saved log again with the task's or another scorer, appending or overwriting scores; it prompts unless told what to do.

Introduced in 10B.11 Model Grading in Inspect, and Validating the Grader (optional)
Inspect Scout

The transcript-analysis and scanning system in the Inspect ecosystem.

Introduced in 10B.16 Evaluating Agents with Inspect, and the Inspect Ecosystem (optional)
Inspect SWE

Meridian Labs' companion package for running coding-agent CLIs such as Claude Code inside Inspect sandboxes.

Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)
Inspect View

Inspect's web viewer for log directories, started with inspect view or built into the VS Code extension, showing results, samples, messages, scoring and transcripts.

Introduced in 10B.8 Inspect AI Fundamentals: Task = Dataset + Solver + Scorer (optional)
Inspect Viz

Meridian Labs' companion package for interactive plots of Inspect log dataframes, linked back to transcripts. *(Introduced in [lesson 10B.13](10b-eval-frameworks/13-inspect-logs-analysis-and-extending.md#98-inspect-viz-and-inspect-scout-in-brief))* *(Extended in [lesson 10B.16](10b-eval-frameworks/16-evaluating-agents-with-inspect-and-ecosystem.md#terms-introduced-in-this-lesson))*

inspect.signature

Reconstructs a callable's full signature — parameters, defaults, kinds, annotations — as written.

Introduced in 01A.10 Type Hints and Writing Readable Code
INSPECT_REQUIRED_HOOKS

An environment variable that makes Inspect fail at startup unless the named hooks (package-qualified names) are installed.

Introduced in 10B.13 Inspect Logs, Analysis and Extending Inspect (optional)
Installed

A program's files exist on disk and the OS can start them.

Introduced in 00.1 Setting Up Your Computer for Development
Installed signature

The parameters and defaults read from the package you actually have with inspect.signature; the most reliable reference for your version because it cannot be out of date relative to your code.

Introduced in 10B.18 Finish Learning DeepEval and Inspect from the Official Docs
Instance

A single object created from a class (t = Ticket(...)).

Introduced in 01A.6 Classes, Dataclasses and Enums
Instance attribute

self.x = ... — data belonging to one object.

Introduced in 01A.6 Classes, Dataclasses and Enums
Instruct / chat model

A post-trained model that follows instructions and holds conversations.

Introduced in 02.6 How LLMs Are Trained
Instruct model

See [Instruct / chat model](#instruct--chat-model).

Instruction decay

Instructions being followed less reliably as they become more numerous, or further away in a long prompt or conversation.

Introduced in 02.10 Limitations and Failure Modes
Instruction drift

Behaviour degrading over many turns as the system prompt recedes upstream and recent text dominates attention.

Introduced in 04.7 Context Engineering: Managing Context Over Time
Instruction file

A Markdown file in a repository read by an agent at session start (AGENTS.md, CLAUDE.md, .github/copilot-instructions.md)

Introduced in 08B.5 Memory Failure Modes, Context Rot, Production State Stores and AGENTS.md-style Files
Instruction hierarchy

The trained priority order a model uses when instructions conflict (provider policy, then system/developer, then user, with documents and tool results treated as data). *(Introduced in [lesson 02.6](02-how-llms-work/06-how-llms-are-trained.md#63-system-prompts-are-a-trained-behaviour))* OpenAI's Model Spec names the levels: "system" is OpenAI's own rules, "developer" is your application, then the user; tool output and quoted text have no authority by default. *(Extended in [lesson 03.2](03-llm-apis/02-messages-and-conversations.md#22-openai-responses-instructions-and-four-roles))*

Instruction-aware embedding

An embedding model that takes a one-sentence task description (usually on the query side only) and changes the vector accordingly; typical of LLM-backbone open models such as Qwen3-Embedding and Harrier.

Introduced in 06.1 Embedding Models and APIs in Practice
Instruction/data boundary

The implicit or explicit line between what the model should obey and what it should process.

Introduced in 04.4 Structuring Prompts: XML, Markdown and Delimiters
instructions

The Responses API's top-level system/developer text. It applies to one request only and is not carried over by previous_response_id, so it must be resent every turn.

Introduced in 03.2 Messages, Roles and Conversation State
Instrumentation

Code you add so a program records what it did

Introduced in 03.12 Minimal Tracing: See What Your First LLM App Did
Insufficient-context probe

Running answerable cases with the gold chunks withheld and measuring how often the system answers instead of abstaining.

Introduced in 10A.6 Evaluating RAG Pipelines in Depth
int / float / bool / str / None

The five core types (arbitrary-precision int, IEEE-754 float, int-subclass bool, immutable str, NoneType singleton).

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
Integrated terminal

A real shell panel inside the editor.

Introduced in 00.1 Setting Up Your Computer for Development
Integration (DeepEval)

An entry point that records a framework's activity as DeepEval traces and spans

Introduced in 10B.7 DeepEval in Production: Red Teaming, CI/CD, Prompt Optimization and Confident AI
IntEnum / StrEnum

Enums whose members *are* ints/strings — JSON-friendly, comparable to primitives.

Introduced in 01A.6 Classes, Dataclasses and Enums
Inter-annotator agreement (IAA)

How much agreement between labellers exceeds chance — measured by κ, weighted κ, Fleiss' κ, alpha.

Introduced in 10A.2 Building Evaluation Datasets
Inter-delta gap

The time between consecutive visible deltas; its maximum is the longest freeze the user sees.

Introduced in 03.3 Streaming Responses
Inter-process communication (IPC)

Any way for separate processes to exchange data: pipes, queues, sockets, files, shared memory.

Introduced in 01C.7 Shared Memory and Inter-Process Communication
Inter-token latency

The gap between tokens during streaming decode — reveals provider-side degradation.

Introduced in 11A.2 Metrics, Dashboards, SLOs and Alerting
Interaction level

The level of multi-agent evaluation that grades the edges between agents (handoffs, delegations, returns, escalations), as opposed to the system's outcome or one agent's work.

Introduced in 10A.12 Evaluating Multi-Agent Systems and Validating User Simulators
Interactions API

Gemini's newer API (GA June 2026), recommended by Google for new projects.

Introduced in 03.1 The Provider APIs and Your First Calls
Interim vs final transcript

Speculative partial text revised as audio arrives versus committed per-turn transcript.

Introduced in 09.4 Speech-to-Text
Interleaved thinking

Reasoning between tool calls within one assistant turn, so the model thinks about each tool result before acting.

Introduced in 02.8 Reasoning Models
Interleaving (schedule)

One possible order in which the steps of several threads run; tests can enumerate them all.

Introduced in 01C.3 Race Conditions and Thread Safety
Intermediate scoring (Inspect)

Running the task's scorers from inside a solver with inspect_ai.scorer.score(state), for example to decide whether to retry; it makes the scorer part of the system under test.

Introduced in 10B.10 Inspect Scorers, Metrics, Epochs and the Statistics Inspect Reports (optional)
Internal catalogue

Your organisation's reviewed list of approved MCP servers, owners and definition hashes

Introduced in 08E.3 Remote MCP: OAuth, Gateways and Many Servers
Internally / externally tagged

Whether a tool's type sits beside its fields (Responses) or wraps them under a function key (Chat Completions).

Introduced in 03.5 Tool Calling: The API Mechanics
Interning (sys.intern)

Keeping a single canonical copy of equal strings so they share one object; saves memory for many repeated, separately built strings.

Introduced in 01C.6 Python Memory Management
Interpolated percentile

A percentile computed between the two nearest observations

Introduced in 11A.3 Latency Percentiles, Error Classification, Audit Logs, Session Replay, Dashboards and SLOs
Interpretability

The research field that tries to understand what happens inside a neural network and why it produces a given output.

Introduced in 02.1 Neural Network Basics
Interpreter

The program that reads and executes Python source; CPython compiles to bytecode, then runs it.

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
InterpreterPoolExecutor

A concurrent.futures executor whose worker threads each run tasks in their own subinterpreter, giving multi-core parallelism in one process (3.14+).

Introduced in 01C.5 The Global Interpreter Lock (GIL)
Interrupt mode

HumanInTheLoopMiddleware's batched (one interrupt for all tool calls) or per_call (one per call, with the real tool visible to when) behaviour.

Introduced in 08F.8 Tools and create_agent
interrupt() / Command(resume=...)

LangGraph's pause-and-continue primitives for human-in-the-loop.

Introduced in 08F.1 Agent Frameworks and SDKs
Interruption

A pending approval request returned in result.interruptions

Introduced in 08F.2 OpenAI Agents SDK
Interval IoU

Intersection-over-union computed on time intervals; the metric for evaluating timestamped event predictions against ground truth.

Introduced in 09.8 Video Understanding
Intervention

Operator input or interruption during a run through ACP or related tools.

Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)
Intrinsic vs extrinsic hallucination

An intrinsic hallucination contradicts the source the model was given; an extrinsic one adds information the source neither supports nor contradicts.

Introduced in 02.10 Limitations and Failure Modes
Introductory pricing

A temporary launch price with an announced end date.

Introduced in 02.9 Model Landscape
Introspection

Examining objects at runtime: vars, dir, getattr, __annotations__.

Introduced in 01A.6 Classes, Dataclasses and Enums
int↔str digit limit

sys.get_int_max_str_digits() (default 4300, Python 3.11+) caps int↔str conversions; sys.set_int_max_str_digits raises the cap.

Introduced in 01A.2 Numbers, Strings and Text
Invalidation hierarchy

Anthropic's rule that a change to tools, system or messages invalidates the cache at that level and every level after it, but not the levels before.

Introduced in 03.7 Token Counting, Cost Tracking and Prompt Caching
Invariance test

A metamorphic check asserting that semantically equivalent inputs (paraphrases, reorders, typos) produce equivalent outputs.

Introduced in 10A.3 Deterministic Metrics and Code-Based Graders
Invariant

A condition that must hold between operations ("stock is never negative").

Introduced in 01C.3 Race Conditions and Thread Safety
Inverse text normalisation (ITN)

Converting spoken forms ("twenty six million dollars") into written forms ("$26M").

Introduced in 09.4 Speech-to-Text
Inverted index

Term → postings (doc IDs, term frequencies, positions) mapping that makes keyword lookup fast.

Introduced in 06.7 Keyword Search and BM25
invisible elements

DOM content hidden from view: [hidden], display:none, aria-hidden, <template>, <noscript>.

Introduced in 05.3 Parsing HTML, Web Pages and Office Files
`invoke_agent` / `invoke_workflow`

Operations for an agent driven by the LLM, and for application-defined control flow

Introduced in 11A.1 Tracing and Observability for LLM Applications
io.StringIO / BytesIO

In-memory file objects with the same interface as real files — for rendering CSV/JSON to strings or faking files in tests.

Introduced in 01A.9 Files, Paths, JSON and CSV
IoU (Intersection over Union)

overlap / union of two boxes; ≥0.5 the common match threshold.

Introduced in 09.1 Vision Applications: Understanding Images
IP address

Numeric machine address: IPv4 (32-bit dotted) or IPv6 (128-bit hex).

Introduced in 00.5 How Web Apps Work: Client, Server and Database
IP assignment

A contract clause assigning ownership of created work to the employer.

Introduced in 14B.8 Interview Prep III: Take-Homes, Behavioural Rounds and Offers
IP indemnity

A provider's promise to defend customers against intellectual-property claims over generated output, under conditions.

Introduced in 02.9 Model Landscape
is_follow_up

A condense-step output flagging that the message depends on earlier turns; it gates whether last turn's retrieved chunks are carried forward.

Introduced in 07.6 Conversational RAG
is_tenant shard

Qdrant's tenant-aware shard placement for payload-partitioned multitenancy.

Introduced in 06.5 Vector Databases: Choosing and Using One
`is` vs `==`

is tests object identity, == tests value equality; use is for None/singletons only.

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
isError

Tool-execution failure flag inside a successful result.

Introduced in 08E.1 The Model Context Protocol (MCP)
isinstance / getattr / callable

Type check / attribute read with default / can-it-be-called.

Introduced in 01A.3 Control Flow and Functions
isna / fillna / dropna

Detect / replace / remove missing values.

Introduced in 01B.11 NumPy and pandas Essentials for AI Work
ISO 8601 / ISO 4217 / E.164

Canonical date / currency / phone formats.

Introduced in 05.5 Cleaning and Normalization
ISO/NSO

Incentive vs Non-Qualified Stock Options — different tax treatment.

Introduced in 14B.8 Interview Prep III: Take-Homes, Behavioural Rounds and Offers
Isolation ladder

Process, container, user-space kernel, microVM, WebAssembly: stronger boundaries at higher cost

Introduced in 08A.5 Required Agent Security
Isolation level (L0–L4)

The L0–L4 ladder of evaluation cost and attribution power: offline stages, retrieval-only, stage-isolated generation (oracle context), end-to-end, and online traffic.

Introduced in 10A.6 Evaluating RAG Pipelines in Depth
Issue

A tracked bug report or feature request in a repository — the project's shared work queue.

Introduced in 00.4 GitHub and Collaboration
Issue form

A .yml template in .github/ISSUE_TEMPLATE/ written in GitHub's form schema — dropdowns, checkboxes, required fields — whose answers become the issue body as markdown.

Introduced in 00.4 GitHub and Collaboration
Item and SearchItem

The store's returned document (value, key, namespace, timestamps) and the same plus a score.

Introduced in 08F.11 Persistence, Durable Execution and Memory
item_reference

An OpenAI Responses input item that points at an item the server already holds, by ID.

Introduced in 03.2 Messages, Roles and Conversation State
iter_bytes/aiter_lines

Streaming readers over a response body, sync/async.

Introduced in 01B.5 HTTP Clients with httpx
Iterable

Anything you can for over (list, string, dict, range, generator...).

Introduced in 01A.3 Control Flow and Functions
Iteration protocol

The iter()/next()/StopIteration contract every for loop runs.

Introduced in 01A.5 Comprehensions, Iterators and Generators
Iterative index scan

A pgvector ≥0.8 feature that keeps scanning the ANN index until enough rows survive a WHERE filter, fixing the post-filter shrinkage problem.

Introduced in 06.5 Vector Databases: Choosing and Using One
Iterator

A one-shot cursor over an iterable's items; remembers position, raises StopIteration at the end.

Introduced in 01A.5 Comprehensions, Iterators and Generators
itertools

The standard library's iterator-building toolkit (chain, islice, batched, groupby, …).

Introduced in 01A.5 Comprehensions, Iterators and Generators
itertools.accumulate

Yields running totals (prefix sums) with an optional function.

Introduced in 01A.5 Comprehensions, Iterators and Generators
itertools.batched

Groups an iterable into tuples of n (3.12+; strict= in 3.13+).

Introduced in 01A.5 Comprehensions, Iterators and Generators
itertools.groupby

Groups *consecutive* equal keys — input must be sorted by the key.

Introduced in 01A.5 Comprehensions, Iterators and Generators
itertools.islice

Iterator-safe slicing: islice(it, start, stop, step).

Introduced in 01A.5 Comprehensions, Iterators and Generators
itertools.pairwise

Yields overlapping adjacent pairs (a,b), (b,c), … (3.10+).

Introduced in 01A.5 Comprehensions, Iterators and Generators
itertools.tee

Splits one iterator into n independent iterators.

Introduced in 01A.5 Comprehensions, Iterators and Generators
IVF / inverted-file index

A vector index that partitions data into k-means cells and searches only the nprobe cells nearest the query.

Introduced in 06.4 Vector Indexes: HNSW, IVF, Quantization and Trade-offs
IVF-PQ / IVFADC

IVF partition + PQ-compressed vectors (on residuals for ADC).

Introduced in 06.4 Vector Indexes: HNSW, IVF, Quantization and Trade-offs

J

Jaccard similarity

Fraction of shared elements between two sets.

Introduced in 05.5 Cleaning and Normalization
Jagged frontier

The uneven shape of LLM capability: strong at some hard-looking tasks, weak at some easy-looking ones.

Introduced in 02.10 Limitations and Failure Modes
Jailbreak

A prompt crafted to get around a model's safety training.

Introduced in 02.10 Limitations and Failure Modes
Jensen-Shannon divergence

Symmetric, bounded divergence between two distributions.

Introduced in 10A.9 Offline vs Online Evaluation
Jev

TypeSafe AI's paid "System One" decision model, which answers yes/no questions with probabilities in DeepEval's hybrid and system_one eval modes.

Introduced in 10B.3 Judges in DeepEval: Models, G-Eval, DAG and Custom Metrics
Jinja2

The Python template engine used for prompt templates (loops, conditionals, includes).

Introduced in 04.10 Prompt Templates, Versioning and a Prompt Library
JIT instructions

Shopify's variant of just-in-time context: relevant operating instructions returned with tool data, not front-loaded.

Introduced in 13A.7 Case Studies: How Real AI Products Are Built, and How They Fail
Jitter

Randomisation added to backoff waits to prevent synchronised retry storms.

Introduced in 01B.9 Retries, Timeouts, Backoff and Resilience
Jitter (full, equal, decorrelated)

Randomness added to backoff waits so that clients that failed at the same moment don't all retry at the same moment. Full jitter picks a wait uniformly between zero and the exponential value.

Introduced in 03.8 Errors, Rate Limits, Timeouts and Retries
Job / foreground / background

A shell-managed command; foreground blocks the prompt, background (&) doesn't.

Introduced in 00.2 The Terminal and Shell
Job decoder

The career_kit/job_decoder.py heuristic that sorts a pasted posting into sections and flags requirements/flags.

Introduced in 14B.1 The AI Engineering Landscape: Roles, Teams and Career Paths
Job runner

The component that drives job state machines — queued → running → succeeded/failed — with idempotency keys and progress events.

Introduced in 13A.5 Architecture Patterns for AI Applications
Job state machine

The defined set of states and legal transitions a unit of async work moves through, with status changes funnelled through one method.

Introduced in 13A.5 Architecture Patterns for AI Applications
Job story

A requirement in "when X, I want Y, so Z" situation form, from Jobs-to-be-Done.

Introduced in 13B.1 Capstone Planning and Scoping
Job-based pipeline

Async processing where submission and completion are separate events, with resumable per-stage artefacts.

Introduced in 13B.3 Capstone Build B: The Document Intelligence App
Job-to-be-done (JTBD)

The progress a user is trying to make in a circumstance — the "hire" the product is meant to fulfil.

Introduced in 13A.1 Product Thinking for AI Features: What to Build and When Not to Use AI
JOIN (INNER/LEFT/RIGHT/FULL/CROSS)

Stitching tables on keys; self-join for hierarchies; anti-join for absent matches.

Introduced in 00.7 SQL Basics with SQLite
Join key

The shared identifier (request_id, session_id, case_id, variant) that links product events to traces, evals and experiments.

Introduced in 13A.6 Product Metrics, Experiments and Unit Economics
jq

A command-line JSON processor for querying and reshaping JSON/JSONL.

Introduced in 00.2 The Terminal and Shell
JSON

RFC 8259's strict text data format: objects, arrays, strings, numbers, booleans, null.

Introduced in 00.6 HTTP, REST and JSON
JSON function (json_extract, ->>, json_each)

Querying JSON stored as text.

Introduced in 00.7 SQL Basics with SQLite
JSON functions / FTS5 / BM25

Querying JSON stored as text / SQLite full-text virtual table / its ranking function.

Introduced in 00.7 SQL Basics with SQLite
JSON mode

An API setting that makes the model produce syntactically valid JSON without enforcing any schema; keys, types and values are still up to the model.

Introduced in 03.4 Structured Output
JSON Schema

A JSON document describing the allowed shape of other JSON data.

Introduced in 00.6 HTTP, REST and JSON
json.dump vs dumps

Write into a file object vs return a string.

Introduced in 01A.9 Files, Paths, JSON and CSV
json.dumps / json.loads

Python: serialize object→JSON string / parse JSON string→object.

Introduced in 00.6 HTTP, REST and JSON
json_normalize

Pandas function that flattens nested JSON records (e.g. a usage object) into dotted columns.

Introduced in 01B.11 NumPy and pandas Essentials for AI Work
JSONDecodeError

Json exception carrying msg/lineno/colno/pos — quote them in error reports.

Introduced in 01A.9 Files, Paths, JSON and CSV
JSONL / JSON Lines

One complete JSON value per line — batch files, logs, eval sets.

Introduced in 00.6 HTTP, REST and JSON
JsonPlusSerializer

The default serializer (msgpack plus JSON) with an optional pickle fallback and strict mode.

Introduced in 08F.11 Persistence, Durable Execution and Memory
Judge calibration

Measuring agreement between an LLM judge and human labels (percent agreement and Cohen's κ) on a labelled calibration split before trusting judge metrics.

Introduced in 07.9 Evaluating RAG
Judge changelog

Versioned record of judge model/prompt/rubric + measured agreement per version.

Introduced in 10A.5 Calibrating and Validating Judges
Judge dev split

The label subset used to iterate the rubric and few-shots.

Introduced in 10A.5 Calibrating and Validating Judges
Judge drift

Silent change in judge behaviour from provider updates, alias repoints or input shift.

Introduced in 10A.5 Calibrating and Validating Judges
Judge model (DeepEval)

The DeepEvalBaseLLM object a metric calls to make its decisions, set with model= or resolved by initialize_model

Introduced in 10B.3 Judges in DeepEval: Models, G-Eval, DAG and Custom Metrics
Judge noise

Run-to-run verdict variance from model non-determinism, separate from example difficulty.

Introduced in 10A.5 Calibrating and Validating Judges
Judge prompt injection

Instructions embedded in the graded output that attempt to manipulate the judge's verdict.

Introduced in 10A.4 LLM-as-Judge
Judge routing

Making one framework's judge calls go through another framework's model layer, for example a DeepEval judge that is an Inspect grader role, so that Inspect's concurrency, retries, cache and usage accounting apply to them.

Introduced in 10B.17 DeepEval or Inspect? Choosing, Combining and Migrating (optional)
Judge test set

Frozen labelled cases run to regression-test judge prompt/model changes.

Introduced in 10A.5 Calibrating and Validating Judges
Judge validation

Measuring an LLM judge's agreement with human labels before trusting its scores.

Introduced in 10A.5 Calibrating and Validating Judges
Judge version

The tuple of pinned model snapshot + judge prompt version + rubric version stamped on every verdict.

Introduced in 10A.4 LLM-as-Judge
Judgement cache

Reusing judge outputs keyed by everything the judge sees (case id, question, expected facts, answer, context ids, abstained flag, judge version) — implemented as CachedJudge in docs_qa/eval/judges.py, with optional JSON persistence via path=.

Introduced in 07.9 Evaluating RAG
Judgement node (DeepEval)

A DAG node (BinaryJudgementNode or NonBinaryJudgementNode) that asks a yes/no or closed-choice question and follows the matching verdict.

Introduced in 10B.3 Judges in DeepEval: Models, G-Eval, DAG and Custom Metrics
jump_to

A node hook's return value ("end", "tools", "model") that redirects the run; the hook must declare can_jump_to.

Introduced in 08F.8 Tools and create_agent
Jury / panel judge

K judges (models or framings) aggregate one verdict; spread exposes disagreement.

Introduced in 10A.4 LLM-as-Judge
Jury judge

Running K judges (different models or prompt framings) and aggregating their verdicts; spread exposes disagreement.

Introduced in 10A.4 LLM-as-Judge
Just-in-time (JIT) context

Giving the model lightweight identifiers (paths, IDs, handles) and letting it fetch details via tools during the task instead of up-front.

Introduced in 04.6 Context Engineering: Selecting and Ordering Context
Just-in-time retrieval

Keeping lightweight references such as file paths or record IDs in the context and loading the actual content through tools only when the model needs it.

Introduced in 02.7 Context Windows
JWT

Signed (not encrypted) header.payload.signature token carrying claims like sub, exp, iss.

Introduced in 00.5 How Web Apps Work: Client, Server and Database

K

k-anonymity

A privacy property where every combination of quasi-identifier values is shared by at least k records, preventing linkage of an individual to a dataset row.

Introduced in 12.4 PII, Privacy and Data Leakage
k-occurrence

How often a document appears across queries' top-k results — the diagnostic for hubness.

Introduced in 06.3 Similarity Metrics and Nearest-Neighbour Search
k1 / b

BM25's saturation and length-normalization parameters (defaults ~1.2 / 0.75).

Introduced in 06.7 Keyword Search and BM25
Keep a Changelog

The de-facto CHANGELOG.md format; for AI projects, model changes are releases too.

Introduced in 14B.3 GitHub Presence and Project READMEs
Keep-alive

Reusing one TCP connection for multiple HTTP requests.

Introduced in 01B.5 HTTP Clients with httpx
Keep-list

The explicit list of what must survive trimming verbatim

Introduced in 08B.3 Short-Term Memory: Truncation, Summarization and Compaction
Key information extraction (KIE)

Pulling a few typed fields out of a document.

Introduced in 09.2 Document Understanding with Vision Models
Key rotation

Replacing a credential with a new one without downtime, then revoking the old.

Introduced in 01B.2 Environment Variables, Configuration and Secrets
key= function

The callable sorted/min/max/heapq apply to each item to decide order.

Introduced in 01A.5 Comprehensions, Iterators and Generators
KeyboardInterrupt

The exception Ctrl+C raises — catch to clean up, then re-raise.

Introduced in 01A.8 Errors, Exceptions, Debugging and Logging
Keyed hash (HMAC)

A hash of a user ID, mixed with a secret key and a purpose string, so providers (or your logs) can group one user's requests without learning who the user is, and IDs made for different purposes cannot be linked.

Introduced in 03.2 Messages, Roles and Conversation State
Keyframe sampling

Extracting only the encoder's I-frames as the sample set.

Introduced in 09.8 Video Understanding
Keyless run vs real-model eval

Two tiers of evidence: a deterministic run on fakes proves the pipeline and harness; a dated real-model report measures quality and should ship the raw outputs it was scored from ([6.4](14b-career-appendix/02-portfolio-strategy.md#64-reproducibility-clone-uv-sync-run-in-five-minutes)).

Introduced in 14B.2 Portfolio Strategy: Choosing and Shaping Projects
Keyless smoke test

A short script that proves the install, imports and pipeline work using a scripted judge or model, with no key and no network.

Introduced in 10B.1 The Eval Framework Track: DeepEval, Inspect AI and Your Setup
Keyset pagination

WHERE id > :last paging — stable and fast vs OFFSET.

Introduced in 00.7 SQL Basics with SQLite
Keyterm prompting / custom vocabulary

Provider mechanisms that bias recognition toward domain-specific terms.

Introduced in 09.4 Speech-to-Text
Keyword

One of ~35 reserved words that cannot be used as names; inspectable via keyword.kwlist.

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
Keyword stuffing

Overloading a résumé/LinkedIn with search terms at the expense of readability — detectable and counterproductive.

Introduced in 14B.5 Résumé, LinkedIn and the Job Search
Keyword-only (*) / positional-only (/)

Must be named / cannot be named.

Introduced in 01A.3 Control Flow and Functions
Kill criteria

Pre-committed conditions, written before prototyping, that decide when to stop a feature.

Introduced in 13A.1 Product Thinking for AI Features: What to Build and When Not to Use AI
Kill switch

An external flag that instantly reverts an agent version to last-known-good, living outside the agent's own code path.

Introduced in 08A.14 Reliable, Safe and Observable Agents
KL divergence

Asymmetric measure of how one distribution surprises another.

Introduced in 10A.9 Offline vs Online Evaluation
KL penalty

A penalty during RL that keeps the trained model's outputs close to a frozen reference model, limiting reward hacking.

Introduced in 02.6 How LLMs Are Trained
Knockout question

An eligibility question in an application form (work authorisation, licence, location) that can auto-filter candidates.

Introduced in 14B.5 Résumé, LinkedIn and the Job Search
Knowledge attrition

An assistant forgetting or contradicting facts the user gave earlier in the same conversation, such as asking again for an account number; what DeepEval's Knowledge Retention metric counts.

Introduced in 10B.4 DeepEval's Built-in Metrics, Opened Up: RAG, Safety, Conversations and More
Knowledge base (Bedrock)

A managed retrieval layer binding data sources to an index and query API.

Introduced in 07.7 Managed RAG: Provider Tools, Platforms and Frameworks
Knowledge cutoff

The date after which a model has no training data, so it doesn't know about later events. See also [Reliable knowledge cutoff](#reliable-knowledge-cutoff).

Introduced in 02.1 Neural Network Basics
Knowledge distillation

Training a smaller student model to imitate a larger teacher model, using its probability distributions or generated outputs.

Introduced in 02.6 How LLMs Are Trained
Known-speaker reference

A short voice sample (2–10 s) used to attach a real name to a diarized speaker.

Introduced in 09.4 Speech-to-Text
Korn-Graubard effective sample size

The sample size p(1−p) divided by the clustered variance of the mean, which Inspect's ci_wilson(cluster=...) uses in place of the raw count.

Introduced in 10B.10 Inspect Scorers, Metrics, Epochs and the Statistics Inspect Reports (optional)
Krippendorff's alpha

The most general agreement coefficient: any raters, missing data, multiple metrics.

Introduced in 10A.2 Building Evaluation Datasets
KV cache

Stored keys and values of past tokens, reused at every generation step.

Introduced in 02.4 Attention and Transformers
KV cache quantization

Reducing the precision of the key-value cache (separate from weight quantization) to shrink per-request memory at the cost of some quality — e.g., Ollama's OLLAMA_KV_CACHE_TYPE=q8_0, vLLM's --kv-cache-dtype.

Introduced in 11C.6 Open-Weight and Local Models
KV-aware routing

A router that sends a request to the replica already holding the most of its prompt prefix in cache, instead of round-robin ([7.9](11c-deployment-reliability-and-lifecycle/06-open-weight-and-local-models.md#79-fleet-scale-serving-kv-aware-routing-and-prefilldecode-disaggregation)).

Introduced in 11C.6 Open-Weight and Local Models
kw_only / slots / order

Dataclass flags for keyword-only init, __slots__, and ordering dunders.

Introduced in 01A.6 Classes, Dataclasses and Enums

L

--locked / --frozen

Sync modes: verify-then-install vs install-the-committed-lock-as-is.

Introduced in 01B.1 Project Setup with uv: Environments, Dependencies and Tooling
.loc / .iloc

Pandas' label-based versus position-based row/column selection.

Introduced in 01B.11 NumPy and pandas Essentials for AI Work
__lt__ / total_ordering

Ordering comparison plus the decorator that derives <=, >, >=.

Introduced in 01A.6 Classes, Dataclasses and Enums
Label / milestone / assignee

Issue metadata: category, release grouping, ownership.

Introduced in 00.4 GitHub and Collaboration
Label bias / majority-label bias

Models favouring whichever label appears most in the examples or has prior token preference (Zhao et al. 2021).

Introduced in 04.2 Zero-Shot, Few-Shot and Examples
Label canonicalization

Mapping a free-text model answer onto the closest canonical label (or None) before comparison, so "Billing." and "billing issue" both resolve correctly.

Introduced in 04.8 Prompt Patterns for Common Tasks
Label coverage

Ensuring every label appears in the example set at least once.

Introduced in 04.2 Zero-Shot, Few-Shot and Examples
Label span

A character-offset region in a source document marking where an answer lives, mapped to whatever chunks exist at eval time so labels survive re-chunking.

Introduced in 06.10 Evaluating and Tuning Retrieval
Label-noise ceiling

The best score a perfect system can reach when a fraction of labels is wrong, 1 − e.

Introduced in 10A.2 Building Evaluation Datasets
Labeller calibration

Aligning human reviewers' interpretations before volume labelling.

Introduced in 10A.5 Calibrating and Validating Judges
Labelling guideline

The written rules + anchored examples that make labels consistent across annotators.

Introduced in 10A.2 Building Evaluation Datasets
lambda

Tiny anonymous function, one expression.

Introduced in 01A.3 Control Flow and Functions
LangChain

The agent framework from LangChain Inc: create_agent, middleware, models, messages and tools, in the langchain package (1.x).

Introduced in 08F.4 The LangChain Ecosystem and Your Setup
LangChain Academy

LangChain Inc's course site: free video courses with notebooks and projects, plus one paid certification exam.

Introduced in 08F.17 Finish Learning from the Official Docs
LangChain cache

The reply cache (cache= or set_llm_cache) keyed by prompt and model settings; not used for streaming; unrelated to provider prompt caching.

Introduced in 08F.5 Chat Models, Messages and Content Blocks
langchain-classic

The package holding everything removed from langchain in 1.0 (legacy chains, AgentExecutor, memory classes, the hub), kept for migration.

Introduced in 08F.4 The LangChain Ecosystem and Your Setup
langchain-community

The package of community-contributed integrations, sunset on 22 May 2026 and archived (0.4.2 is the last release); use a dedicated partner package, your own code or MCP instead.

Introduced in 08F.4 The LangChain Ecosystem and Your Setup
langchain-core

The base package of interfaces and protocols (messages, Runnables, prompts, parsers, tools, model and vector-store interfaces) that all other packages build on.

Introduced in 08F.4 The LangChain Ecosystem and Your Setup
LangGraph

The low-level agent runtime and orchestration library (langgraph): state graphs with durable execution, persistence, interrupts and streaming.

Introduced in 08F.4 The LangChain Ecosystem and Your Setup
langgraph dev / up

The local server without Docker (state pickled to disk, port 2024) versus with Docker, PostgreSQL and Redis (port 8123).

Introduced in 11A.5 LangSmith, Testing and Deployment
langgraph-supervisor

The archived helper package whose create_supervisor builds a supervisor from a deprecated create_react_agent.

Introduced in 08F.13 Subgraphs and Multi-Agent Systems
langgraph-swarm

The helper package whose create_swarm and create_handoff_tool package the swarm pattern.

Introduced in 08F.13 Subgraphs and Multi-Agent Systems
langgraph.json

The project file that names graphs, dependencies, environment, authentication, store, webhooks and image options for the server.

Introduced in 11A.5 LangSmith, Testing and Deployment
LangSmith

LangChain Inc's hosted platform for tracing, evaluation, prompts and deployment, usable with any framework.

Introduced in 08F.4 The LangChain Ecosystem and Your Setup
LangSmith Agent Server

The deployment runtime exposing assistants, threads and runs over HTTP; formerly LangGraph Server and LangSmith Deployment.

Introduced in 08F.4 The LangChain Ecosystem and Your Setup
LangSmith Studio

A web IDE that connects to an Agent Server API to visualise, run, debug, fork and evaluate graphs.

Introduced in 11A.5 LangSmith, Testing and Deployment
Language identification / routing

Detecting which language a text is written in, used to gate language-specific cleaning and routing.

Introduced in 05.5 Cleaning and Normalization
Language pack / traineddata

Tesseract's per-language *.traineddata files and script-level models (Latin, HanS, Arabic…) covering scripts without a single language.

Introduced in 05.4 OCR and Scanned Documents
Largest-remainder rounding

Handing out leftover units so an allocation sums exactly

Introduced in 11B.6 Budgets, Quotas, Cost Attribution and Chargeback
Last-Event-ID

The header a reconnecting EventSource sends with the last id: it received.

Introduced in 03.3 Streaming Responses
Last-resort handler

The built-in handler logging falls back to when no handler is configured: it prints only WARNING and above, as the bare message.

Introduced in 01A.8 Errors, Exceptions, Debugging and Logging
Late binding

Closures capturing the *variable* not the *value*, so functions created in a loop all see the final value.

Introduced in 01A.3 Control Flow and Functions
Late chunking

Embedding a whole document in one pass so token vectors carry full context, then mean-pooling the token vectors inside each chunk's span (Jina, 2024).

Introduced in 05.7 Advanced and Document-Specific Chunking
Late interaction

Scoring that keeps per-token vectors for queries and documents and matches them at query time (ColBERT-style), vs one compressed vector per text.

Introduced in 06.3 Similarity Metrics and Nearest-Neighbour Search
Latency / throughput / bandwidth / jitter / packet loss

Round-trip time / pipe capacity / delay variance / dropped packets / fraction of time up ("nines").

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Latency budget

The allocated time per interaction stage, from request to first useful output.

Introduced in 13A.1 Product Thinking for AI Features: What to Build and When Not to Use AI
Latency model

The additive per-stage breakdown of where request time goes, split into TTFT and total.

Introduced in 11B.1 Cost and Latency Optimization
Latency speed-up (vs baseline)

A single agent's critical-path latency divided by the multi-agent system's on the same task; reported at the median and worst case, and below 1 when the team is slower.

Introduced in 10A.12 Evaluating Multi-Agent Systems and Validating User Simulators
Launch evidence file

The YAML file listing each launch-checklist item's status, owner, evidence artefact and due date — the input to ai_product/launch_review.py.

Introduced in 13B.6 Shipping and Operating Your Capstone: Launch, Demo and Iterate
Launch readiness review

A single gate that checks evidence for quality, safety, cost, control and operations

Introduced in 14A.10 Your First-90-Days Project on an Internal Use Case
Launch review

The go/no-go meeting that walks the checklist, reviews risks, and commits rollback criteria.

Introduced in 11C.4 Operating LLM Systems: Governance, Incidents and the Production Checklist
Lax mode

Pydantic's default validation mode: safe conversions accepted (numeric strings→numbers, ISO strings→dates).

Introduced in 01B.6 Data Validation with Pydantic
Layer / dense layer

A group of neurons; dense means fully connected to the previous layer.

Introduced in 02.1 Neural Network Basics
LayerNorm / RMSNorm

Rescaling each token's vector to a standard size (RMSNorm skips centring).

Introduced in 02.4 Attention and Transformers
Layout-aware pipeline

ML-based local tools (Docling, marker, MinerU, Unstructured) that model page layout and emit structured documents or Markdown.

Introduced in 05.2 Parsing PDFs
Laziness

Computing items only when requested — constant memory for unbounded input.

Introduced in 01A.5 Comprehensions, Iterators and Generators
Lazy (elided) output

Placeholders such as "rest of the code unchanged" or "and so on" instead of the complete output that was requested.

Introduced in 02.10 Limitations and Failure Modes
Lazy log formatting

Passing %s arguments to log calls instead of f-strings, so the message is only built if the record is actually emitted.

Introduced in 01A.8 Errors, Exceptions, Debugging and Logging
LBYL

"Look before you leap": pre-checking with in/hasattr/isset.

Introduced in 01A.11 Coming from PHP, JavaScript or Java: Side by Side
LCEL

The LangChain Expression Language: composing Runnables with \| (and implicit coercions) into chains.

Introduced in 08F.7 Runnables and LCEL
Leaderboard

A public ranking of models, built from human preference votes (such as Arena) or standardized evaluations (such as Artificial Analysis).

Introduced in 02.9 Model Landscape
Leaderboard (Arena, Artificial Analysis)

A public ranking of models, built from human preference votes (such as Arena) or standardized evaluations (such as Artificial Analysis).

Introduced in 02.9 Model Landscape
Leading vs lagging indicator

A metric that predicts the outcome vs one that confirms it after the fact.

Introduced in 13A.6 Product Metrics, Experiments and Unit Economics
Leak-eligible probe

A probe that could reveal a leak because another subject's canary is in scope; only these probes count in the denominator of a leak rate or a zero-event bound.

Introduced in 10A.11 Evaluating Agent Memory and Context Management
Leakage

Test data that the system or its prompt has already seen

Introduced in 11A.4 Production Traces into Eval Datasets
Leakage probe

A test checking whether canary strings or PII-shaped data appear in model outputs.

Introduced in 10A.10 Evaluation Platforms, Benchmarks and Building an Eval Culture
Leakage rate (simulator)

Share of hidden facts a simulated user volunteers before the agent asks

Introduced in 10A.12 Evaluating Multi-Agent Systems and Validating User Simulators
Leakage surface

Any place data from one scope can appear to another: answers, tool-call arguments, retrieved records, summaries and digests, caches, compaction blocks, logs.

Introduced in 10A.11 Evaluating Agent Memory and Context Management
Leaky abstraction

An abstraction whose hidden differences show through anyway, for example a "shared" parameter that behaves differently on each provider.

Introduced in 03.11 Building a Provider-Agnostic Client
Learned metric

A model trained to predict human quality ratings (COMET, BLEURT, BERTScore-style): better correlated than n-gram overlap, but still a model to validate.

Introduced in 10A.3 Deterministic Metrics and Code-Based Graders
Learned router

A router trained on preference/outcome data (RouteLLM-style, vLLM Semantic Router, hosted routers).

Introduced in 11B.5 Model Selection and Routing
Learned sparse retrieval / SPLADE / lexical weights

Neural sparse vectors over the vocabulary with learned term weights and expansion (BGE-M3, SPLADE).

Introduced in 06.7 Keyword Search and BM25
Learning curve (agent memory)

Task success plotted against episode number when an agent can read the lessons it wrote on earlier tasks; flat means the lessons do not transfer.

Introduced in 10A.11 Evaluating Agent Memory and Context Management
Learning in public

Writing/blogging/gisting what you learn; teaching as the strongest test of understanding.

Introduced in 00.9 Working Like an Engineer: Debugging, Asking for Help and Learning Habits
Learning rate

The size of each gradient-descent step. Too small and training is slow; too large and it overshoots or diverges.

Introduced in 02.1 Neural Network Basics
Learning rate schedule (warmup, decay)

Changing the learning rate during training: ramp it up first, then shrink it.

Introduced in 02.1 Neural Network Basics
Learning sprint

A time-boxed (2–4 week) plan with a verifiable outcome, not an hour count.

Introduced in 14A.8 Skills Map and Gap Analysis
Learning-to-rank

Supervised fusion: a model scores (query, document) pairs using retrieval features; the ceiling when large labelled sets exist.

Introduced in 06.8 Hybrid Search
Lease

A time-limited claim on a job that expires if the worker does not finish or renew it

Introduced in 08A.13 Background and Long-Running Agents
Least privilege

Giving a component, such as an LLM's tools, only the permissions it strictly needs, so a hijacked model can do little damage.

Introduced in 02.10 Limitations and Failure Modes
Least-privilege key

A credential scoped to the narrowest project/workspace/environment that works.

Introduced in 01B.2 Environment Variables, Configuration and Secrets
Least-to-most prompting

Decomposing a problem into a sequence of easier sub-problems solved in order, each feeding the next (Zhou et al., 2022).

Introduced in 04.3 Reasoning Prompts: Chain-of-Thought and Friends
Ledger (dependency)

A file listing each dependency you chose on purpose, with its owner, tested range and last-checked status.

Introduced in 08F.15 Patterns, Pitfalls and Migration
Legacy scanner

A script that inventories pre-1.0 usage in a source tree, by severity (breaks, warns, review).

Introduced in 08F.15 Patterns, Pitfalls and Migration
LEGB

The name-resolution order in Python: Local, Enclosing, Global, Builtins.

Introduced in 01A.3 Control Flow and Functions
Leniency drift / score compression

A judge's scores inflating (or deflating) over time or across prompt versions without any real quality change.

Introduced in 10A.4 LLM-as-Judge
Lethal trifecta

The combination of private-data access, untrusted-content exposure and an external communication channel that makes prompt-injection exfiltration trivial; RAG answerers must remove the third leg.

Introduced in 07.11 Production RAG: Security, Freshness, Cost and Operations
Lethal trifecta legs (analysis)

The capability combination — private-data access + untrusted-content exposure + exfiltration channel — that makes indirect-injection exfiltration trivial; treated here as a design constraint.

Introduced in 12.1 Threat Modelling LLM Applications
Level 0–4 scale

Not started → aware → guided → independent → multiplicative.

Introduced in 14A.8 Skills Map and Gap Analysis
Levenshtein / edit distance

Minimum single-character insertions, deletions and substitutions to turn one string into another.

Introduced in 06.3 Similarity Metrics and Nearest-Neighbour Search
Lexical leakage

An eval question copying the source chunk's distinctive vocabulary, letting keyword retrievers win trivially.

Introduced in 10A.2 Building Evaluation Datasets
Library-level option

A client library that unifies providers inside your own process (no proxy), so keys, budgets and shared state stay your responsibility.

Introduced in 11C.3 Fallbacks, Gateways and Reliability
Licence (model)

The legal terms for using open weights: permissive, custom community or non-commercial.

Introduced in 02.9 Model Landscape
Lifecycle rule

An object-store automation that performs an action (delete, tier to cheaper storage, abort incomplete upload) on objects matching age/prefix conditions — used for cost tiering and guaranteed deletion.

Introduced in 09.10 Building, Evaluating and Operating Multimodal Products
Lifespan

The asynccontextmanager startup/shutdown hook for building and closing per-process resources.

Introduced in 01B.7 FastAPI Basics: Building a Small API
Ligature

A single glyph representing a multi-letter combination such as fi or fl; extractors vary in whether they expand it back to letters.

Introduced in 05.2 Parsing PDFs
Lightning talk

A very short (typically 5–10 minute) conference or meetup talk — the lowest-stakes on-ramp for first-time speakers.

Introduced in 14B.4 Writing and Learning in Public
Limit suspender

A context manager that temporarily excludes work from token, turn, cost or working accounting.

Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)
Limitation notice

Named, bounded disclosure of a known AI limitation with a workaround.

Introduced in 13A.3 AI UX II: Trust, Transparency, Feedback and Human-in-the-Loop
`LimitExceededError`

The exception raised when a scoped or custom limit is exceeded.

Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)
Line item

One billed quantity at one rate, for example 4,000 cache-read tokens at $0.10 per million. A call's cost is the sum of its line items.

Introduced in 03.7 Token Counting, Cost Tracking and Prompt Caching
Lineage / provenance

The chain linking every chunk back to source bytes, version, page and processing run.

Introduced in 05.1 Data Sources, Formats and the Ingestion Mindset
Lingua / fastText lid / langdetect / py3langid

The four language detectors compared.

Introduced in 05.5 Cleaning and Normalization
Linter / formatter

Static style+bug checks / automatic layout rewriting.

Introduced in 01B.1 Project Setup with uv: Environments, Dependencies and Tooling
List

Ordered, mutable sequence; O(1) indexing and append, O(n) search.

Introduced in 01A.4 Core Data Structures: Lists, Tuples, Dictionaries and Sets
List of dicts

The record shape: a list whose items are same-schema dicts (JSON rows).

Introduced in 01A.4 Core Data Structures: Lists, Tuples, Dictionaries and Sets
Listen / bind

A server parks on an address+port waiting for connections; 0.0.0.0 binds all interfaces.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Listwise judge

A judge design that ranks N outputs in a single call; cheaper but degrades as N grows.

Introduced in 10A.4 LLM-as-Judge
Listwise reranker

A reranker that scores all candidates jointly in one context window (e.g. Jina v3/v3.5).

Introduced in 06.9 Reranking
Literal[...]

"Exactly these values" — string/int enums without Enum.

Introduced in 01A.10 Type Hints and Writing Readable Code
Little's law

in_flight = throughput × latency; sizes concurrency from rate and latency.

Introduced in 01B.4 Concurrency Patterns for I/O-Heavy Work
Live region / aria-live

Accessibility announcement channel (off / polite / assertive).

Introduced in 13A.2 AI UX I: Streaming, Latency and Perceived Speed
Live-call budget

A hard cap on the number of real API calls one test run may make.

Introduced in 03.10 Logging, Debugging and Testing LLM Code
LiveKit Agents / Pipecat

Open-source frameworks for building realtime voice agents.

Introduced in 09.7 Realtime Voice Agents
Livelock

A failure where parties keep reacting to each other and using CPU but make no progress.

Introduced in 01C.4 Deadlocks, Livelock and Starvation
Liveness failure

A failure to make progress (deadlock, livelock, starvation), as opposed to a safety failure such as a wrong result.

Introduced in 01C.4 Deadlocks, Livelock and Starvation
LlamaIndex Workflows

An event-driven, async, step-based framework where steps receive and emit events; run state lives in a context store

Introduced in 08F.1 Agent Frameworks and SDKs
LLM gateway

A proxy or hosted service between your applications and the providers that handles routing, keys, budgets, logging and often retries; Module 11C compares them.

Introduced in 03.11 Building a Provider-Agnostic Client
LLM pre-labelling

Using a model to propose labels for human verification — fast but biased toward its own blind spots.

Introduced in 10A.2 Building Evaluation Datasets
LLM relevance assessor

An LLM that grades (query, passage) pairs with a rubric to extend human labels; trust only after measuring agreement with humans (UMBRELA is an open reproduction).

Introduced in 06.10 Evaluating and Tuning Retrieval
LLM seam

An injectable messages -> text callable so pipeline code is provider-agnostic and testable with fakes.

Introduced in 07.1 RAG Architecture: From Question to Grounded Answer
LLM system design

Designing an application around probabilistic model calls, including requirements, retrieval, tools, evals, safety, cost and operations.

Introduced in 14B.7 Interview Prep II: LLM System Design
LLM-as-judge

Using a second model to grade outputs against a rubric. Covered in depth in Module 10A.

Introduced in 02.5 Generation and Sampling
LLM-based / agentic chunking

Letting a language model choose chunk boundaries at ingest.

Introduced in 05.6 Chunking Strategies
LLM-ready crawler

A library or hosted service (Crawl4AI, Firecrawl, Jina Reader) that fetches pages, renders JavaScript and returns Markdown; its output is a parse result to be versioned and checked like any other.

Introduced in 05.1 Data Sources, Formats and the Ingestion Mindset
llm_calls table

A row-per-model-call usage log (tokens, latency, cost, success) for spend and reliability queries.

Introduced in 00.7 SQL Basics with SQLite
llm_guard_kit

The Module 12 consolidated pure-Python package of guardrail, permission, PII, supply-chain, red-team and security-operations components.

Introduced in 12.10 Security Operations, Incident Response and the Safety Checklist
LLMCompiler

Planner emits a DAG of tool calls; independent calls run in parallel (awareness).

Introduced in 08A.10 Agent Patterns: ReAct, Plan-and-Execute, Routing and Orchestrator-Workers
LLMOps maturity model

A staged self-assessment (levels 0–4) of how operationalised an LLM practice is.

Introduced in 11C.4 Operating LLM Systems: Governance, Incidents and the Production Checklist
llms-full.txt

A single text file holding every page of a documentation site one after another, searchable offline and diffable between dates (DeepEval publishes one of about 3.3 MB; Inspect publishes the equivalent as llms-guide.txt).

Introduced in 10B.18 Finish Learning DeepEval and Inspect from the Official Docs
llms.txt

A curated Markdown index a site publishes for AI agents and doc tooling ([glossary](glossary.md)).

Introduced in 00.8 Reading API Documentation
LLMTestCase

DeepEval's single-turn test case: a finished record of one interaction (input, actual output, optional reference answer, contexts, tool calls, metadata) that metrics score.

Introduced in 10B.2 DeepEval Fundamentals: Test Cases, Metrics and the Test Runner
LM head / unembedding

The final layer mapping each vector to a score for every vocabulary token.

Introduced in 02.4 Attention and Transformers
Load balancer / reverse proxy

Traffic director / front-door forwarder / worldwide edge cache network.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Load shedding

Deliberately refusing work when saturated rather than accepting and failing slowly.

Introduced in 01B.9 Retries, Timeouts, Backoff and Resilience
Local stand-in

A local model behind provider-compatible APIs, used to run SDK code for free.

Introduced in 03.1 The Provider APIs and Your First Calls
`local` sandbox

Inspect's built-in temporary-directory provider: useful for trusted keyless debugging, not isolation.

Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)
Locale (LC_ALL, LC_COLLATE)

Environment settings that control sort order, character classes and message language; LC_ALL=C gives plain byte order.

Introduced in 00.2 The Terminal and Shell
Locale-specific cut

A version of your master résumé adapted to a target country's conventions (length, photo, personal details, language) without changing facts ([1.6](14b-career-appendix/05-resume-linkedin-and-the-job-search.md#16-résumé-and-cv-conventions-outside-the-us)).

Introduced in 14B.5 Résumé, LinkedIn and the Job Search
Localization

Adapting content to a locale — date/number/currency formats, units, cultural references and formality conventions — beyond literal translation.

Introduced in 04.8 Prompt Patterns for Common Tasks
Locate-then-zoom

Two-pass strategy: find the region cheaply, crop, then read at high detail.

Introduced in 09.1 Vision Applications: Understanding Images
Lock convoy

A throughput collapse where threads keep queueing on a hot lock and every release forces a hand-off and a context switch; related to the GIL convoy effect in [01C.5 §3.4](01c-python-concurrency-and-internals/05-the-global-interpreter-lock.md#34-the-convoy-effect-an-io-thread-behind-a-cpu-thread).

Introduced in 01C.4 Deadlocks, Livelock and Starvation
Lock file (`uv.lock`)

The file uv writes that records exactly which versions resolved; it, not an install-command pin, is what keeps an eval environment reproducible

Introduced in 10B.1 The Eval Framework Track: DeepEval, Inspect AI and Your Setup
Lock hierarchy

Ranked locks where acquiring a lock of equal or lower rank than one already held is an error.

Introduced in 01C.4 Deadlocks, Livelock and Starvation
Lock ordering

Always acquiring locks in one global order so that a circular wait cannot form.

Introduced in 01C.4 Deadlocks, Livelock and Starvation
Lock-in

The cost of leaving a framework because agents/tools/state are expressed in its types.

Introduced in 08F.1 Agent Frameworks and SDKs
Lockfile

Generated file pinning *all* resolved dependencies transitively (uv.lock).

Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Library
Lockfile diff

The comparison of two lockfiles, listing added, removed and changed packages, used as a supply-chain review.

Introduced in 08F.15 Patterns, Pitfalls and Migration
Lockfile with hashes

A file that pins every dependency to an exact version and checksum, so what you install is what you reviewed.

Introduced in 03.11 Building a Provider-Agnostic Client
Log dataframes (Inspect)

evals_df, samples_df, messages_df and events_df: pandas tables extracted from Inspect logs at the log, sample-epoch, message and event level.

Introduced in 10B.13 Inspect Logs, Analysis and Extending Inspect (optional)
Log gate

A CI step that reads an eval log's status, coverage and metric to decide pass or fail, needed because inspect eval exits 0 even when the run failed.

Introduced in 10B.8 Inspect AI Fundamentals: Task = Dataset + Solver + Scorer (optional)
Log level

DEBUG–CRITICAL threshold controlling which records are emitted.

Introduced in 01A.8 Errors, Exceptions, Debugging and Logging
Log-probability weighting (G-Eval)

Replacing the integer score a judge wrote with the probability-weighted mean of the candidate scores from that token's log-probabilities; DeepEval applies it only when the judge exposes log-probs.

Introduced in 10B.3 Judges in DeepEval: Models, G-Eval, DAG and Custom Metrics
log_updates

The append-only list of post-run tag and metadata edits in an Inspect log, each with author, reason and time.

Introduced in 10B.13 Inspect Logs, Analysis and Extending Inspect (optional)
Logger / handler / formatter

The logging parts: named channel, destination, output template.

Introduced in 01A.8 Errors, Exceptions, Debugging and Logging
Logic error

Wrong output with no crash — invisible without tests.

Introduced in 01A.8 Errors, Exceptions, Debugging and Logging
Login vs interactive shell

Shell started at login (reads .zprofile/.bash_profile) vs nested (reads .zshrc/.bashrc).

Introduced in 00.2 The Terminal and Shell
Logistic regression

A classic machine-learning method equivalent to a single neuron with a sigmoid output trained with cross-entropy loss.

Introduced in 02.1 Neural Network Basics
Logit bias

A fixed amount added to specific tokens' logits to encourage or ban them.

Introduced in 02.5 Generation and Sampling
Logit soft-capping

Smoothly squashing attention scores or final logits into a fixed range (Gemma 2).

Introduced in 02.4 Attention and Transformers
Logits

The raw output scores of a network before they are converted into probabilities.

Introduced in 02.1 Neural Network Basics
Logprob

The natural log of the probability the model gave a token; 0 is certain, more negative is less likely.

Introduced in 02.5 Generation and Sampling
Logprob-weighted verdict

Using the probability distribution over verdict tokens as a measured confidence signal rather than self-reported certainty.

Introduced in 10A.4 LLM-as-Judge
LogRecord

The object logging passes through filters to formatters; carries the message, level, logger name, exception info and any extra fields.

Introduced in 01B.10 Logging, Debugging and Packaging: Putting the Toolkit Together
Logs / metrics / traces / alerts

Event records / numbers over time / per-request paths / threshold pages — observability pillars.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Long decode

A Gemini 4 Argon feature that writes one answer longer than the per-request output cap in several sequential hops.

Introduced in 02.7 Context Windows
Long late chunking

Applying late chunking over overlapping macro-chunks for documents that exceed the embedding model's context window.

Introduced in 05.7 Advanced and Document-Specific Chunking
Long tail / singletons

Facts that appear rarely, or only once (singletons), in the training data; models recall them unreliably, and the share of singletons sets a rough floor on hallucination for that kind of fact.

Introduced in 02.10 Limitations and Failure Modes
Long-context extension

Additional training on long documents (with adjusted positional encodings) to extend a model's context window after pretraining on shorter sequences.

Introduced in 02.6 How LLMs Are Trained
Long-context stuffing / CAG

Putting the whole (small) corpus in the prompt every call; cache-augmented generation preloads and caches it.

Introduced in 07.1 RAG Architecture: From Question to Grounded Answer
Long-context surcharge

A higher per-token price that applies once a prompt passes a size threshold.

Introduced in 02.9 Model Landscape
Long-context tier

A higher price for the whole request once the prompt crosses a token threshold

Introduced in 11B.8 The Cost of Agents and Long Contexts, Prompt Caching per Provider, and the Cost of Running Evals
Long-running agent

A run that outlasts a normal request: minutes to days

Introduced in 08A.13 Background and Long-Running Agents
Long-term memory

Facts and records an agent stores outside the model and re-injects on demand, surviving across sessions.

Introduced in 08B.2 Memory for Agents: Short-Term and Long-Term
Lookaround

Zero-width regex assertions (?=...)/(?!...)/(?<=...)/(?<!...) that check context without consuming characters; Python re requires fixed-width lookbehinds.

Introduced in 01A.2 Numbers, Strings and Text
Lookback window

How far back the API searches for an earlier cache write when a request has a breakpoint: 20 blocks on Anthropic. A prefix that grew by more than that can silently miss.

Introduced in 03.7 Token Counting, Cost Tracking and Prompt Caching
Loop / stall detection

Stop on repeated identical calls or repeated identical results.

Introduced in 08A.10 Agent Patterns: ReAct, Plan-and-Execute, Routing and Orchestrator-Workers
Loop detection

Stopping when an identical (tool, args) signature repeats past a threshold.

Introduced in 08A.2 The Tool Loop: From One Round Trip to an Agent
Loop lag

How late the event loop gets back to a timer; a heartbeat that measures it is the cheapest signal that something is blocking the loop.

Introduced in 01C.2 Synchronous vs Asynchronous Programming and the asyncio Event Loop
Loop-and-a-half

while True + break for "do, then check".

Introduced in 01A.3 Control Flow and Functions
loop_factory

The argument to asyncio.run and Runner that chooses the event-loop implementation; it replaces the event-loop policy system deprecated in Python 3.14 (removal in 3.16).

Introduced in 01C.2 Synchronous vs Asynchronous Programming and the asyncio Event Loop
Loopback

127.0.0.1/::1 — "this computer itself"; traffic never leaves the machine.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
LoRA (low-rank adaptation)

The most common PEFT method: it freezes the original weights and trains small extra matrices added to some of them, producing a small adapter file.

Introduced in 02.1 Neural Network Basics
LoRA serving

Serving multiple fine-tuned adapters on a shared base model by loading small weight deltas — vLLM's --enable-lora --lora-modules lets requests select adapters via the model field.

Introduced in 11C.6 Open-Weight and Local Models
Loss / loss function

A single number measuring how wrong a model's predictions are. Training tries to minimize it.

Introduced in 02.1 Neural Network Basics
Lost in the middle

The tendency of language models to use information at the start and end of a long context better than information in the middle.

Introduced in 02.7 Context Windows
Lost wake-up

Waiting for a notification that was already sent and forgotten; cured by checking a predicate in a loop (wait_for).

Introduced in 01C.4 Deadlocks, Livelock and Starvation
Low-code platform

A tool where you build applications mostly by arranging and configuring blocks on a visual canvas

Introduced in 08F.16 Low-Code Agent Platforms: n8n and Dify (awareness)
Low-resource language

A language with relatively little training data; models are generally weaker at it.

Introduced in 04.4 Structuring Prompts: XML, Markdown and Delimiters
LRU cache

Evicts least-recently-used items; combined with TTL for staleness.

Introduced in 14B.6 Interview Prep I: Coding and Fundamentals
LSH (Locality-Sensitive Hashing)

An index that finds candidate near-duplicates in sub-linear time; returns candidates, not verdicts.

Introduced in 05.5 Cleaning and Normalization
lsof

Lists open files/ports — lsof -i :8000 finds what holds a port.

Introduced in 00.2 The Terminal and Shell
LSU

The unit in which Agent Server resources are metered; 1 LSU is priced at $1.00 on the pricing page (as of 14 November 2026).

Introduced in 11A.5 LangSmith, Testing and Deployment
LTS (long-term support)

The commitment that LangChain 1.0 and LangGraph 1.0 stay active until 2.0 and are then maintained for at least a year.

Introduced in 08F.4 The LangChain Ecosystem and Your Setup
Luhn check

A checksum that card numbers satisfy, used to cut false positives in card redaction

Introduced in 08A.7 Tool Safety in the Loop: Idempotency, Validation and Truncation
μ-law / A-law

Companded codecs used in 8 kHz telephony audio; providers accept audio/mulaw/audio/alaw.

Introduced in 09.4 Speech-to-Text

M

<meta name="robots"> / X-Robots-Tag

Per-page crawl directives (noindex, nofollow, …) in markup and headers.

Introduced in 05.3 Parsing HTML, Web Pages and Office Files
@model_validator

Decorator for cross-field rules; modes before (raw data) and after (parsed model).

Introduced in 01B.6 Data Validation with Pydantic
@modelapi

Inspect's decorator for registering a custom model provider class, which then works as --model <name>/<model> everywhere.

Introduced in 10B.13 Inspect Logs, Analysis and Extending Inspect (optional)
__main__ guard

if __name__ == "__main__": — run-as-script vs importable-library switch.

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
__main__.py

A package's runnable entry point for python -m package.

Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Library
`_meta`

The metadata object in a request's params. It carries the protocol version, client info and client capabilities

Introduced in 08E.2 MCP in Depth: Primitives, Servers, Clients and Transports
Machine learning

Building systems that learn rules from examples instead of having humans write the rules.

Introduced in 02.1 Neural Network Basics
Macro slice score

The unweighted mean of per-slice mean scores — stops a huge easy slice dominating the headline number.

Introduced in 10A.3 Deterministic Metrics and Code-Based Graders
Macro-average

The mean of per-task (or per-slice) scores, so every task counts equally however many questions it has; it exposes a small task that a micro-average hides.

Introduced in 10B.6 DeepEval Datasets, Synthetic Data, Conversation Simulation and Benchmarks
MAD (median absolute deviation)

A robust spread measure resistant to outliers; used with the median to build anomaly baselines (e.g. spend) that a mean/stddev would be dragged by.

Introduced in 12.10 Security Operations, Incident Response and the Safety Checklist
Magic bytes

Signature bytes at a file's start (%PDF, PK, \x89PNG) identifying its real type.

Introduced in 01A.9 Files, Paths, JSON and CSV
Magic number

The fixed bytes at the start of a file that identify its real format (PNG starts \x89PNG, PDF %PDF-); more reliable than a file name or a client's claim.

Introduced in 03.6 Images, PDFs and Files
Majority vote

Choosing the answer most branches agree on, with a minimum number of usable votes

Introduced in 08A.11 Reflection, Parallel Fan-Out and Agent-as-a-Tool
man page

The system manual for a command.

Introduced in 00.2 The Terminal and Shell
Managed agent

A hosted agent runtime (Anthropic Managed Agents, Agent Engine, Foundry) where sessions/state live server-side.

Introduced in 08F.1 Agent Frameworks and SDKs
Managed open-model host

A provider that runs a serving engine (vLLM/SGLang/llama.cpp) on their GPUs and exposes an OpenAI-compatible API for open-weight models — Together, Fireworks, Groq, Cerebras, HF Inference Endpoints, etc.

Introduced in 11C.6 Open-Weight and Local Models
Managed RAG

Retrieval pipeline (parse→chunk→embed→index→search) run by a provider or platform instead of your code.

Introduced in 07.7 Managed RAG: Provider Tools, Platforms and Frameworks
Managed tool

A tool run by the provider (web search, file search, code execution) instead of by your code ([11.6](13a-product-engineering/08-prompting-rag-or-fine-tuning.md#116-d6-build-vs-buy-including-managed-provider-tools))

Introduced in 13A.8 Decision Frameworks: Eight Decisions Plus One
Management system standard

A standard that sets requirements for an organisation's management process (policy, roles, risk, audit, improvement) rather than for a product; ISO/IEC 42001 and 27001 are examples

Introduced in 12.9 Responsible AI, Policy and Compliance
Manager / proxy

A server process that owns Python objects while other processes use proxies that send each call as a message; convenient but hundreds of times slower than local access.

Introduced in 01C.7 Shared Memory and Inter-Process Communication
mandatory filters

Filters (ACL, freshness) merged over caller filters by GuardedRetriever — the caller can narrow but never widen the permission scope.

Introduced in 07.2 Retrieval Strategies for RAG
Manifest / checkpoint

A durable record, often a SQLite table, of every item's and batch's state so a job can be killed and resumed without redoing or paying twice.

Introduced in 03.9 Async, Concurrency and Batch Processing
Many-image rule

Anthropic's stricter per-image dimension limit that applies to every image in a request containing more than 20 images, including those in earlier turns.

Introduced in 03.6 Images, PDFs and Files
Many-shot jailbreaking

Prompting with hundreds of fake compliant dialogues so the model pattern-matches non-refusal via in-context learning.

Introduced in 12.3 Jailbreaks and Model-Level Safety
MAP

Average precision per query (mean of precision@i over relevant ranks) averaged across queries; the standard whole-list ranking-quality metric in IR.

Introduced in 06.10 Evaluating and Tuning Retrieval
Map-reduce (LangGraph)

Fan-out with Send (map), then a reducer on a shared key and a join node (reduce).

Introduced in 08F.10 LangGraph Fundamentals
Map-reduce (RAG)

Per-document summarisation (map) then a synthesis call over summaries (reduce) for large result sets.

Introduced in 07.4 Grounded Generation: Prompts, Context Assembly and Abstention
Map-reduce summarization

Splitting a long input into chunks, summarizing each independently, then summarizing the summaries — used when the source exceeds the context window or is too costly to send whole.

Introduced in 04.8 Prompt Patterns for Common Tasks
MAP_SHARED / MAP_PRIVATE

Whether writes to a mapping are visible to others (and the file) or private copy-on-write.

Introduced in 01C.7 Shared Memory and Inter-Process Communication
Mapping layer

One place in your code that holds attribute names, so a rename is a small change

Introduced in 11A.1 Tracing and Observability for LLM Applications
Markdown twin

The raw-markdown version of a docs page, reached by adding .md to its URL; what LLM tools read.

Introduced in 08F.17 Finish Learning from the Official Docs
MarkdownHeaderTextSplitter

A splitter that cuts at Markdown headings and moves the heading path into metadata.

Introduced in 08F.9 RAG with LangChain
markdownify / html2text

HTML→Markdown converters (MIT / GPL).

Introduced in 05.3 Parsing HTML, Web Pages and Office Files
Marker

A label on tests (@pytest.mark.live) for selection with -m or skipping.

Introduced in 01B.8 Testing with pytest
Marker convention ([n])

Numbering retrieved chunks in context assembly and citing them inline in the answer as [n]; resolved against the ordered source list.

Introduced in 07.5 Citations and Attribution
Markup-guided edit

Editing steered by a transparent annotation overlay (circles/arrows) instead of a mask.

Introduced in 09.3 Image Generation and Editing
Mask / inpainting

An alpha-channel image marking the region to edit; transparent areas get regenerated.

Introduced in 09.3 Image Generation and Editing
Masked language modelling

Pretraining by hiding tokens and predicting them from both sides (BERT).

Introduced in 02.4 Attention and Transformers
Masked secret

A wrapper type whose repr and str print stars, so logging or printing it cannot leak the value

Introduced in 12.7 Securing RAG Data, Keys and the AI Supply Chain
MAST

Multi-Agent System failure Taxonomy: 14 failure modes in three categories, annotated from 1,600+ traces (arXiv 2503.13657).

Introduced in 08D.3 Multi-Agent Systems
Master résumé

The unabridged source document of everything you've done, from which tailored cuts are made.

Introduced in 14B.5 Résumé, LinkedIn and the Job Search
Master triage table

The symptom → stage → trace signal → fix-owner mapping that starts every RAG debugging session.

Introduced in 07.10 RAG Failure Modes and Debugging
Match score / fit score

An ATS-computed ranking of a candidate against a job description; often ignored by recruiters in practice.

Introduced in 14B.5 Résumé, LinkedIn and the Job Search
Matching view

A lossy folded copy of text (invisibles stripped, NFKC, skeleton, case-folded) used only to compare against keywords, never forwarded to the model.

Introduced in 12.5 Guardrails and Output Validation
math.isclose

Float comparison with tolerance, instead of ==.

Introduced in 01A.2 Numbers, Strings and Text
Matrix

Running one job across combinations of values — Python versions, operating systems.

Introduced in 00.4 GitHub and Collaboration
Matryoshka dimension

A shorter prefix of a longer embedding vector that remains a usable embedding because the model was trained with Matryoshka Representation Learning to keep nested dimensions meaningful.

Introduced in 06.1 Embedding Models and APIs in Practice
Matryoshka embedding

An embedding trained so that prefixes of the vector are usable embeddings themselves, enabling dimension truncation before quantization.

Introduced in 06.4 Vector Indexes: HNSW, IVF, Quantization and Trade-offs
Matryoshka Representation Learning (MRL)

Training embeddings so that their first dimensions form usable shorter embeddings.

Introduced in 02.3 Embeddings
Maturity model

A 0–4 scale rating security-programme sophistication from ad-hoc awareness to measured, optimised practice.

Introduced in 12.10 Security Operations, Incident Response and the Safety Checklist
Max output

See [Max output tokens](#max-output-tokens).

Max output tokens

The per-request limit on how many tokens a model may generate (max_tokens, max_output_tokens or max_completion_tokens, depending on the API).

Introduced in 02.2 Tokens and Tokenization
Max stall

Longest gap between display events in a smoothed stream.

Introduced in 13A.2 AI UX I: Streaming, Latency and Perceived Speed
max_concurrency

A top-level run config key that caps how many nodes or tasks run at once.

Introduced in 08F.14 The Functional API and Streaming
max_samples (Inspect)

The number of samples a task runs at once; it tracks the connection limit by default and trades throughput for the number of samples lost if a run crashes.

Introduced in 10B.12 Running Inspect Evals for Real: Models, Configuration, Concurrency, Caching, Errors and Eval Sets (optional)
`max_turns`

The Runner's limit on model turns; exceeding it raises MaxTurnsExceeded

Introduced in 08F.2 OpenAI Agents SDK
`max_turns` and `max_budget_usd`

The two documented limits; breach ends the run with error_max_turns or error_max_budget_usd

Introduced in 08F.3 Claude Agent SDK
max_uses / max_num_results / max_content_tokens

Per-tool caps controlling how much a server tool may do or return.

Introduced in 08A.8 Provider Built-in and Server-Side Tools
Maximal marginal relevance (MMR)

A search that picks results that are relevant to the query and different from each other, tuned by fetch_k and lambda_mult.

Introduced in 08F.9 RAG with LangChain
Maximum output tokens (max output)

A per-model cap on how many tokens one response can contain, separate from and usually much smaller than the context window; you set a per-request budget with a parameter such as max_tokens.

Introduced in 02.7 Context Windows
MaxSim

The late-interaction score: sum over query tokens of the maximum similarity to any document token.

Introduced in 06.3 Similarity Metrics and Nearest-Neighbour Search
McNemar's test

An exact test on the discordant pass/fail pairs between two paired versions; concordant cases carry no information about which is better.

Introduced in 04.9 Iterating, Debugging and Porting Prompts
MCP (Model Context Protocol)

Open protocol that standardises how LLM applications discover and use external tools, resources and prompts over JSON-RPC.

Introduced in 08E.1 The Model Context Protocol (MCP)
MCP Apps / Tasks / Skills

Official extensions: inline UI / durable async ops / instruction packages.

Introduced in 08E.1 The Model Context Protocol (MCP)
MCP gateway

A service between clients and servers enforcing authentication, allowlists, rate limits, audit and more

Introduced in 08E.3 Remote MCP: OAuth, Gateways and Many Servers
MCP host / client / server

The LLM application that coordinates connections / the per-server connector inside it / the service exposing tools, resources and prompts.

Introduced in 08E.1 The Model Context Protocol (MCP)
MCP primitive

A Model Context Protocol tool, resource or prompt available to or used by an agent

Introduced in 10B.5 DeepEval Tracing, Component-Level Evals and Agent Evaluation
MCP primitive evidence

The recorded MCP server, tool, resource or prompt objects attached to a DeepEval test case so MCP metrics can judge recorded use without contacting a live server.

Introduced in 10B.5 DeepEval Tracing, Component-Level Evals and Agent Evaluation
MCP Registry

Official metadata catalogue of public MCP servers at registry.modelcontextprotocol.io (preview); discovery only, no vetting.

Introduced in 08E.1 The Model Context Protocol (MCP)
mcp tool / mcp_toolset

Provider-native remote-MCP client tools — OpenAI's {"type":"mcp"} and Anthropic's mcp_toolset — letting the model list and call a remote server's tools inside the API call.

Introduced in 08A.8 Provider Built-in and Server-Side Tools
Mcp-Method / Mcp-Name / MCP-Protocol-Version

HTTP headers mirroring body fields for routing/validation.

Introduced in 08E.1 The Model Context Protocol (MCP)
`mcp__<server>__<tool>`

The naming rule for MCP tools, used in allow and deny rules and hook matchers

Introduced in 08F.3 Claude Agent SDK
MCPAdapter

The beta langchain.mcp class that connects to an MCP server (URL, script path, in-process object or config) and returns its tools as LangChain tools.

Introduced in 08F.8 Tools and create_agent
mean per-attempt success

The mean binary outcome across independent attempts, often the most direct reliability measure for one-attempt products.

Introduced in 10B.16 Evaluating Agents with Inspect, and the Inspect Ecosystem (optional)
Mean score gap

The difference in average quality score between two demographic groups in a fairness eval.

Introduced in 10A.10 Evaluation Platforms, Benchmarks and Building an Eval Culture
Mean-centring

Subtracting the corpus mean vector (and re-normalising) to remove the common direction that causes anisotropy.

Introduced in 06.3 Similarity Metrics and Nearest-Neighbour Search
Meaningful-change hashing

Hashing canonical/normalised content so irrelevant churn doesn't trigger reprocessing.

Introduced in 05.9 Ingestion Pipelines and Incremental Updates
measurement contract

The explicit statement of what is measured, under which system, budget, scorer, reliability semantics and evidence limits.

Introduced in 10B.16 Evaluating Agents with Inspect, and the Inspect Ecosystem (optional)
Measurement-instrument rule

The principle behind Inspect's scoring policy: a failure of the model under test (empty, unparsable, refused) is a verdict that counts against it, while a failure of the scorer or grader is unscored.

Introduced in 10B.10 Inspect Scorers, Metrics, Epochs and the Statistics Inspect Reports (optional)
Media chunk

The retrieval unit for non-text content: page, tile, video segment or audio segment.

Introduced in 09.9 Multimodal Embeddings and Retrieval
Media probe

A lightweight pre-flight check that sniffs a file's magic bytes and extracts cheap metadata (dimensions, duration, page count) without fully decoding it — used to validate uploads before they reach a provider or storage.

Introduced in 09.10 Building, Evaluating and Operating Multimodal Products
media_resolution

Gemini's setting, per part or per request, for the maximum number of tokens an image, video frame or PDF page may use (low to ultra_high).

Introduced in 03.6 Images, PDFs and Files
MediaEmbedder

The multimodal extension of Module 06's Embedder: embed_documents/embed_query for text, embed_media(content, kind, role) for media — role carries the query/document asymmetry.

Introduced in 09.9 Multimodal Embeddings and Retrieval
Membership inference

An attack that determines whether a specific person's data was included in a training set or index — itself a privacy leak even without content extraction.

Introduced in 12.4 PII, Privacy and Data Leakage
Memoisation / functools.cache

Caching a function's results keyed on its arguments so repeated calls skip recomputation (functools.cache).

Introduced in 01A.3 Control Flow and Functions
memoize

Prompt-hash cache so identical judge calls never re-pay.

Introduced in 10A.4 LLM-as-Judge
Memorization / regurgitation

A model reproducing training data word for word, such as copyrighted text, licensed code or personal data.

Introduced in 02.10 Limitations and Failure Modes
Memory (application memory)

Facts an application stores and re-injects into future prompts.

Introduced in 02.7 Context Windows
Memory eval scenario

An ordered sequence of sessions (seed, distractor, update, probe) for one or more users, with gold annotations; the unit of memory evaluation and the reset boundary (reset per scenario, persist across its sessions).

Introduced in 10A.11 Evaluating Agent Memory and Context Management
Memory fragmentation

Free memory scattered among live objects so it cannot be returned to the OS or reused for other sizes; one live object pins its whole pymalloc arena.

Introduced in 01C.6 Python Memory Management
Memory framework

A library or platform that handles memory storage and retrieval plumbing (Mem0, Letta, LangMem, Zep/Graphiti) — it does not supply your write policy, ACLs or evals.

Introduced in 08B.2 Memory for Agents: Short-Term and Long-Term
Memory leak (Python sense)

Memory that is still reachable (something holds a reference) but no longer useful, such as an unbounded cache or registry.

Introduced in 01C.6 Python Memory Management
Memory poisoning

Planting malicious text as a stored memory so it is re-injected as instructions in future sessions — a persistent prompt-injection vector.

Introduced in 08B.2 Memory for Agents: Short-Term and Long-Term
Memory store

The place and code that hold, update and retrieve memory records

Introduced in 08B.4 Long-Term Memory and Memory Operations
Memory tier / hierarchy

The OS-inspired split of agent memory: a small always-loaded core in context, a searchable middle (vector store, key-value, files), and a deep archive of transcripts.

Introduced in 08B.2 Memory for Agents: Short-Term and Long-Term
Memory tool

Anthropic's memory_20250818: Claude reads/writes files under /memories; your code executes the file operations.

Introduced in 04.7 Context Engineering: Managing Context Over Time
Memory-as-files

Long-term memory implemented as a directory of notes the agent reads and writes — the model behind Anthropic's memory tool and most "AI second brain" patterns.

Introduced in 08B.2 Memory for Agents: Short-Term and Long-Term
Memory-induced sycophancy

Stored memories pushing an agent's answers towards the user's beliefs or biases instead of the facts.

Introduced in 10A.11 Evaluating Agent Memory and Context Management
memory-mapping (mmap_mode)

Loading a .npy array lazily from disk instead of into RAM via np.load(..., mmap_mode="r").

Introduced in 01B.11 NumPy and pandas Essentials for AI Work
MemoryDataset

Inspect's in-memory dataset class; every loader returns one, and you build one yourself for data Inspect cannot read directly (Parquet, databases, APIs).

Introduced in 10B.9 Inspect Datasets, Solvers and Task Configuration (optional)
memoryview

A zero-copy view onto another object's buffer, so slicing does not copy the data.

Introduced in 01C.6 Python Memory Management
Mentor vs sponsor

Advisor who shares experience vs senior person who spends capital advocating for you.

Introduced in 14B.9 Your First 90 Days and Long-Term Growth
Mentorship marketplace

A platform like ADPList matching mentees with volunteers for 1:1 sessions.

Introduced in 14A.8 Skills Map and Gap Analysis
merge / concat

Labelled join on keys / stacking tables row-wise or column-wise.

Introduced in 01B.11 NumPy and pandas Essentials for AI Work
Merge commit

A commit with two parents joining diverged lines / a merge that just advances the pointer when no divergence exists.

Introduced in 00.3 Git Fundamentals
Merge conflict

Both sides changed the same lines; resolved manually via markers.

Introduced in 00.3 Git Fundamentals
Merge list / merge rank

The ordered list of pair merges a BPE tokenizer learned during training. Earlier merges (lower ranks) take priority when tokenizing.

Introduced in 02.2 Tokens and Tokenization
Message limit

A cap on the number of messages in the sample conversation.

Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)
Message passing / owner thread

One owner mutates state; others send it messages through a queue.

Introduced in 01C.3 Race Conditions and Thread Safety
Message thread

A beta Messages API feature that holds a conversation on the server for a few minutes so later turns send only the new messages; the application stays the source of truth.

Introduced in 03.2 Messages, Roles and Conversation State
messages

A stream mode that emits (chunk, metadata) pairs for model tokens and for messages nodes add to state.

Introduced in 08F.14 The Functional API and Streaming
Messages API

Anthropic's API for generating text, with typed content blocks.

Introduced in 03.1 The Provider APIs and Your First Calls
MessagesPlaceholder

A slot for a list of messages (history); required unless optional=True, n_messages keeps the last N.

Introduced in 08F.6 Prompts, Output Parsers and Structured Output
MessagesState

A prebuilt TypedDict with one messages key using add_messages; subclass it to add keys.

Introduced in 08F.10 LangGraph Fundamentals
meta block

The provenance object carried by every AI response: request_id, resolved model_id, prompt version, finish reason, token usage, latency and degraded flag.

Introduced in 13A.5 Architecture Patterns for AI Applications
meta event

Stream-open correlation fields: request/trace IDs, model, prompt version.

Introduced in 13A.2 AI UX I: Streaming, Latency and Perceived Speed
Meta route

The route for questions about the conversation itself ("summarize this", "what did I ask"), answered from TurnRecords and never from the index.

Introduced in 07.6 Conversational RAG
Meta-prompting

Using a model to write, improve or critique prompts; produces drafts that still require testing on your own data.

Introduced in 04.8 Prompt Patterns for Common Tasks
Metadata

Structured fields stored alongside chunk text — identity, provenance, permissions, dates, quality — that retrieval filters on, citations display, and pipelines trace.

Introduced in 05.8 Metadata Design
Metadata audit

Corpus-level completeness and sanity checks (required fields, coverage, format warnings) run before records reach the store.

Introduced in 05.8 Metadata Design
Metadata pre-filter

Applying tenant, ACL and user predicates before vector ranking so top-k is chosen only from records the user may see.

Introduced in 05.8 Metadata Design
METEOR

Unigram alignment allowing stem and WordNet-synonym matches plus a fragmentation penalty — partial credit for paraphrase that BLEU zeroes.

Introduced in 10A.3 Deterministic Metrics and Code-Based Graders
Meter

One counter for steps, tokens, money and time that names the limit that ended a run

Introduced in 08A.4 Harness Engineering: Everything Around the Model
Method / verb

The request's action word: GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS, TRACE, CONNECT.

Introduced in 00.6 HTTP, REST and JSON
method chaining / .pipe()

Composing pandas operations into one fluent expression; pipe injects a whole-frame function step.

Introduced in 01B.11 NumPy and pandas Essentials for AI Work
Metric

A computed number over outputs (accuracy, F1, recall@k, latency).

Introduced in 10A.1 Why Evals Matter: The Evaluation Mindset
Metric (Inspect)

A function computed over all of one scorer's per-sample values, such as accuracy(), mean() or stderr(), declared on the scorer.

Introduced in 10B.8 Inspect AI Fundamentals: Task = Dataset + Solver + Scorer (optional)
Metric alignment

Whether an offline score predicts the online outcome it proxies for.

Introduced in 10A.9 Offline vs Online Evaluation
Metric cardinality (metrics sense)

The number of distinct label-value combinations on a metric; unbounded labels (user IDs, request IDs) create unbounded time series.

Introduced in 11A.2 Metrics, Dashboards, SLOs and Alerting
Metric collection

A named set of metrics stored on Confident AI and run server-side, for example in online evaluation tasks.

Introduced in 10B.7 DeepEval in Production: Red Teaming, CI/CD, Prompt Optimization and Confident AI
Metric object (DeepEval)

A configured, stateful DeepEval scorer whose latest score, reason and success are stored on the object after measure(); pass means score >= threshold.

Introduced in 10B.2 DeepEval Fundamentals: Test Cases, Metrics and the Test Runner
Metric opacity

When a platform's metric definition is hidden or unauditable, making its scores un defensible.

Introduced in 10A.10 Evaluation Platforms, Benchmarks and Building an Eval Culture
Metric theatre

Optimising visible metrics (interactions, thumbs-up) while the real outcome metric quietly falls.

Introduced in 13A.1 Product Thinking for AI Features: What to Build and When Not to Use AI
Metric tree

The six-layer hierarchy of product metrics for an AI feature: business outcome, usage, quality, experience, safety, cost.

Introduced in 13A.6 Product Metrics, Experiments and Unit Economics
Micro / macro / weighted averaging

Three ways to pool per-class scores: micro pools all decisions (≈ accuracy), macro averages classes equally, weighted averages by class frequency.

Introduced in 10A.3 Deterministic Metrics and Code-Based Graders
Micro-average

Overall accuracy as total correct over total questions across tasks, so larger tasks weigh more.

Introduced in 10B.6 DeepEval Datasets, Synthetic Data, Conversation Simulation and Benchmarks
Micro-dollar

One millionth of a dollar; the integer unit that keeps sums exact

Introduced in 11B.6 Budgets, Quotas, Cost Attribution and Chargeback
Microsoft Agent Framework

Microsoft's consolidated production agent framework (successor to archived AutoGen and migrating Semantic Kernel), shipping for Python, .NET and Go.

Introduced in 08F.1 Agent Frameworks and SDKs
microVM sandbox

A VM with its own kernel per sandbox (Firecracker, Kata) / user-space kernel for container isolation.

Introduced in 08A.15 Coding and Computer-Use Agents
Mid-conversation system message

A {"role": "system"} message inside Anthropic's messages list, placed after a user turn, that current Claude models accept with the same authority as the top-level system prompt.

Introduced in 03.2 Messages, Roles and Conversation State
Mid-stream error

An error that arrives inside a stream after 200 OK has been sent; SDKs raise or yield it, and never retry it.

Introduced in 03.3 Streaming Responses
Mid-training / annealing

A late training phase between pretraining and post-training, typically annealing on high-quality data and extending the context window.

Introduced in 02.6 How LLMs Are Trained
Mid-word split

A chunk boundary heuristic flagging prev-ends-alnum + next-starts-alnum.

Introduced in 05.10 Data Quality Checks
Middleware

Onion-layer wrappers around every request/response; pure-ASGI classes avoid buffering and stream safely.

Introduced in 01B.7 FastAPI Basics: Building a Small API
Migration

A versioned schema change applied in order.

Introduced in 00.7 SQL Basics with SQLite
Migration (code)

Moving working code from an old API to its replacement without changing what the program does.

Introduced in 08F.15 Patterns, Pitfalls and Migration
mimalloc

Microsoft's allocator, required in the free-threaded Python build and optional (3.13+) in the default build.

Introduced in 01C.6 Python Memory Management
MIME type / media type

A short type/subtype label for a kind of file, such as image/png or application/pdf, sent with media so the receiver knows how to read the bytes.

Introduced in 03.6 Images, PDFs and Files
Min-p sampling

Sampling only from tokens at least min_p times as likely as the top token.

Introduced in 02.5 Generation and Sampling
MinHash

A probabilistic data structure whose small signature estimates Jaccard similarity between sets in linear time.

Introduced in 05.5 Cleaning and Normalization
Minimal reproducible example (MRE/MCVE)

The smallest complete code+input that shows a problem to someone else.

Introduced in 00.9 Working Like an Engineer: Debugging, Asking for Help and Learning Habits
Minimal test loop

The labelled set + scorer + pluggable call_model runner used to measure whether a prompt change helped.

Introduced in 04.1 Anatomy of a Good Prompt
Minimise (a case)

Shrinking the input/code to the smallest version that still triggers the bug.

Introduced in 00.9 Working Like an Engineer: Debugging, Asking for Help and Learning Habits
Minimum detectable effect

The smallest score difference your dataset can resolve — drives required n.

Introduced in 10A.2 Building Evaluation Datasets
Minimum sufficient context

The smallest set of high-signal tokens that produces the desired outcome — sufficiency, not brevity.

Introduced in 04.6 Context Engineering: Selecting and Ordering Context
MIRACL

A multilingual retrieval benchmark: ~78k queries and ~726k judgments over Wikipedia in 18 languages, monolingual ad-hoc retrieval (TACL 2023).

Introduced in 06.10 Evaluating and Tuning Retrieval
Misattribution

Citing the wrong passage for a correct fact.

Introduced in 07.4 Grounded Generation: Prompts, Context Assembly and Abstention
Missing-data rule

An explicit instruction for what the model should do when input is ambiguous or incomplete: ask, assume and state, refuse, or return null/empty.

Introduced in 04.1 Anatomy of a Good Prompt
`MissingRequiredClientCapability` (`-32021`)

The error for a request that needs a client capability the client did not declare

Introduced in 08E.2 MCP in Depth: Primitives, Servers, Clients and Transports
MITRE ATLAS

MITRE's adversary tactics/techniques knowledge base for AI systems (content v2026.10 as of Nov 2026).

Introduced in 12.1 Threat Modelling LLM Applications
Mix-up attack

Tricking a client into sending a code or token to the wrong authorization server. Defended with the iss parameter (RFC 9207)

Introduced in 08E.3 Remote MCP: OAuth, Gateways and Many Servers
Mixed precision

Training with low-precision numbers (BF16, FP8) for speed and memory while keeping sensitive values in FP32.

Introduced in 02.6 How LLMs Are Trained
Mixin

A small capability class combined via multiple inheritance.

Introduced in 01A.6 Classes, Dataclasses and Enums
Mixture-of-experts (MoE)

An architecture where a router activates only a few expert sub-networks for each token. Compute depends on active parameters, and memory depends on total parameters.

Introduced in 02.1 Neural Network Basics
ML engineer

An engineer who trains, fine-tunes and serves models — adjacent to, but distinct from, the applied AI engineer.

Introduced in 14B.1 The AI Engineering Landscape: Roles, Teams and Career Paths
ML-BOM

CycloneDX's bill of materials for machine-learning systems, covering models, datasets and dependencies

Introduced in 14A.7 Data, Vendor and Supply-Chain Governance, plus NIST AI RMF and ISO/IEC 42001 Awareness
MLOps / LLMOps

The practice of operating ML/LLM systems in production: deployment, monitoring, cost, reliability.

Introduced in 14B.1 The AI Engineering Landscape: Roles, Teams and Career Paths
MLP / feedforward network

See [Feed-forward network (FFN) / MLP block](#feed-forward-network-ffn--mlp-block).

mmap

Mapping a file or anonymous memory into the address space so reads and writes go through the kernel's page cache, shared by every process that maps it.

Introduced in 01C.7 Shared Memory and Inter-Process Communication
MMR (maximal marginal relevance)

Greedy reranking that trades relevance for diversity: λ·sim(q,d) − (1−λ)·max sim(d, selected).

Introduced in 06.3 Similarity Metrics and Nearest-Neighbour Search
Mock

A double pre-programmed with expectations that assert the calls made.

Introduced in 01B.8 Testing with pytest
Mock interview

Practice interview with a peer or paid interviewer, scored on a rubric.

Introduced in 14B.6 Interview Prep I: Coding and Fundamentals
Mock transport

A fake network layer that answers an HTTP client's requests with your own code, for tests and wire captures.

Introduced in 03.1 The Provider APIs and Your First Calls
mockllm

Inspect's built-in fake model provider (mockllm/model): a fixed reply by default, or scripted replies passed through custom_outputs, so evals run with no API key. Its token counts are synthetic.

Introduced in 10B.8 Inspect AI Fundamentals: Task = Dataset + Solver + Scorer (optional)
MockTransport

Httpx transport answering requests with a Python handler — the test fake.

Introduced in 01B.5 HTTP Clients with httpx
Modality

A kind of data a model can take in or produce: text, image, audio or video.

Introduced in 02.9 Model Landscape
Modality gap

Geometric separation between modality clusters in a shared multimodal embedding space; makes similarity scores non-comparable across modality pairs.

Introduced in 09.9 Multimodal Embeddings and Retrieval
Modality-specific billing unit

The unit a provider charges for a modality — image tokens, audio minutes, video seconds, TTS characters, realtime audio tokens — which differs per provider and must be read from the pricing page, not assumed.

Introduced in 09.10 Building, Evaluating and Operating Multimodal Products
Mode collapse

The narrowing of output diversity in post-trained models compared with base models.

Introduced in 02.6 How LLMs Are Trained
Model

The learned parameters plus the code that uses them to turn inputs into outputs.

Introduced in 02.1 Neural Network Basics
Model alias (Ollama)

A second name for a local model, created with ollama cp.

Introduced in 03.1 The Provider APIs and Your First Calls
Model args

Provider constructor options that are not generation settings (-M key=value)

Introduced in 10B.12 Running Inspect Evals for Real: Models, Configuration, Concurrency, Caching, Errors and Eval Sets (optional)
Model callback

Your function that wraps the application for simulation and returns an assistant turn; its arguments are filled by name.

Introduced in 10B.6 DeepEval Datasets, Synthetic Data, Conversation Simulation and Benchmarks
Model canary

A tiny scheduled eval run against each route to detect silent quality drift.

Introduced in 11C.3 Fallbacks, Gateways and Reliability
Model cascade

Trying a cheap model first and escalating to a stronger one on signals of trouble.

Introduced in 07.4 Grounded Generation: Prompts, Context Assembly and Abstention
Model collapse

Degradation in quality and diversity when models are trained repeatedly on unfiltered output from earlier models.

Introduced in 02.6 How LLMs Are Trained
Model consistency

All vectors in an index produced by one embedding model — mixing models silently corrupts similarity.

Introduced in 05.10 Data Quality Checks
Model escalation

Retrying a task on a stronger (more expensive) model after a cheaper one keeps failing validation.

Introduced in 03.4 Structured Output
Model extraction

Stealing a model's functionality by systematically querying its prediction API — practical for classical ML models, expensive and approximate for frontier LLMs, but a real threat for smaller/self-hosted models and for distillation at scale.

Introduced in 12.7 Securing RAG Data, Keys and the AI Supply Chain
Model fallback

Automatically retrying a request with another model when the first choice fails. See also [Fallback chain](#fallback-chain). *(Introduced in [lesson 02.9](02-how-llms-work/09-model-landscape.md#54-openrouter-a-unified-gateway))* In a client you write, it is implemented as an ordered chain of models; see [Fallback chain](#fallback-chain). *(Extended in [lesson 03.11](03-llm-apis/11-provider-agnostic-client.md#84-fallback-across-providers))*

Model family

A provider's product line of models, such as Claude, GPT, Gemini or Qwen.

Introduced in 02.9 Model Landscape
Model file format risk

The security property that pickle-based model files execute arbitrary code on load while safetensors is data-only — the format determines whether "loading a model" means "reading numbers" or "running code".

Introduced in 12.7 Securing RAG Data, Keys and the AI Supply Chain
Model gateway

The one seam through which every model call passes: canonical types, model aliases, routing and fallback, resilience, telemetry and policy hooks.

Introduced in 13A.5 Architecture Patterns for AI Applications
Model inventory

The governed list of route × model × provider × purpose × data-policy × owner × eval-result.

Introduced in 11B.5 Model Selection and Routing
Model ladder

Developing a prompt on the cheapest capable model, verifying on the production model, and possibly downgrading production for cost.

Introduced in 04.9 Iterating, Debugging and Porting Prompts
Model lifecycle (active, legacy, deprecated, retired)

The stages a model passes through, from preview and active to legacy, deprecated and retired.

Introduced in 02.9 Model Landscape
Model migration playbook

A templated, rehearsed procedure for moving a project from one model pin to another: baseline eval, pin-only change, eval comparison, smoke test, monitor, rollback.

Introduced in 14A.9 Staying Current in a Fast-Moving Field
Model pinning

Using exact snapshot IDs in production so the model can't change underneath you (not the *pinned context* of [lesson 07](02-how-llms-work/07-context-windows.md#46-pinning-and-structured-state)).

Introduced in 02.9 Model Landscape
Model profile

Beta capability and limit metadata on model.profile (context size, modalities, reasoning effort levels), shipped with the provider package.

Introduced in 08F.5 Chat Models, Messages and Content Blocks
Model registry

A single table of which model each feature uses, with its eval and lifecycle status

Introduced in 11C.5 Model Lifecycle on One Page
Model risk

The chance an LLM component changes behaviour without a deploy, leaks data, or produces unsafe output — a responsibility axis unique to AI work.

Introduced in 14B.1 The AI Engineering Landscape: Roles, Teams and Career Paths
Model routing / cascade

Sending each request to the cheapest suitable model, and escalating to a stronger model when needed.

Introduced in 02.9 Model Landscape
Model selection

The offline decision of which models may serve which tasks, made from eval evidence.

Introduced in 11B.5 Model Selection and Routing
Model signing

Signing a model file so that consumers can verify who published it and that it is unchanged

Introduced in 14A.7 Data, Vendor and Supply-Chain Governance, plus NIST AI RMF and ISO/IEC 42001 Awareness
Model snapshot

A dated, immutable version of a hosted model, as opposed to an alias the provider can move to a newer model; evals should pin snapshots so numbers stay comparable.

Introduced in 10B.12 Running Inspect Evals for Real: Models, Configuration, Concurrency, Caching, Errors and Eval Sets (optional)
Model spec (Inspect)

A single model with its own generation settings, model args and base URL, given once per model with --model-spec, so one command can run the same model under two configurations.

Introduced in 10B.12 Running Inspect Evals for Real: Models, Configuration, Concurrency, Caching, Errors and Eval Sets (optional)
Model string (Inspect)

The provider/model-name identifier that selects an Inspect provider and the vendor's model, such as openai/gpt-6-luna or openai-api/gateway/our-model. *(Introduced in [lesson 10B.8](10b-eval-frameworks/08-inspect-fundamentals.md#49-the-same-task-against-a-real-model))* *(Extended in [lesson 10B.12](10b-eval-frameworks/12-inspect-running-at-scale.md#21-model-strings))*

Model tier

See [Tier](#tier).

Model tiering / routing

Sending easy questions to cheap/fast models and hard ones to frontier, decided before the expensive call. *(Concept from 02.9's routing/cascade preview; this lesson applies it per pipeline stage.)*.

Introduced in 07.11 Production RAG: Security, Freshness, Cost and Operations
Model-call retry

A retry of a single provider request inside Inspect's model layer, with exponential backoff, invisible to the sample unless the retries run out.

Introduced in 10B.12 Running Inspect Evals for Real: Models, Configuration, Concurrency, Caching, Errors and Eval Sets (optional)
Model-emitted parallel tool calls

Several tool calls the model returns in one turn

Introduced in 08A.11 Reflection, Parallel Fan-Out and Agent-as-a-Tool
Model-upgrade gate

The named CI step that runs a candidate model against the incumbent's accepted baseline and fails the job on a regression (overall, per slice or over budget)

Introduced in 10A.8 Regression Testing, CI and Experiment Tracking
Model-version drift

Silent provider model updates changing behaviour.

Introduced in 10A.9 Offline vs Online Evaluation
model_dump / model_dump_json

Serialisation to dict/JSON; mode, exclude*, include, by_alias shape the output.

Introduced in 01B.6 Data Validation with Pydantic
model_extra

Undeclared keys kept under extra="allow"; validating objects by attribute (ORMs); serialised derived properties.

Introduced in 01B.6 Data Validation with Pydantic
model_graded_fact()

Inspect's built-in model-graded scorer that asks a grader whether a submission contains the content of an expert answer (the target); it checks inclusion, not contradiction.

Introduced in 10B.11 Model Grading in Inspect, and Validating the Grader (optional)
model_graded_qa()

Inspect's built-in model-graded scorer that asks a grader model whether a submission meets a criterion (usually the sample's target) and parses a GRADE: C or GRADE: I verdict.

Introduced in 10B.11 Model Grading in Inspect, and Validating the Grader (optional)
`model_input` hook

A per-tool hook that changes how earlier tool results are replayed to the model on every call (for example, placeholders for old screenshots) while the transcript and message history keep the originals.

Introduced in 10B.14 Tools and Agents in Inspect: Custom Tools, MCP, react() and Multi-Agent Systems (optional)
model_json_schema()

Generates the JSON Schema document for a model — the contract sent to providers.

Introduced in 01B.6 Data Validation with Pydantic
`model_origin()`

A marker that distinguishes evaluated-agent model calls from helper or environment calls in the transcript.

Introduced in 10B.14 Tools and Agents in Inspect: Custom Tools, MCP, react() and Multi-Agent Systems (optional)
model_validate / model_validate_json / model_validate_strings

The three validation doors: Python mapping, JSON text, dict-of-strings — same validation, different input modes.

Introduced in 01B.6 Data Validation with Pydantic
ModelCall

The raw provider request and response that Inspect records in a model event, for debugging what was actually sent.

Introduced in 10B.13 Inspect Logs, Analysis and Extending Inspect (optional)
ModelCallLimitMiddleware

Middleware that caps model calls per run or per thread and then ends the run or raises.

Introduced in 08F.8 Tools and create_agent
ModelFn

The callable seam (system prompt, rendered prompt, case) -> output text that lets one harness drive fake, provider or replay models.

Introduced in 04.9 Iterating, Debugging and Porting Prompts
ModelRefusalError

The exception raised in place of a parsing error when a model refuses a structured request.

Introduced in 08F.5 Chat Models, Messages and Content Blocks
Models API

A provider endpoint that lists the models your account can use, with limits and sometimes capabilities and lifecycle status.

Introduced in 02.9 Model Landscape
Modified Abuse Monitoring

An OpenAI arrangement that excludes customer content from abuse-monitoring logs

Introduced in 14A.7 Data, Vendor and Supply-Chain Governance, plus NIST AI RMF and ISO/IEC 42001 Awareness
Modified n-gram precision

BLEU's clipping rule: a hypothesis n-gram counts at most as many times as it appears in any single reference, so repetition can't game the score.

Introduced in 10A.3 Deterministic Metrics and Code-Based Graders
Module

A .py file whose top-level names become importable attributes; the filename (minus .py) is its import name.

Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Library
Mojibake

Text garbled by decoding bytes in the wrong encoding (e.g. UTF-8 read as Latin-1); usually recoverable by re-encoding and decoding correctly.

Introduced in 05.5 Cleaning and Normalization
monkeypatch

Pytest fixture for scoped, auto-undone patching of env vars and attributes.

Introduced in 01B.8 Testing with pytest
Monolith / microservices / serverless

One deployable app / independently deployed services / per-request functions (FaaS).

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Monorepo / polyrepo

One repository holding everything versus one repository per project or service.

Introduced in 00.4 GitHub and Collaboration
Moonlighting

Working on side projects while employed — often restricted by contract.

Introduced in 14B.8 Interview Prep III: Take-Homes, Behavioural Rounds and Offers
MOS

Mean Opinion Score — a human 1–5 naturalness rating used to evaluate TTS.

Introduced in 09.5 Text-to-Speech
MQA / GQA / MLA

Attention variants that share or compress keys and values to shrink the KV cache.

Introduced in 02.4 Attention and Transformers
MRO (method resolution order)

The C3 linearisation deciding which method wins; super() walks it.

Introduced in 01A.6 Classes, Dataclasses and Enums
MRR (mean reciprocal rank)

A retrieval metric averaging 1/(rank of the first relevant result) across queries; it rewards putting the best answer as high as possible.

Introduced in 06.1 Embedding Models and APIs in Practice
MRTR

MCP pattern where a server replies resultType: "input_required" and the client retries the original call with inputResponses — replacing server-initiated requests in the stateless spec.

Introduced in 08E.1 The Model Context Protocol (MCP)
msoffcrypto-tool

Decrypts password-protected Office files (with the password).

Introduced in 05.3 Parsing HTML, Web Pages and Office Files
MTEB / MMTEB

The standard public benchmark (and its multilingual expansion) for embedding models.

Introduced in 02.3 Embeddings
mTLS

Mutual TLS: both sides present certificates during the handshake, and the client certificate *is* the workload's identity — used by service meshes and cloud platforms.

Introduced in 00.6 HTTP, REST and JSON
MTok

One million tokens, the standard unit of LLM pricing.

Introduced in 02.9 Model Landscape
MTTD / MTTA / MTTR / MTBF

Mean time to detect (impact → alert) / to acknowledge (alert → human) / to resolve (alert → restored) / between failures — the core incident metrics.

Introduced in 11C.4 Operating LLM Systems: Governance, Incidents and the Production Checklist
MTTR / MTBF / MTTD

Mean time to repair / between failures / to detect — the core incident metrics.

Introduced in 11C.4 Operating LLM Systems: Governance, Incidents and the Production Checklist
Multi Round-Trip Requests (MRTR)

The 2026-07-28 pattern replacing server-initiated requests: the server answers resultType: "input_required" with inputRequests, the client fulfils them and retries with inputResponses.

Introduced in 12.6 Securing Tools, Agents and MCP
Multi-agent multiplier

How many times more a multi-agent run costs than a single-agent run of the same job

Introduced in 11B.8 The Cost of Agents and Long Contexts, Prompt Caching per Provider, and the Cost of Running Evals
Multi-agent system

Two or more LLM agents — separate contexts, budgets and tools — coordinated on a shared task, as opposed to patterns inside a single agent loop.

Introduced in 08D.3 Multi-Agent Systems
Multi-armed bandit

An algorithm balancing exploration vs exploitation across variants.

Introduced in 10A.9 Offline vs Online Evaluation
multi-index routing

Choosing which index(es) a query searches via an LLM classifier plus heuristic fallback.

Introduced in 07.2 Retrieval Strategies for RAG
Multi-query fan-out

N paraphrases retrieved separately and fused with RRF.

Introduced in 07.3 Query Understanding, Rewriting and Expansion
Multi-query retrieval

Generating several paraphrases of a query, retrieving for each, and fusing the ranked lists (typically with RRF).

Introduced in 06.10 Evaluating and Tuning Retrieval
Multi-stage build

Dockerfile pattern: build deps in one stage, copy only artifacts to a slim runtime.

Introduced in 11C.1 Deploying LLM Services
Multi-tenancy

One deployment serving many customers with isolated data, prompts, caches, quotas and budgets; the isolation model (silo, pool+RLS, schema-per-tenant, bridge) is an early architecture decision.

Introduced in 13A.5 Architecture Patterns for AI Applications
Multi-tenancy patterns

Shared+filter vs namespace/partition vs separate index.

Introduced in 05.8 Metadata Design
Multi-tenant (Dify licence)

Operating one deployment for several separate customers or workspaces, which Dify's licence restricts without written permission

Introduced in 08F.16 Low-Code Agent Platforms: n8n and Dify (awareness)
Multi-turn judge

A judge that grades a full conversation transcript, per-turn or conversation-level.

Introduced in 10A.4 LLM-as-Judge
Multi-vector embedding

Keeping several vectors per text (typically one per token) instead of a single pooled vector.

Introduced in 06.3 Similarity Metrics and Nearest-Neighbour Search
Multi-vector representation

Giving one chunk several embeddings of different "views" (its text, summary, hypothetical questions, keywords) that all resolve back to the same chunk id.

Introduced in 05.7 Advanced and Document-Specific Chunking
Multi-window multi-burn-rate alerting

Alerting that requires high burn over both long and short windows to avoid noise.

Introduced in 11A.2 Metrics, Dashboards, SLOs and Alerting
Multi-window workflow

A long task run across several context windows, with durable state in files and git rather than in the conversation ([6.5](04-prompt-context-engineering/07-managing-context-over-time.md#65-long-tasks-across-many-context-windows-files-and-git-as-the-memory)).

Introduced in 04.7 Context Engineering: Managing Context Over Time
multi_scorer

An Inspect scorer that runs several scorers on the same sample and combines their scores into one with a reducer; with an all-must-pass reducer it reproduces a harness "pass rate".

Introduced in 10B.10 Inspect Scorers, Metrics, Epochs and the Statistics Inspect Reports (optional)
Multimodal CoT

A fine-tuned two-stage model that generates a rationale from text and image, then infers the answer (Zhang et al.).

Introduced in 04.11 Named Prompting Techniques: A Field Guide
Multimodal embedding

An embedding space shared by text and other modalities such as images (for example CLIP).

Introduced in 02.3 Embeddings
Multipart form

multipart/form-data body for file uploads (files=).

Introduced in 01B.5 HTTP Clients with httpx
multipart/form-data

Body format for mixed/binary content (file uploads); sections split by a boundary parameter, each with its own Content-Type.

Introduced in 00.6 HTTP, REST and JSON
MultiQueryRetriever

A classic retriever that asks an LLM for query variants and returns the unique union of their results.

Introduced in 08F.9 RAG with LangChain
Multishot prompting

Anthropic's term for few-shot prompting.

Introduced in 04.2 Zero-Shot, Few-Shot and Examples
Must-never-fail case

An eval case where any failure blocks launch, regardless of the overall pass rate

Introduced in 14A.10 Your First-90-Days Project on an Internal Use Case
Mutable / immutable

Can / cannot change in place (list,dict,set vs int,str,tuple).

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
Mutable default argument

A default parameter value (e.g. def f(x=[])) evaluated once at definition time and shared across calls — a common source of state-leak bugs.

Introduced in 01A.3 Control Flow and Functions
Mutable vs immutable

Whether an object can change in place (list, dict, set) or only be replaced (int, str, tuple).

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
Mutation check

Breaking a rule on purpose to confirm the eval notices

Introduced in 08A.1 Agent Definitions, the Autonomy Spectrum and Agent Anatomy
Mutex / Lock

Primitive that admits one thread at a time to a critical section.

Introduced in 01C.3 Race Conditions and Thread Safety
MVP (minimum viable product)

The smallest version that delivers the core job and produces real usage data.

Introduced in 13A.1 Product Thinking for AI Features: What to Build and When Not to Use AI
MXFP4 / NVFP4

4-bit microscaling quantization formats with block-wise scales, designed for MoE expert weights — MXFP4 is required for gpt-oss models; NVFP4 is NVIDIA's Blackwell-optimized variant.

Introduced in 11C.6 Open-Weight and Local Models

N

[n] marker convention

Numbering retrieved chunks and citing them inline as [n].

Introduced in 07.5 Citations and Attribution
__name__ / __main__

__name__ is '__main__' when a file runs directly and its module name when imported; the guard runs code only on direct execution.

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
N-gram / edge n-gram / trigram

Fixed-length character sequences indexed for substring/fuzzy matching.

Introduced in 06.7 Keyword Search and BM25
n8n

A workflow automation platform with many integrations and an AI Agent node

Introduced in 08F.16 Low-Code Agent Platforms: n8n and Dify (awareness)
Naive vs aware datetime

A datetime without / with a tzinfo; Python refuses to compare them. Store and compute in aware UTC.

Introduced in 01A.11 Coming from PHP, JavaScript or Java: Side by Side
Name binding

= attaches a name to an object rather than copying a value into a variable.

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
Name mangling

__x stored as _Class__x — anti-collision, not privacy.

Introduced in 01A.6 Classes, Dataclasses and Enums
Named sandbox

An additional sandbox in a multi-service or multi-environment setup, selected with sandbox(name).

Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)
Named vector

Multiple independently configured vectors per point/record — e.g. separate "title" and "body" embeddings with different models or distances.

Introduced in 06.5 Vector Databases: Choosing and Using One
namedtuple

Tuple with named fields; a tiny fixed record that is still a plain tuple.

Introduced in 01A.4 Core Data Structures: Lists, Tuples, Dictionaries and Sets
NameError

Name used before binding; operation on wrong kinds of values; right type but inappropriate value.

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
Namespace

Pinecone's per-tenant isolation unit inside an index; the recommended multi-tenancy mechanism there.

Introduced in 06.6 Filtering, Metadata and Multi-Tenant Search
Namespace (store)

The tuple of strings that addresses a group of store items, such as (user_id, "memories").

Introduced in 08F.11 Persistence, Durable Execution and Memory
Namespace (stream chunk)

The path to the (sub)graph that produced a chunk; empty at the top level.

Introduced in 08F.14 The Functional API and Streaming
Namespace package

A package directory without __init__.py (PEP 420, Python 3.3+) that the import system still resolves.

Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Library
Namespace reduction

The 1.0 change that cut langchain down to the agent-focused modules (agents, messages, tools, chat_models, embeddings).

Introduced in 08F.4 The LangChain Ecosystem and Your Setup
Namespacing

Grouping tool names under a shared prefix (orders_, tickets_) to keep selection unambiguous at scale.

Introduced in 08A.6 Designing Tools Models Can Use
nan / inf

Float values for "not a number" / infinity; nan != nan always.

Introduced in 01A.2 Numbers, Strings and Text
Nano Banana

Google's consumer name for its Gemini image-generation models.

Introduced in 09.3 Image Generation and Editing
NAT / CGNAT

Network Address Translation — many private devices share one public address; carrier-grade NAT (100.64.0.0/10) is the ISP-scale version.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Native model (DeepEval)

One of DeepEval's built-in provider wrappers (such as OpenAIModel or AnthropicModel); the only judges whose cost DeepEval tracks.

Introduced in 10B.3 Judges in DeepEval: Models, G-Eval, DAG and Custom Metrics
Native part (native twin)

A canonical part's provider-specific serialization, kept so reasoning items, signatures and call items can be replayed unchanged to the same API and dropped for others.

Introduced in 03.11 Building a Provider-Agnostic Client
Native PDF input

Sending the PDF file itself; the provider extracts text and renders page images.

Introduced in 09.2 Document Understanding with Vision Models
Native video input

Passing a video file or URL to a model that samples frames and folds in the audio track internally, as Gemini does.

Introduced in 09.8 Video Understanding
native_tools

OpenRouter endpoints-API field listing which server tools a given model+provider endpoint runs through the provider's own built-in tool.

Introduced in 08A.8 Provider Built-in and Server-Side Tools
Natural idempotency

Designing a tool so retries are harmless by construction (e.g. dedupe on customer+subject).

Introduced in 08A.6 Designing Tools Models Can Use
ndarray

NumPy's N-dimensional array: a grid of same-typed numbers stored contiguously in memory.

Introduced in 01B.11 NumPy and pandas Essentials for AI Work
nDCG

Normalised discounted cumulative gain; graded-relevance ranking metric.

Introduced in 14B.6 Interview Prep I: Coding and Fundamentals
nDCG gain convention

Exponential 2^grade − 1 (used here, also ndcg_burges in ranx) vs linear grade; the two give different scores on graded labels.

Introduced in 06.10 Evaluating and Tuning Retrieval
nDCG@k

Normalised discounted cumulative gain: graded relevance with exponential gains and a log2 rank discount, normalised by the ideal ordering; the standard graded-relevance retrieval metric.

Introduced in 06.10 Evaluating and Tuning Retrieval
Near miss

An event that could have been an incident but was caught; recorded at the lowest severity

Introduced in 14A.5 The Incident Process for AI Systems
Near-duplicate

A case whose text is very similar to another (here: Jaccard similarity of 0.8 or more)

Introduced in 11A.4 Production Traces into Eval Datasets
Nearest-rank percentile

A percentile that returns an observed value at rank ceil(p/100 x n)

Introduced in 11A.3 Latency Percentiles, Error Classification, Audit Logs, Session Replay, Dashboards and SLOs
Needed-set recall

Fraction of the minimal set of chunks required to answer a query that appears in the top-k; catches half-answers that recall over all relevant chunks can mask.

Introduced in 06.10 Evaluating and Tuning Retrieval
Needle in a haystack (NIAH)

A long-context test that hides one fact in a long filler text and asks the model to retrieve it; it tends to overstate real long-context ability.

Introduced in 02.7 Context Windows
Needle test

Planting a known brief event in test footage to measure whether a video pipeline retrieves it — the recall metric for long-video search.

Introduced in 09.8 Video Understanding
needs_approval

OpenAI Agents SDK flag that pauses a run for human approval before a tool executes.

Introduced in 08F.1 Agent Frameworks and SDKs
Negative caching

Storing failures/refusals/errors and replaying them; almost always wrong for LLM calls.

Introduced in 11B.3 Caching Strategies
Negative case / "should-not" case

An input where the correct behaviour is the *absence* of an action (refuse, don't call a tool, don't retrieve).

Introduced in 10A.2 Building Evaluation Datasets
Negative control

A deliberately bad agent (null, lazy, looping, unsafe) that every grader suite must fail; a control that passes exposes a grader gap.

Introduced in 10A.7 Evaluating Agents, Tool Use and Multimodal Systems
Negative example

An example showing what *not* to output — useful for format rules, risky for content.

Introduced in 04.2 Zero-Shot, Few-Shot and Examples
Negative inner product

What pgvector's <#> operator returns so Postgres' ascending index scans yield "most similar first".

Introduced in 06.3 Similarity Metrics and Nearest-Neighbour Search
Negative transfer

A stored lesson or procedural memory that makes later tasks worse; measured by seeding a wrong lesson and comparing task sequences with and without it.

Introduced in 10A.11 Evaluating Agent Memory and Context Management
Nested trace

A trace tree — system run → agent runs → model/tool calls — required to debug multi-agent systems.

Introduced in 08D.3 Multi-Agent Systems
nesting depth

Archives can contain archives — cap recursion (MAX_DEPTH) so self-referential zips terminate.

Introduced in 05.3 Parsing HTML, Web Pages and Office Files
Net saving

The cost without caching minus the actual cost, after write premiums and storage. It can be negative.

Introduced in 03.7 Token Counting, Cost Tracking and Prompt Caching
Network guard

A fixture/plugin making any socket attempt fail loudly.

Introduced in 01B.8 Testing with pytest
Neural codec language model

A TTS architecture where an autoregressive transformer predicts discrete audio-codec tokens, like an LLM predicts text tokens.

Introduced in 09.5 Text-to-Speech
Neuron

The basic unit of a neural network: multiply inputs by weights, add a bias, apply an activation function.

Introduced in 02.1 Neural Network Basics
newline=""

Open() argument disabling newline translation; required for correct csv module behaviour.

Introduced in 01A.9 Files, Paths, JSON and CSV
NewType

A distinct type alias for checkers; identity function at run time.

Introduced in 01A.10 Type Hints and Writing Readable Code
`next_*_span`

Context managers that stage values or metrics for the next framework-created span

Introduced in 10B.5 DeepEval Tracing, Component-Level Evals and Agent Evaluation
`next_*_span` context managers

DeepEval's staging context managers (next_llm_span, next_tool_span, next_retriever_span, next_agent_span and next_span) that apply metrics or fields to the next framework-created span opened inside the block.

Introduced in 10B.5 DeepEval Tracing, Component-Level Evals and Agent Evaluation
NFC / NFD / NFKC / NFKD

Unicode normalization forms: canonical compose/decompose and compatibility variants.

Introduced in 05.5 Cleaning and Normalization
NIST AI RMF

US voluntary AI-risk framework (Govern/Map/Measure/Manage) and its GAI companion profile (NIST AI 600-1, July 2024).

Introduced in 12.1 Threat Modelling LLM Applications
NIST SSDF

The NIST Secure Software Development Framework (SP 800-218) — a set of secure development practices covering preparation, software protection, secure production and vulnerability response; SP 800-218A extends it to generative AI.

Introduced in 12.7 Securing RAG Data, Keys and the AI Supply Chain
NLI-style verification

Scoring claim support as a natural-language-inference task: retrieved context is the premise, the claim the hypothesis, with entailment/neutral/contradiction labels; enables small local models (or Vectara's HHEM) instead of LLM judges.

Introduced in 07.9 Evaluating RAG
nlist / nprobe

IVF cell count (build) / cells probed per query (query-time recall dial).

Introduced in 06.4 Vector Indexes: HNSW, IVF, Quantization and Trade-offs
NMS

Keeping only the highest-scoring box when several overlap.

Introduced in 09.1 Vision Applications: Understanding Images
No-user control

Running the agent with every fact and no user, to measure the communication cost a simulator imposes (τ²-bench's No-User mode).

Introduced in 10A.12 Evaluating Multi-Agent Systems and Validating User Simulators
no_repeat_calls / loop_detected

Graders/metrics for repeated identical calls — the loop failure signature.

Introduced in 10A.7 Evaluating Agents, Tool Use and Multimodal Systems
Node

A function that reads the state and returns a partial update, a Command or None.

Introduced in 08F.10 LangGraph Fundamentals
Node cache

A store (InMemoryCache, SqliteCache, RedisCache) that memoizes node results across runs by input.

Introduced in 08F.12 Human-in-the-Loop and Control Flow
Node ID

A test's unique address: file.py::test_func[param] — used for selection and --lf.

Introduced in 01B.8 Testing with pytest
NodeError

The injected failure description (node, error) given to an error handler.

Introduced in 08F.12 Human-in-the-Loop and Control Flow
NodeTimeoutError

The error a timed-out attempt raises; it does not subclass TimeoutError and is retried by default.

Introduced in 08F.12 Human-in-the-Loop and Control Flow
nohup / tmux

Ignore-HUP wrapper / terminal multiplexer for surviving disconnects.

Introduced in 00.2 The Terminal and Shell
Noise floor (realism)

The divergence two halves of the real conversations show from each other, used as the threshold above which a simulator's divergence counts as a real difference.

Introduced in 10A.12 Evaluating Multi-Agent Systems and Validating User Simulators
Noise reduction (near_field/far_field)

Realtime input filter that cleans audio before VAD and the model.

Introduced in 09.7 Realtime Voice Agents
Noise vs signal

Artifacts of extraction (removable) vs document content (keep).

Introduced in 05.5 Cleaning and Normalization
Noisy neighbour

A tenant that uses so much of a shared resource that others suffer

Introduced in 11B.7 Rate Limits Across Teams, Throughput Options, Kill Switches and Spend Alerts
Non-blocking call

A call that returns immediately, with a result or a "not ready" error such as BlockingIOError (EAGAIN).

Introduced in 01C.1 Concurrency, Parallelism and Context Switching
Non-functional budget

An explicit allocation of latency, cost, availability, quality and safety per request or per stage, enforced in config and measured against SLOs.

Introduced in 13A.5 Architecture Patterns for AI Applications
Non-functional requirement (NFR)

Requirements about how the system performs (latency, cost, safety) rather than what it does.

Introduced in 13A.1 Product Thinking for AI Features: What to Build and When Not to Use AI
Non-goal

Something the project explicitly will not do, written down to protect scope

Introduced in 14A.10 Your First-90-Days Project on an Internal Use Case
non_standard block

The escape-hatch block that wraps a provider payload with no standard type.

Introduced in 08F.5 Chat Models, Messages and Content Blocks
nonlocal / global

Assign in enclosing / module scope.

Introduced in 01A.3 Control Flow and Functions
noreply email

GitHub-provided commit email that attributes commits to you without exposing your real address.

Introduced in 14B.3 GitHub Presence and Project READMEs
NoReturn / Never

Return type of a function that never returns normally; code after it is unreachable.

Introduced in 01A.10 Type Hints and Writing Readable Code
Norm (length, magnitude)

The length of a vector.

Introduced in 02.3 Embeddings
Normalisation (NFC/NFD/NFKC/NFKD)

Canonical compose/decompose and compatibility folding of Unicode text.

Introduced in 01A.2 Numbers, Strings and Text
Normalised coordinates

Box values scaled to a fixed range (0–1 or 0–1000) instead of pixels.

Introduced in 09.1 Vision Applications: Understanding Images
Normalization (1NF–3NF)

Storing each fact once vs deliberately duplicating for read speed.

Introduced in 00.7 SQL Basics with SQLite
Normalized coordinates

Gemini's 0–999 coordinate space, denormalized to pixels by you.

Introduced in 08A.15 Coding and Computer-Use Agents
Normalized exact match

Exact match after lower-casing and removing punctuation, articles and extra whitespace; DeepEval's DROP scorer, with no partial credit.

Introduced in 10B.6 DeepEval Datasets, Synthetic Data, Conversation Simulation and Benchmarks
Normalized finish reason

One enum that every provider's stop reason maps onto, always stored beside the provider's raw value because normalizing loses information. See also [Finish reason / stop reason](#finish-reason--stop-reason).

Introduced in 03.11 Building a Provider-Agnostic Client
Normalized usage

One provider-neutral record of a call's tokens in which each token falls in exactly one billing bucket, such as uncached input, cache read, cache write or output. Provider quirks (Anthropic's separate cache fields, Gemini's separate thinking count) are resolved once, before pricing.

Introduced in 03.7 Token Counting, Cost Tracking and Prompt Caching
North-star / guardrail / diagnostic (online)

The metric hierarchy applied to live signals.

Introduced in 10A.9 Offline vs Online Evaluation
North-star metric

The three tiers of the metric hierarchy: the product-goal number, must-not-regress numbers, and per-slice explainers.

Introduced in 10A.1 Why Evals Matter: The Evaluation Mindset
nostream tag

A model tag that hides that model's tokens from messages mode without skipping the call.

Introduced in 08F.14 The Functional API and Streaming
Notebook (Jupyter .ipynb)

A document of executable cells mixing code and prose.

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
NotGiven sentinel

SDK pattern distinguishing "argument omitted" from None — triggers the SDK's own default resolution.

Introduced in 01A.10 Type Hints and Writing Readable Code
Notice period

Employment terms: notice owed before leaving, ownership of work created while employed, and side-work restrictions.

Introduced in 14B.8 Interview Prep III: Take-Homes, Behavioural Rounds and Offers
nprobe / efSearch

The query-time recall dials: cells probed per query in IVF, candidate-list size in HNSW graph walks.

Introduced in 06.4 Vector Indexes: HNSW, IVF, Quantization and Trade-offs
NSW

Navigable small world — the single-layer ancestor of HNSW.

Introduced in 06.4 Vector Indexes: HNSW, IVF, Quantization and Trade-offs
Nudge

A message telling the model it looks stuck and should change approach

Introduced in 08A.3 Loop Control, Budgets and Stagnation Detection in the Raw Loop
Nudged acceptance

Pre-checked "approve all" or hidden reject options escalating autonomy without consent.

Introduced in 13A.3 AI UX II: Trust, Transparency, Feedback and Human-in-the-Loop
Nugget recall

Fraction of atomic required answer points ("nuggets") covered by the answer — a completeness metric that separates coverage from wording.

Introduced in 10A.6 Evaluating RAG Pipelines in Depth
NULL

"Unknown/not applicable" marker; comparisons yield TRUE/FALSE/UNKNOWN and only TRUE passes WHERE.

Introduced in 00.7 SQL Basics with SQLite
Nullable but required

A field that must always be present but may be null; how strict modes express "optional".

Introduced in 03.4 Structured Output
nullable dtypes

Int64, boolean, string dtypes that represent missing properly.

Introduced in 01B.11 NumPy and pandas Essentials for AI Work
Numeric agreement

Comparing the numbers in two independent extractions of one page to catch OCR slips and model-invented values.

Introduced in 05.10 Data Quality Checks
NumpyVectorStore

The exact brute-force cosine k-NN VectorStore implementation used for tests, notebooks and small corpora — ground truth for recall evaluation.

Introduced in 06.5 Vector Databases: Choosing and Using One
Nyquist limit

The highest frequency representable at a given sample rate is half the rate — why 16 kHz captures all speech.

Introduced in 09.4 Speech-to-Text
N−1 replay

Replaying a real user's first N−1 sessions (consented and scrubbed) into a fresh memory system and probing in session N, turning production failures into regression cases.

Introduced in 10A.11 Evaluating Agent Memory and Context Management

O

`@observe` (DeepEval)

DeepEval's decorator for capturing synchronous, asynchronous and generator functions as typed spans in a trace.

Introduced in 10B.5 DeepEval Tracing, Component-Level Evals and Agent Evaluation
@overload

Declares several call signatures with different return types for one function; checker-only.

Introduced in 01A.10 Type Hints and Writing Readable Code
@override

Marks a method as intentionally replacing a parent's, so a checker can catch a stale override (3.12+).

Introduced in 01A.10 Type Hints and Writing Readable Code
O_NONBLOCK

The file-descriptor flag that makes I/O calls non-blocking; socket.setblocking(False) sets it.

Introduced in 01C.1 Concurrency, Parallelism and Context Switching
OAuth 2.0 / OIDC

Delegation protocol for "log in with X"; OIDC adds the identity (ID token) layer.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
OAuth 2.1

The consolidated OAuth 2.0 rules MCP uses a subset of

Introduced in 08E.3 Remote MCP: OAuth, Gateways and Many Servers
Object

The thing a name points at; has a type and an identity (id()).

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
Object header

The fixed start of every Python object: a reference count and a pointer to its type (16 bytes on a 64-bit CPython build).

Introduced in 01C.6 Python Memory Management
Object identity vs equality

is compares identity (same object); == calls __eq__ for value.

Introduced in 01A.11 Coming from PHP, JavaScript or Java: Side by Side
Object model / content-addressing

Objects named by hash of their contents — identical content stored once, corruption detectable.

Introduced in 00.3 Git Fundamentals
Object-store port

The thin put/get/exists interface hiding S3/GCS/local-disk behind one seam.

Introduced in 13B.3 Capstone Build B: The Document Intelligence App
object_hook / object_pairs_hook

json.loads hook receiving raw (key, value) pairs before they collapse into a dict — the way to detect duplicate keys.

Introduced in 01A.9 Files, Paths, JSON and CSV
Observability

The ability to understand system state from its outputs — logs, metrics, traces.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Observation masking

Replacing old tool outputs in an agent's history with placeholders while keeping its reasoning and actions verbatim; the simple compaction baseline a summariser must beat.

Introduced in 10A.11 Evaluating Agent Memory and Context Management
OCR (optical character recognition)

Inferring text characters from an image of text; a pipeline of preprocessing, region detection, recognition and layout reconstruction.

Introduced in 05.4 OCR and Scanned Documents
OCR engine

The recogniser itself (Tesseract, PaddleOCR, a VLM).

Introduced in 05.4 OCR and Scanned Documents
OCR-free reading

Reading text from image pixels via a VLM, no OCR engine.

Introduced in 09.1 Vision Applications: Understanding Images
OEM (OCR engine mode)

Tesseract's --oem selector between the legacy and LSTM/neural recognition engines.

Introduced in 05.4 OCR and Scanned Documents
Offer letter

The document summarising compensation, benefits and terms.

Introduced in 14B.8 Interview Prep III: Take-Homes, Behavioural Rounds and Offers
Official run (`--official`)

A test run marked as the baseline on Confident AI

Introduced in 10B.7 DeepEval in Production: Red Teaming, CI/CD, Prompt Optimization and Confident AI
Offline and online evaluation

Scoring dataset examples before release (with references) versus scoring production runs (without).

Introduced in 11A.5 LangSmith, Testing and Deployment
Offline eval

Evaluation on a fixed dataset before production / on live production traffic.

Introduced in 10A.1 Why Evals Matter: The Evaluation Mindset
Offline evaluation

Evaluation on a curated dataset before release.

Introduced in 10A.9 Offline vs Online Evaluation
Offline vs streaming transcription

Whole-file batch transcription versus live audio producing partial and final results.

Introduced in 09.4 Speech-to-Text
OIDC federation

Short-lived cloud credentials exchanged from a CI OIDC token instead of stored secrets.

Introduced in 11C.2 CI/CD for Prompts, Models and Evals
OIDC in CI

OpenID Connect federation: CI assumes a cloud role without stored keys.

Introduced in 11C.1 Deploying LLM Services
Ollama

A tool that runs open-weight models locally with OpenAI- and Anthropic-compatible APIs.

Introduced in 03.1 The Provider APIs and Your First Calls
OmniDocBench / olmOCR-Bench

Public benchmark suites for document parsing (text, tables, formulas, reading order); a shortlist aid, never a substitute for scoring your own pages.

Introduced in 05.4 OCR and Scanned Documents
On-call / on-call rotation

The engineer currently responsible for a service outside business hours, and the schedule that hands that responsibility around.

Introduced in 11C.4 Operating LLM Systems: Governance, Incidents and the Production Checklist
`on_continue`

The hook that decides whether and how a react() loop continues after an unfinished turn.

Introduced in 10B.14 Tools and Agents in Inspect: Custom Tools, MCP, react() and Multi-Agent Systems (optional)
Onboarding buddy

The teammate assigned to answer "how do we do X here" questions during your ramp.

Introduced in 14B.9 Your First 90 Days and Long-Term Growth
One owner per question

The practice of assigning each evaluation question (grounding, agent outcome, version comparison, judge trust) to exactly one tool

Introduced in 10B.17 DeepEval or Inspect? Choosing, Combining and Migrating (optional)
One-hot encoding

A vector with a single 1 in the slot for one item and 0 everywhere else.

Introduced in 02.3 Embeddings
Online eval

Evaluation on live production traffic: feedback, sampled scoring, drift.

Introduced in 10A.1 Why Evals Matter: The Evaluation Mindset
Online evaluation

Evaluation on live production traffic after release.

Introduced in 10A.9 Offline vs Online Evaluation
OOXML

Office Open XML: .docx/.xlsx/.pptx as ZIP packages of XML (ISO/IEC 29500, ECMA-376).

Introduced in 05.1 Data Sources, Formats and the Ingestion Mindset
Opaque cursor

An encoded pagination token the model passes back verbatim without parsing it — distinct from 06.6's DB-level "cursor / keyset pagination".

Introduced in 08A.6 Designing Tools Models Can Use
Open coding

Letting failure categories emerge from the data rather than imposing a taxonomy top-down.

Introduced in 10A.1 Why Evals Matter: The Evaluation Mindset
Open Responses

An open specification, based on OpenAI's Responses API, for multi-provider LLM interfaces: items, streaming events, tool use and acceptance tests.

Introduced in 03.11 Building a Provider-Agnostic Client
Open Source AI Definition

The Open Source Initiative's 2024 definition of open-source AI, which requires the weights, the training code and enough information about the training data to build an equivalent system.

Introduced in 02.9 Model Landscape
Open to Work

LinkedIn's job-seeking signal with three visibility modes (all members / recruiters only / only you).

Introduced in 14B.5 Résumé, LinkedIn and the Job Search
Open weights

See [Open-weight model](#open-weight-model).

Open-vocabulary detection

Detecting objects by description, not a fixed trained class list.

Introduced in 09.1 Vision Applications: Understanding Images
Open-weight document VLM

A small vision-language model you can download and self-host (olmOCR, PaddleOCR-VL, DeepSeek-OCR, Granite-Docling, Chandra) that converts a page image to Markdown or structured markup.

Introduced in 05.4 OCR and Scanned Documents
Open-weight model

A model whose trained parameters can be downloaded and run.

Introduced in 02.9 Model Landscape
OpenAI Agents SDK

OpenAI's Python library (openai-agents, import agents) with Agent, Runner, tools, handoffs, guardrails, sessions, tracing and MCP support

Introduced in 08F.2 OpenAI Agents SDK
OpenAI container

The sandboxed VM behind code_interpreter and hosted shell: memory tiers 1–64 GB, ~20-minute idle expiry, per-session billing.

Introduced in 08A.8 Provider Built-in and Server-Side Tools
OpenAI-compatible endpoint

A non-OpenAI server that accepts the Chat Completions (and sometimes Responses) format.

Introduced in 03.1 The Provider APIs and Your First Calls
OpenAI-compatible surface

The de-facto API shape (/v1/chat/completions, /v1/models, etc.) shared by hosted providers, Ollama, vLLM, llama-server, LM Studio, and managed open-model hosts — an adapter boundary enabling base_url portability, not a feature-parity guarantee.

Introduced in 11C.6 Open-Weight and Local Models
OpenAPI

The standard language-neutral format (JSON or YAML) for describing a REST API's endpoints, schemas and auth.

Introduced in 00.8 Reading API Documentation
OpenInference

Arize's semantic conventions + openinference-instrumentation-* packages (Apache-2.0) for Phoenix/AX.

Introduced in 11A.1 Tracing and Observability for LLM Applications
`openinference.span.kind`

OpenInference's attribute for the kind of step (LLM, TOOL, AGENT, RETRIEVER and others)

Introduced in 11A.1 Tracing and Observability for LLM Applications
OpenLLMetry / traceloop-sdk

Traceloop's OTel-based instrumentation set + decorators (Apache-2.0, v0.62.4).

Introduced in 11A.1 Tracing and Observability for LLM Applications
OpenMetrics

The Prometheus exposition format that supports exemplars and native histograms.

Introduced in 11A.2 Metrics, Dashboards, SLOs and Alerting
OpenRouter

A unified, OpenAI-compatible gateway to hundreds of models, which routes each request to one of the hosts serving the chosen model and passes provider prices through.

Introduced in 02.9 Model Landscape
OpenSSF Model Signing (OMS)

An implementation-agnostic specification for cryptographically signing a whole model bundle — weights, configuration and tokenizer — as one manifest of file hashes under a single signature, carried in the Sigstore bundle format; implemented by Sigstore's model-signing tooling and used by signed registries such as NVIDIA NGC.

Introduced in 12.7 Securing RAG Data, Keys and the AI Supply Chain
OpenTelemetry GenAI semantic conventions

A standard set of span attribute names (gen_ai.*) for describing LLM calls; prompt and reply content attributes are opt-in, and the conventions were still in "development" status as of November 2026.

Introduced in 03.10 Logging, Debugging and Testing LLM Code
Operating cadence

The recurring schedule of reviews (weekly → quarterly) that keeps governance alive after launch.

Introduced in 11C.4 Operating LLM Systems: Governance, Incidents and the Production Checklist
Operating system (OS)

Software that owns the hardware and runs all other programs: macOS, Windows, Linux.

Introduced in 00.1 Setting Up Your Computer for Development
operations layer

Infrastructure such as runners, deployment, monitoring and asset inventory that makes eval execution repeatable at scale.

Introduced in 10B.16 Evaluating Agents with Inspect, and the Inspect Ecosystem (optional)
Operator

Symbol for an operation (+, ==, in, and, :=...).

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
Operator precedence

Which operation binds first (** > *// > +/- > comparisons > not > and > or).

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
Operator stop

A sample limit of type operator, caused by approver termination, reviewer termination or operator cancellation.

Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)
operator.itemgetter / attrgetter

C-speed key functions: pluck index/key or attribute.

Introduced in 01A.5 Comprehensions, Iterators and Generators
Opinion extraction

The first step of DeepEval's Bias and Toxicity metrics, which keeps only the opinions in an output and ignores factual claims and cited opinions, so bias stated as fact is never judged.

Introduced in 10B.4 DeepEval's Built-in Metrics, Opened Up: RAG, Safety, Conversations and More
Opt-in attribute

An attribute that is off by default, used for sensitive content such as prompts and tool arguments

Introduced in 11A.1 Tracing and Observability for LLM Applications
Optimising against the judge

Tuning prompts or models to maximise a judge score until the judge's quirks, not user value, drive the gains (Goodhart's law applied to judges).

Introduced in 10A.4 LLM-as-Judge
Optimistic / pessimistic concurrency

Detect and retry conflicts versus lock to prevent them.

Introduced in 01C.3 Race Conditions and Thread Safety
Optimistic concurrency

Saving only if a version number is unchanged; otherwise reject and retry

Introduced in 08B.1 Kinds of State and Session Management
Optimistic UI

Show the expected result before confirmation (wrong for LLM output).

Introduced in 13A.2 AI UX I: Streaming, Latency and Perceived Speed
Optimizer

The algorithm that turns gradients into weight updates, such as SGD, Adam or AdamW.

Introduced in 02.1 Neural Network Basics
Optimizer (SGD, Adam, AdamW)

The algorithm that turns gradients into weight updates, such as SGD, Adam or AdamW.

Introduced in 02.1 Neural Network Basics
Optional / Union

Legacy spellings of X | None / X | Y — read them, don't write them.

Introduced in 01A.10 Type Hints and Writing Readable Code
Optional dependency / extra

A [project.optional-dependencies] set shipped for consumers (uvicorn[standard]).

Introduced in 01B.1 Project Setup with uv: Environments, Dependencies and Tooling
Optional extra

A named bundle of extra dependencies (deepeval[inspect], inspect-ai[math]) that you install explicitly

Introduced in 10B.1 The Eval Framework Track: DeepEval, Inspect AI and Your Setup
Oracle

The function that decides whether an attack succeeded — canary/token, regex, forbidden-action, classifier, LLM-judge or state check.

Introduced in 12.8 Red Teaming and Security Testing
Oracle assembly

Feeding the generator the full retrieved hit list with trim/dedup/token-budget bypassed, to isolate context-assembly losses from retrieval misses.

Introduced in 10A.6 Evaluating RAG Pipelines in Depth
Oracle bound

The best possible per-case model assignment under a quality floor — the ceiling for any router.

Introduced in 11B.5 Model Selection and Routing
Oracle memory

An evaluation condition that injects exactly the gold memories for a probe, isolating the "use" stage: if the answer is still wrong, the problem is the prompt or model, not memory.

Introduced in 10A.11 Evaluating Agent Memory and Context Management
Oracle query

Re-running retrieval on the raw user question instead of the pipeline's rewritten/planned query, to measure the query-understanding stage's net contribution to retrieval quality.

Introduced in 10A.6 Evaluating RAG Pipelines in Depth
Oracle retrieval / oracle context

Feeding the generator the gold chunks regardless of what retrieval returned — isolates generation from retrieval.

Introduced in 10A.6 Evaluating RAG Pipelines in Depth
Oracle run

Feeding each case's reference answer through the scorers to prove the case is solvable and the scorers accept a correct answer. *(Introduced in [lesson 10A.2](10a-evaluation-foundations/02-building-eval-datasets.md#35-checking-that-a-case-is-answerable-and-its-label-is-right))* A *null run* is the opposite control: a model that always gives nonsense, which should score 0, proving the scorers can reach both ends; Inspect runs both ([10B.8, 10.2](10b-eval-frameworks/08-inspect-fundamentals.md#102-controls-oracle-and-null-runs)). *(Extended in [lesson 10B.8](10b-eval-frameworks/08-inspect-fundamentals.md#102-controls-oracle-and-null-runs))*

Oracle-context test

Handing the model the known-relevant chunk to decide whether retrieval or generation is the bottleneck.

Introduced in 07.1 RAG Architecture: From Question to Grounded Answer
Orchestration

The layer that decides the shape of the answer: one call, a workflow, or an agent loop.

Introduced in 13A.5 Architecture Patterns for AI Applications
Orchestrator

The layer scheduling runs, retrying failures and recording history (Prefect/Dagster/Airflow/Temporal).

Introduced in 05.9 Ingestion Pipelines and Incremental Updates
Orchestrator-workers

A workflow where a planner call decomposes the task at runtime, bounded workers execute subtasks in parallel, and a synthesizer merges results.

Introduced in 08A.9 Workflows vs Agents
Orchestrator–subagents

An architecture where a lead agent plans, delegates to parallel workers and synthesises their condensed results.

Introduced in 08D.3 Multi-Agent Systems
Order preservation

Matching result *i* to input *i* via explicit index/custom_id, never position assumptions.

Introduced in 06.2 Embedding Pipelines: Batching, Caching, Scale and Cost
Order sensitivity

The same few-shot examples in different orders producing different accuracy (Lu et al. 2022).

Introduced in 04.2 Zero-Shot, Few-Shot and Examples
OrderedDict

Dict with an order guarantee plus move_to_end; mostly superseded by dict.

Introduced in 01A.4 Core Data Structures: Lists, Tuples, Dictionaries and Sets
Ori Eval

OpenRouter's agent-driven eval product: *.eval.ts files run with bun test, pinning harness and model per run.

Introduced in 10A.10 Evaluation Platforms, Benchmarks and Building an Eval Culture
Origin / remote

A named pointer to another repository you fetch/push (taught fully in 00.4).

Introduced in 00.3 Git Fundamentals
ORM

Object-relational mapper emitting SQL from Python objects.

Introduced in 00.7 SQL Basics with SQLite
Orphan agent

An agent whose owner is gone or whose review is overdue, but whose access still works

Introduced in 14A.6 Agent Inventory, Risk and Autonomy Classification, and Policy-as-Code
Orphan record

An index entry whose source document no longer exists — a deletion-propagation failure.

Introduced in 05.10 Data Quality Checks
os.environ

Python's mutable mapping onto the process environment.

Introduced in 01B.2 Environment Variables, Configuration and Secrets
Oscillation

A draft repeating an earlier draft, so the loop is going in circles

Introduced in 08A.11 Reflection, Parallel Fan-Out and Agent-as-a-Tool
OSD (orientation and script detection)

Tesseract's page-rotation/script detection (image_to_osd, osd.traineddata).

Introduced in 05.4 OCR and Scanned Documents
OTel GenAI semantic conventions

OpenTelemetry's (Development-status) attribute/span names for LLM and agent telemetry.

Introduced in 08A.14 Reliable, Safe and Observable Agents
`OTEL_INSTRUMENTATION_GENAI_CAPTURE_CONTENT`

The variable named by the conventions for choosing whether content goes on spans, events, both or neither

Introduced in 11A.1 Tracing and Observability for LLM Applications
OTLP

OpenTelemetry Protocol — the HTTP(:4318)/gRPC(:4317) wire format exporters use to ship spans to a collector or backend.

Introduced in 11A.1 Tracing and Observability for LLM Applications
Out-of-band buffer

Pickle protocol 5 (PEP 574) feature that hands large buffers over separately from the pickle stream.

Introduced in 01C.7 Shared Memory and Inter-Process Communication
Outcome check

Classifying a reply as ok, refused, blocked, truncated or invalid from the provider's finish signals before parsing it.

Introduced in 03.4 Structured Output
Outcome eval

Outcome evals grade whether the environment reached the correct end state; trajectory evals grade whether the agent's path was acceptable (right tools, no forbidden calls, within budget).

Introduced in 08A.14 Reliable, Safe and Observable Agents
Outcome grader

A grader inspecting the world's end-state rather than the path taken.

Introduced in 10A.7 Evaluating Agents, Tool Use and Multimodal Systems
Outcome reward vs process reward

See [Outcome vs process reward](#outcome-vs-process-reward).

Outcome taxonomy

The classification of call results: ok, refused, blocked, truncated, invalid, failed, abandoned, other.

Introduced in 11A.2 Metrics, Dashboards, SLOs and Alerting
Outcome vs error

The distinction between a typed task-level result inside a successful response (completed, refused, insufficient_evidence) and a transport/request failure carried by HTTP error status.

Introduced in 13A.5 Architecture Patterns for AI Applications
Outcome vs process reward

A reward for the final answer only vs a reward for each intermediate reasoning step.

Introduced in 02.6 How LLMs Are Trained
Outcome-based pricing

Charging per verified result (resolved ticket, extracted field) rather than per use; aligns incentives but invites Goodhart and needs verification.

Introduced in 13A.6 Product Metrics, Experiments and Unit Economics
Outline / bookmarks

The clickable table-of-contents tree inside a PDF sidebar, a nested list of titles with page destinations.

Introduced in 05.2 Parsing PDFs
Output contract

The exact shape and parseability guarantees your code expects back from the model — prose, tags, JSON, or schema-constrained output — and how it will be parsed and validated.

Introduced in 04.8 Prompt Patterns for Common Tasks
Output drift

Change in answer style/format/refusal even on same inputs.

Introduced in 10A.9 Offline vs Online Evaluation
Output filter

A handoff filter controlling what the specialist's work contributes back to shared history.

Introduced in 10B.14 Tools and Agents in Inspect: Custom Tools, MCP, react() and Multi-Agent Systems (optional)
Output indicator

The part of a prompt (for example Sentiment:) that signals the type or start of the answer.

Introduced in 04.11 Named Prompting Techniques: A Field Guide
Output item

One typed element of an OpenAI Responses output list, such as message, reasoning, function_call or compaction.

Introduced in 03.2 Messages, Roles and Conversation State
Output mode (Pydantic AI)

The mechanism Pydantic AI uses for structured output: a tool (ToolOutput, the default), the provider's native feature (NativeOutput), or the prompt (PromptedOutput).

Introduced in 03.4 Structured Output
Output parser

A Runnable that turns a model reply into a Python value (StrOutputParser, JsonOutputParser, PydanticOutputParser, list and XML parsers).

Introduced in 08F.6 Prompts, Output Parsers and Structured Output
Output schema

The declared shape of a tool's result, checked before the model sees it

Introduced in 08A.7 Tool Safety in the Loop: Idempotency, Validation and Truncation
Output speed

Tokens per second generated after the first token.

Introduced in 02.9 Model Landscape
Output tokens / completion tokens

All tokens the model generates in a response, including hidden reasoning tokens. Also called completion tokens.

Introduced in 02.7 Context Windows
Output-use restriction

Terms limiting what you may do with a model's outputs, such as training competing models.

Introduced in 02.9 Model Landscape
Output/input ratio

The price of an output token divided by the price of an input token (typically 4 to 6).

Introduced in 11B.2 Tokenomics: The Unit Economics of LLM Applications
output_audio_buffer.clear

Realtime event dropping unplayed output audio (and truncating context) on WebRTC/SIP.

Introduced in 09.7 Realtime Voice Agents
output_keys

A stream option that limits streamed channels to chosen state keys.

Introduced in 08F.14 The Functional API and Streaming
output_modalities

Realtime session field choosing audio-only or text-only output per response.

Introduced in 09.7 Realtime Voice Agents
output_type / deps_type / RunContext

Pydantic AI's typed output, dependency injection, and per-run context object.

Introduced in 08F.1 Agent Frameworks and SDKs
output_version

"v0" (provider format) or "v1" (standard blocks stored in content); set on the model or with LC_OUTPUT_VERSION.

Introduced in 08F.5 Chat Models, Messages and Content Blocks
OutputFixingParser / RetryOutputParser

Legacy langchain-classic parsers that ask a model to repair malformed output.

Introduced in 08F.6 Prompts, Output Parsers and Structured Output
OutputParserException

The exception parsers raise; carries llm_output and send_to_llm for repair tools.

Introduced in 08F.6 Prompts, Output Parsers and Structured Output
Outside system

The one external service the agent reads from and writes to (here, a ticket tool)

Introduced in 13B.4 Capstone Build D: a Tool-Using or Two-Agent App with One Outside System
Over-chaining

Splitting one task into a chain of model calls that a single call could do, multiplying cost, latency and failure points.

Introduced in 08F.15 Patterns, Pitfalls and Migration
Over-copying / anchoring

The model reproducing example wording, length or structure in its answers.

Introduced in 04.2 Zero-Shot, Few-Shot and Examples
Over-personalisation

An agent using a user's stored personal information where it is irrelevant, repetitive or sycophantic; a precision failure measured on unrelated probes.

Introduced in 10A.11 Evaluating Agent Memory and Context Management
Over-refusal

A model refusing or lecturing on harmless requests because safety training generalized too broadly.

Introduced in 02.6 How LLMs Are Trained
Over-refusal rate

The fraction of benign inputs a system wrongly refuses or fails to handle; reported alongside ASR so defences aren't "fixed" by breaking the product.

Introduced in 12.8 Red Teaming and Security Testing
Over-reservation

Money locked by a pessimistic estimate until the call settles

Introduced in 11B.6 Budgets, Quotas, Cost Attribution and Chargeback
over-retrieval

Fetching more candidates than you will keep, then trimming late — cheap recall insurance.

Introduced in 07.2 Retrieval Strategies for RAG
Over-training

Deliberately training a model on far more tokens than compute-optimal, producing a smaller model that's cheaper and faster to run.

Introduced in 02.6 How LLMs Are Trained
Over-trust / misuse

Users accept output without checking because they trust it too much (automation bias).

Introduced in 13A.3 AI UX II: Trust, Transparency, Feedback and Human-in-the-Loop
Over-writing / under-writing

Storing what should not be stored (transient state, chit-chat, guesses as facts) / failing to store a durable fact.

Introduced in 10A.11 Evaluating Agent Memory and Context Management
Overall Evaluation Criterion

Experimentation literature's name for the primary decision metric (Kohavi, Tang, Xu).

Introduced in 13A.6 Product Metrics, Experiments and Unit Economics
Overfitting / memorization

When a model learns the noise and specific examples in its training data instead of the general pattern. It does well on training data and worse on new data.

Introduced in 02.1 Neural Network Basics
Overlap

Units repeated at a chunk boundary so straddling text survives whole.

Introduced in 05.6 Chunking Strategies
overlap coefficient

|A∩B| / min(|A|,|B|) on token sets — the near-duplicate similarity used by dedupe_hits.

Introduced in 07.2 Retrieval Strategies for RAG
Oversample-and-rescore

Using a cheap quantized/binary index to fetch extra candidates, then re-ranking them with full-precision vectors.

Introduced in 06.2 Embedding Pipelines: Batching, Caching, Scale and Cost
Oversampling

Retrieving factor × k candidates with a cheap index before rescoring.

Introduced in 06.4 Vector Indexes: HNSW, IVF, Quantization and Trade-offs
Oversampling and rescoring

Retrieving factor × k candidates with a cheap compressed index, then re-scoring them with full-precision vectors.

Introduced in 06.4 Vector Indexes: HNSW, IVF, Quantization and Trade-offs
Overshoot

Spend beyond a limit caused by the call that crossed it

Introduced in 08A.3 Loop Control, Budgets and Stagnation Detection in the Raw Loop
Oversized-image setting (oversized_image)

An Anthropic image-block option (transformations: {"oversized_image": "error"}) that turns silent downscaling of a too-large image into a 400 error.

Introduced in 03.6 Images, PDFs and Files
Oversubscription

More runnable CPU-hungry threads than cores, causing extra switching.

Introduced in 01C.1 Concurrency, Parallelism and Context Switching
Overthinking

Spending excessive reasoning on easy problems, wasting tokens and sometimes lowering accuracy.

Introduced in 02.8 Reasoning Models
Overwrite

A wrapper that bypasses a key's reducer so a write replaces the value.

Introduced in 08F.10 LangGraph Fundamentals
OWASP

The Open Worldwide Application Security Project, a nonprofit publishing free security guidance

Introduced in 12.8 Red Teaming and Security Testing
OWASP Agent Control Standard (ACS)

OWASP's emerging runtime-control contract for agents: hooks + a Guardian returning allow/deny/modify/ask/defer dispositions (current release v0.1.4, Sept 2026).

Introduced in 12.1 Threat Modelling LLM Applications
OWASP Top 10 for Agentic Applications

The sibling catalogue for agent-specific risks (goal hijack, tool misuse, memory poisoning, rogue agents...).

Introduced in 12.1 Threat Modelling LLM Applications
OWASP Top 10 for LLM Applications

The community-standard catalogue of critical LLM-app security risks (2026 edition current as of November 2026).

Introduced in 12.1 Threat Modelling LLM Applications
Ownership / sudo

File owner+group; sudo runs a command as root.

Introduced in 00.2 The Terminal and Shell

P

.pth file

A text file in site-packages whose import lines Python executes at every interpreter start — a legitimate packaging feature that both 2026 LiteLLM payloads abused, so uninstalling the package may not remove it.

Introduced in 12.7 Securing RAG Data, Keys and the AI Supply Chain
.python-version

The file pinning which interpreter uv prefers for a project.

Introduced in 01B.1 Project Setup with uv: Environments, Dependencies and Tooling
@property

Turns a method into attribute access; getter/setter pairs enable validation.

Introduced in 01A.6 Classes, Dataclasses and Enums
__post_init__

Hook run at the end of generated __init__ — for validation.

Introduced in 01A.6 Classes, Dataclasses and Enums
__pycache__ / .pyc

The on-disk bytecode cache: Python compiles each imported .py to a .pyc under __pycache__/ (tagged per interpreter version) and reuses it while the source's timestamp and size match.

Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Library
p95 cost

The cost under which 95% of tasks fall; shows the loop tail that the mean hides

Introduced in 11B.8 The Cost of Agents and Long Contexts, Prompt Caching per Provider, and the Cost of Running Evals
PaaS / FaaS / VM

Managed app platform / per-request functions / rented virtual machine.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Package

A directory of modules, conventionally marked by an __init__.py file that runs on first import and can re-export the public API.

Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Library
Package hallucination / slopsquatting

An LLM suggesting software packages that don't exist; slopsquatting is attackers registering those predictable names with malicious code.

Introduced in 02.10 Limitations and Failure Modes
Package manager

Software that installs, updates and removes packages: Homebrew, winget, apt/dnf/pacman, uv (for Python).

Introduced in 00.1 Setting Up Your Computer for Development
Padding / attention mask

Filler tokens that make batched sequences equal length, and the mask telling the model to ignore them.

Introduced in 02.2 Tokens and Tokenization
Padding and attention mask

See [Padding / attention mask](#padding--attention-mask).

Page cache

Kernel-managed RAM holding file pages; memory-mapped files share these pages among processes.

Introduced in 01C.7 Shared Memory and Inter-Process Communication
Page images

Rendering PDF pages to PNG/JPEG yourself and sending them as ordinary images.

Introduced in 09.2 Document Understanding with Vision Models
Page-description format

A file format that stores how to paint each page (glyph positions, fonts, vector ops) rather than document structure; structure must be reconstructed by a parser.

Introduced in 05.2 Parsing PDFs
Page-image RAG

Answering questions by retrieving page images and reading them with a VLM, no OCR required.

Introduced in 09.9 Multimodal Embeddings and Retrieval
Page-role classification

Labelling each page (header / line_items / totals) to route extraction.

Introduced in 09.2 Document Understanding with Vision Models
PagedAttention

VLLM's technique of storing the KV cache in fixed-size blocks.

Introduced in 02.4 Attention and Transformers
Pagination cursor

Opaque cursor/nextCursor token for list operations.

Introduced in 08E.1 The Model Context Protocol (MCP)
PAIR / TAP

Automated jailbreak algorithms: an attacker LLM iteratively refines prompts (PAIR) or searches a tree with pruning (TAP) against a black-box target.

Introduced in 12.3 Jailbreaks and Model-Level Safety
Paired comparison

Comparing two prompt versions on the same cases, which controls for case difficulty and is far more sensitive than comparing independent averages.

Introduced in 04.9 Iterating, Debugging and Porting Prompts
Paired continuation

Continuing a task from the same state once with the full history and once with a compacted one, and comparing success, steps and tokens per completed task.

Introduced in 10A.11 Evaluating Agent Memory and Context Management
Pairing / mobbing

Two people (or the whole team) working one problem together, one keyboard.

Introduced in 14B.9 Your First 90 Days and Long-Term Growth
Pairwise judge

A judge design that compares two outputs and returns a winner/tie; requires order-swapping to control position bias.

Introduced in 10A.4 LLM-as-Judge
Pairwise judging

Comparing two outputs directly ("which is better?") instead of scoring each absolutely; more reliable but needs bias mitigation.

Introduced in 04.8 Prompt Patterns for Common Tasks
PAL

Program-Aided Language models: the model writes code as its reasoning and an interpreter runs it.

Introduced in 04.11 Named Prompting Techniques: A Field Guide
Pandoc / MarkItDown / Docling / Unstructured / Tika

Universal document converters / front doors.

Introduced in 05.3 Parsing HTML, Web Pages and Office Files
Parallel cold start

A burst of requests at a prefix that isn't cached yet. A cache entry exists only once the first response starts, so each request writes (and pays for) its own copy.

Introduced in 03.7 Token Counting, Cost Tracking and Prompt Caching
Parallel tool calls

Several tool calls in a single model response; your code may run them concurrently and returns every result, matched by ID.

Introduced in 03.5 Tool Calling: The API Mechanics
`parallel` tool execution

Per-tool opt-in that lets independent calls in one assistant turn execute concurrently.

Introduced in 10B.14 Tools and Agents in Inspect: Custom Tools, MCP, react() and Multi-Agent Systems (optional)
Parallelism

Several computations literally executing at the same instant on different cores or machines.

Introduced in 01C.1 Concurrency, Parallelism and Context Switching
Parameter vs argument

Names in def / values passed at call.

Introduced in 01A.3 Control Flow and Functions
Parameter-efficient fine-tuning (PEFT)

Fine-tuning methods that train only a small number of new or selected parameters instead of every weight, cutting memory and cost.

Introduced in 02.1 Neural Network Basics
Parameterised query

SQL text plus separately-bound values vs attacker-rewritten SQL strings.

Introduced in 00.7 SQL Basics with SQLite
Parameters

All the weights and biases of a model: everything it learned. Model size ("8B") counts parameters.

Introduced in 02.1 Neural Network Basics
Parametric leakage

The model answering from its weights instead of retrieved context.

Introduced in 07.4 Grounded Generation: Prompts, Context Assembly and Abstention
Parametric vs non-parametric memory

Knowledge stored in a model's weights (frozen at training) versus knowledge held in an external store retrieved at query time. RAG supplies non-parametric memory.

Introduced in 07.1 RAG Architecture: From Question to Grounded Answer
Parametrise

@pytest.mark.parametrize runs one test body once per row of a table.

Introduced in 01B.8 Testing with pytest
Parent and child span

A span that contains another is its parent; nesting shows which step ran inside which

Introduced in 03.12 Minimal Tracing: See What Your First LLM App Did
Parent-child chunking

Splitting a document into small child chunks for retrieval and larger parent chunks returned to the generator, linked by parent_id.

Introduced in 05.7 Advanced and Document-Specific Chunking
ParentDocumentRetriever

A classic retriever that matches small child chunks and returns their larger parent chunk.

Introduced in 08F.9 RAG with LangChain
Pareto archive

GEPA's set of non-dominated candidate prompts, each scored on a small set of examples, from which the final prompt is chosen.

Introduced in 10B.7 DeepEval in Production: Red Teaming, CI/CD, Prompt Optimization and Confident AI
Pareto frontier

The set of options that no other option beats on all measured criteria at once, for example quality and cost.

Introduced in 02.8 Reasoning Models
Parity test

A test that feeds the same scripted model replies to old and new code and compares trajectory and what the model saw.

Introduced in 08F.15 Patterns, Pitfalls and Migration
Parity test (eval)

Running the same cases through two harnesses and diffing the per-case verdicts before comparing aggregates.

Introduced in 10B.1 The Eval Framework Track: DeepEval, Inspect AI and Your Setup
Parquet

Columnar, typed, compressed table format; needs pyarrow in pandas.

Introduced in 01B.11 NumPy and pandas Essentials for AI Work
Parse

The ATS step that extracts structured fields (employers, dates, skills) from your résumé text.

Introduced in 14B.5 Résumé, LinkedIn and the Job Search
Parse helper

An SDK method such as responses.parse, chat.completions.parse or messages.parse that builds the schema from a Pydantic model, sends it, and returns a parsed object.

Introduced in 03.4 Structured Output
Parse rate / pass rate

The two headline metrics of the test loop: valid outputs vs fully correct ones.

Introduced in 04.1 Anatomy of a Good Prompt
parse_float / parse_int / parse_constant

json.loads hook invoked for the non-standard NaN/Infinity/-Infinity literals.

Introduced in 01A.9 Files, Paths, JSON and CSV
ParsedDocument

The canonical parse-output model defined in this lesson: pages containing text blocks, tables, images and links, plus parse provenance.

Introduced in 05.2 Parsing PDFs
parser registry

Dispatch table mapping detected file type → parser + limits.

Introduced in 05.3 Parsing HTML, Web Pages and Office Files
Parser regression test

Re-extracting golden docs and comparing similarity to catch parser breakage.

Introduced in 05.10 Data Quality Checks
Parser-then-LLM

Parsing the PDF to text/markdown first, then sending the text to the model.

Introduced in 09.2 Document Understanding with Vision Models
Parsing error

A recoverable tool-call failure caused by bad arguments, an unknown tool or schema mismatch.

Introduced in 10B.14 Tools and Agents in Inspect: Custom Tools, MCP, react() and Multi-Agent Systems (optional)
Parsing report

Camelot's per-table quality metrics (accuracy, whitespace, confidence) used to accept or reject an extraction.

Introduced in 05.2 Parsing PDFs
Partial / covering index

Index on a row subset / including all needed columns.

Introduced in 00.7 SQL Basics with SQLite
Partial failure

A batch (or concurrent run) in which some requests succeeded and some failed.

Introduced in 03.9 Async, Concurrency and Batch Processing
Partial image

A progressive low-quality render streamed mid-generation (+100 tokens each on OpenAI).

Introduced in 09.3 Image Generation and Editing
Partial JSON parsing

Turning an incomplete JSON prefix into a best-effort object, to preview streamed structured output or tool arguments.

Introduced in 03.3 Streaming Responses
Partial object

A best-effort object built from the incomplete JSON prefix of a streamed structured answer; only its settled fields are safe to use.

Introduced in 03.4 Structured Output
Partial result

The output of a stopped run: status, reason, findings, spend and a flag saying it is incomplete

Introduced in 08A.3 Loop Control, Budgets and Stagnation Detection in the Raw Loop
Partial validation

Experimental experimental_allow_partial on TypeAdapter.validate_* for incomplete JSON prefixes (v2.10+).

Introduced in 01B.6 Data Validation with Pydantic
Partner package

A provider integration package maintained as its own PyPI package, such as langchain-openai or langchain-anthropic.

Introduced in 08F.4 The LangChain Ecosystem and Your Setup
PASS label (red-team console)

The status DeepEval's red-team overview prints per vulnerability type and attack: PASS for a pass rate of 0.8 or more, WARNING from 0.5, FAIL below; a fixed display convention, not a gate.

Introduced in 10B.7 DeepEval in Production: Red Teaming, CI/CD, Prompt Optimization and Confident AI
Pass rule

The thresholds, written before a comparison, that decide whether a change ships

Introduced in 08D.2 Hands-On: Two-Agent vs Single-Agent, Built, Traced and Evaluated
pass@k / pass^k

Evaluation metrics: the task succeeds at least once in k tries (pass@k), or succeeds in every one of k tries (pass^k).

Introduced in 02.10 Limitations and Failure Modes
Passage

One retrieved chunk formatted as a self-describing <passage> block with id/doc/section/date/kind attributes.

Introduced in 07.4 Grounded Generation: Prompts, Context Assembly and Abstention
Passive vs active expiry

Hiding an expired record when it is read vs actively scanning and deleting expired records

Introduced in 08B.5 Memory Failure Modes, Context Rot, Production State Stores and AGENTS.md-style Files
Passkey

A phishing-resistant credential stored on your device, used instead of or alongside a password.

Introduced in 00.1 Setting Up Your Computer for Development
Password hash / salt / work factor

One-way slow KDF output + per-password random salt + tuned cost; Argon2id/scrypt/bcrypt/PBKDF2.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Password manager

An app that generates and stores unique passwords behind one master password.

Introduced in 00.1 Setting Up Your Computer for Development
Patch / visual token

A small square of pixels (32×32 on OpenAI's patch-based models, 28×28 on Claude) that a vision encoder turns into one unit of image input; image cost grows with the number of patches.

Introduced in 03.6 Images, PDFs and Files
PATH

An environment variable listing the folders the shell searches for commands; "on the PATH" means findable.

Introduced in 00.1 Setting Up Your Computer for Development
Path operation

A function decorated with @app.get/post/… that handles one HTTP method on one path.

Introduced in 01B.7 FastAPI Basics: Building a Small API
Path traversal

../ escape from an intended root; defended by resolve() + is_relative_to().

Introduced in 01A.9 Files, Paths, JSON and CSV
pathlib.Path

Object-oriented filesystem path: join parts with /, inspect via .name/.stem/.suffix/.parent/.parts, navigate with iterdir/glob/rglob.

Introduced in 01A.9 Files, Paths, JSON and CSV
paths / components / securitySchemes

The OpenAPI keys holding endpoints, reusable schemas, and auth definitions.

Introduced in 00.8 Reading API Documentation
Pattern / guard / wildcard

A case shape / an extra if on a match / case _ catch-all.

Introduced in 01A.3 Control Flow and Functions
Pattern card

The standard template for documenting a prompt pattern: goal, use/skip conditions, the full prompt, I/O example, output contract, provider notes, pitfalls, cost notes and a one-line test.

Introduced in 04.8 Prompt Patterns for Common Tasks
pause_turn

Anthropic stop reason: the server-side tool loop hit its iteration limit; send the response back unchanged, with the same tools, to continue.

Introduced in 03.5 Tool Calling: The API Mechanics
Pay-transparency posting

A job ad that legally must state a salary range (increasingly common in the EU and some US states).

Introduced in 14B.5 Résumé, LinkedIn and the Job Search
Payload / metadata

Non-vector fields stored alongside each vector (tenant, dates, ACLs, doc type) — designed in [05.8](05-data-engineering-for-ai/08-metadata-design.md), queried here.

Introduced in 06.6 Filtering, Metadata and Multi-Tenant Search
Payload index

An optional secondary index on a Qdrant payload (metadata) field, created with create_payload_index, that makes filtered queries fast.

Introduced in 06.5 Vector Databases: Choosing and Using One
payload_seen

The handoff payload as the receiver actually saw it, after any input filter or summary.

Introduced in 10A.12 Evaluating Multi-Agent Systems and Validating User Simulators
PBKDF2

Password KDFs; OWASP order: Argon2id, scrypt, bcrypt (legacy), PBKDF2-HMAC-SHA256 ≥600k (FIPS).

Introduced in 00.5 How Web Apps Work: Client, Server and Database
PCA

Principal component analysis: projecting vectors onto their most informative directions, for example to plot them in 2D.

Introduced in 02.3 Embeddings
PCM

Raw, uncompressed audio as a sequence of sample numbers — the format WAV stores.

Introduced in 09.4 Speech-to-Text
pdb / breakpoint()

Python's built-in debugger and the call that drops you into it at that line; commands include next, step, continue, p expr, where. *(Introduced in [lesson 00.9](00-developer-foundations/09-working-like-an-engineer.md#27-print-debugging-vs-a-real-debugger))* Also invoked as python -m pdb script.py; taught in depth in lesson 01A.8, including breakpoint() and post-mortem use. *(Extended in [lesson 01A.8](01a-python-essentials/08-errors-debugging-and-logging.md#62-breakpoint-and-pdb))*

pdfplumber geometry objects

Per-page inspectable objects exposed by pdfplumber: chars, lines, rects, curves, images and annots, each with coordinates.

Introduced in 05.2 Parsing PDFs
Peak factor

The assumed ratio between peak and average traffic used in capacity and concurrency estimates.

Introduced in 14B.7 Interview Prep II: LLM System Design
Peeking problem

Inflated false positives from monitoring an experiment continuously.

Introduced in 10A.9 Offline vs Online Evaluation
PEFT / LoRA / QLoRA

LoRA applied on top of a 4-bit quantized base model, so large models can be fine-tuned on a single GPU.

Introduced in 02.1 Neural Network Basics
penalize_ambiguous_claims

The DeepEval Faithfulness option that makes unsupported claims fail; without it the metric fails only claims that contradict the retrieved context.

Introduced in 10B.4 DeepEval's Built-in Metrics, Opened Up: RAG, Safety, Conversations and More
Pending clarification

Derived session state (last turn's route == "clarify") marking an open slot the next user message should fill.

Introduced in 07.6 Conversational RAG
Pending writes

The writes of tasks that finished in a super-step that did not complete, saved so a resume does not re-run them.

Introduced in 08F.11 Persistence, Durable Execution and Memory
PEP 440

The version-specifier spec (==, >=, ~=, !=, markers).

Introduced in 01B.1 Project Setup with uv: Environments, Dependencies and Tooling
PEP 442

Python 3.4 change that lets cycles containing objects with __del__ be collected and runs each finalizer at most once.

Introduced in 01C.6 Python Memory Management
PEP 508

The requirement-string format used in dependencies (name[extra]>=1.0; marker).

Introduced in 01B.1 Project Setup with uv: Environments, Dependencies and Tooling
PEP 621

The standard that defined [project] metadata in pyproject.toml.

Introduced in 01B.1 Project Setup with uv: Environments, Dependencies and Tooling
PEP 695 syntax

def f[T](...) / class C[T] — bracket type parameters, Python 3.12+.

Introduced in 01A.10 Type Hints and Writing Readable Code
PEP 723

Inline script metadata: a # /// script TOML block declaring a single file's dependencies.

Introduced in 01B.1 Project Setup with uv: Environments, Dependencies and Tooling
PEP 735

The standard for [dependency-groups] — named dependency sets like dev.

Introduced in 01B.1 Project Setup with uv: Environments, Dependencies and Tooling
PEP 751 (pylock.toml)

The standard lockfile format uv can also export.

Introduced in 01B.1 Project Setup with uv: Environments, Dependencies and Tooling
PEP 8

The Python style guide: 4-space indents, naming conventions, layout rules.

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
Per-image vs per-token pricing

The two billing shapes: fixed unit price vs token-metered output.

Introduced in 09.3 Image Generation and Editing
Per-model prompt variant

A prompt text tuned for a specific model family within a route, versioned with the model.

Introduced in 11B.5 Model Selection and Routing
Per-outcome price

A price charged per successful result (for example a resolved conversation) rather than per seat or token.

Introduced in 11B.2 Tokenomics: The Unit Economics of LLM Applications
Per-query adaptive threshold

A threshold relative to each query's own score distribution (e.g. fraction of top score or median+β·MAD) rather than one global cut-off.

Introduced in 06.3 Similarity Metrics and Nearest-Neighbour Search
Per-run budget

A limit on one execution of one loop (steps, tokens, money, time)

Introduced in 08A.3 Loop Control, Budgets and Stagnation Detection in the Raw Loop
Per-source quota

A cap on how much of the context budget any one source type may consume.

Introduced in 04.6 Context Engineering: Selecting and Ordering Context
Per-stage cost ledger

Per-request accounting that attributes token and compute usage to each pipeline stage so the cost of one answer is answerable.

Introduced in 07.11 Production RAG: Security, Freshness, Cost and Operations
Per-step growth

The tokens each step adds to the transcript (tool result plus model output)

Introduced in 11B.8 The Cost of Agents and Long Contexts, Prompt Caching per Provider, and the Cost of Running Evals
Per-subject canary

A unique, unguessable value planted as one user's private fact, so that its appearance on any surface another user can see proves a leak and identifies whose data reached whom.

Introduced in 10A.11 Evaluating Agent Memory and Context Management
Per-tenant budget

A daily spend limit per tenant, fed by the cost ledger and checked before each request runs (4.10).

Introduced in 07.11 Production RAG: Security, Freshness, Cost and Operations
Per-tenant credential

A downstream credential shared by a tenant or team (a service account)

Introduced in 08E.3 Remote MCP: OAuth, Gateways and Many Servers
Per-tool timeout

A limit on one tool call; a timeout becomes an error result

Introduced in 08A.3 Loop Control, Budgets and Stagnation Detection in the Raw Loop
Per-user (delegated) credential

A downstream credential tied to the individual user

Introduced in 08E.3 Remote MCP: OAuth, Gateways and Many Servers
Perceived latency

Felt wait, as distinct from measured latency.

Introduced in 13A.2 AI UX I: Streaming, Latency and Perceived Speed
Percent-encoding

The %XX escaping of characters outside the URL-safe set, defined by RFC 3986.

Introduced in 00.6 HTTP, REST and JSON
Percentile (p50, p95, p99)

The value that a given share of observations fall below

Introduced in 11A.3 Latency Percentiles, Error Classification, Audit Logs, Session Replay, Dashboards and SLOs
Perceptual hash (aHash/dHash)

A 64-bit image fingerprint robust to resize/recompression, used for near-duplicate detection.

Introduced in 09.9 Multimodal Embeddings and Retrieval
Performance review / promo packet

The calibration process and the evidence case for a level change.

Introduced in 14B.9 Your First 90 Days and Long-Term Growth
Permanent failure

A failure caused by the request itself — retrying produces the identical error (400, 401, 404, validation).

Introduced in 01B.9 Retries, Timeouts, Backoff and Resilience
Permission bits (rwx)

Read/write/execute flags per owner/group/other on files and directories, set with chmod.

Introduced in 00.2 The Terminal and Shell
Permission policy

Declarative allow/deny/approval rules evaluated before each tool call.

Introduced in 08A.10 Agent Patterns: ReAct, Plan-and-Execute, Routing and Orchestrator-Workers
Permission tier

The three outcomes of a permission check: allow, ask (a person decides) or deny

Introduced in 08A.4 Harness Engineering: Everything Around the Model
Permission-aware retrieval

The required pattern of filtering every search by the authenticated caller's server-side identity and groups, so a user only retrieves chunks they may read (3.2)

Introduced in 06.6 Filtering, Metadata and Multi-Tenant Search
permission_mode

Claude Agent SDK/Claude Code setting controlling when tools run without asking (default, acceptEdits, plan, dontAsk, bypassPermissions, auto).

Introduced in 08F.1 Agent Frameworks and SDKs
Perplexity

A measure of how surprised a model is by a text: e raised to the average cross-entropy loss, roughly "how many options it was choosing between per token". Lower means more predictable.

Introduced in 02.6 How LLMs Are Trained
Persistent prompt injection

An injection that survives its session by living in the memory store and re-firing on later requests.

Introduced in 08B.2 Memory for Agents: Short-Term and Long-Term
Persona (DeepEval)

A description of a simulated user (name, characteristics, who speaks first), kept separate from the scenario and the success condition.

Introduced in 10B.6 DeepEval Datasets, Synthetic Data, Conversation Simulation and Benchmarks
Persona / role prompt

An instruction setting the model's behavioural frame (tone, scope, format), not its knowledge.

Introduced in 04.1 Anatomy of a Good Prompt
Persona drift

Gradual change in persona or rule adherence over a long conversation, driven by instruction decay.

Introduced in 04.5 System Prompts, Roles and Personas
Personal access token (PAT)

A token authenticating API and git-over-HTTPS operations — classic (ghp_) or fine-grained (github_pat_).

Introduced in 00.4 GitHub and Collaboration
Perspective correction / keystone

Warping a photographed page's trapezoid back to a rectangle via a four-point projective transform (getPerspectiveTransform/warpPerspective); the highest-impact fix for phone photos, distinct from deskew.

Introduced in 05.4 OCR and Scanned Documents
Perturbation suite

A battery of input corruptions (typos, unicode noise, whitespace collapse) used to test robustness.

Introduced in 10A.10 Evaluation Platforms, Benchmarks and Building an Eval Culture
Petri Bloom

Tooling that generates evaluation suites focused on a specific behaviour, run with Petri's auditor/target framework.

Introduced in 10B.16 Evaluating Agents with Inspect, and the Inspect Ecosystem (optional)
pgvector

Postgres extension storing vector columns with ANN indexes.

Introduced in 00.7 SQL Basics with SQLite
Phantom stock

A cash-equivalent equity instrument tied to share price.

Introduced in 14B.8 Interview Prep III: Take-Homes, Behavioural Rounds and Offers
Phantom write

A write that reports success but changes nothing

Introduced in 08A.3 Loop Control, Budgets and Stagnation Detection in the Raw Loop
Phrase query / NEAR query

Adjacent-terms / within-N-tokens query operators.

Introduced in 06.7 Keyword Search and BM25
Pickle

Python's built-in serialization format, used by older PyTorch weight files. Loading a pickle file can execute arbitrary code, so only load pickles from sources you trust.

Introduced in 02.1 Neural Network Basics
PII / anonymization

Replacing personal data with redacted/masked/hashed/encrypted/pseudonymized values before storage or egress.

Introduced in 05.5 Cleaning and Normalization
PII harvesting

Collecting personally identifiable information under false pretences.

Introduced in 14B.8 Interview Prep III: Take-Homes, Behavioural Rounds and Offers
PII scan

A regex tripwire counting email/phone/card-pattern hits without logging the values.

Introduced in 05.10 Data Quality Checks
PII scrubbing

Masking personal data before a dataset is stored or shared

Introduced in 11A.4 Production Traces into Eval Datasets
PII vault token

Stable [PII_…] surrogate preserving co-reference without revealing the value.

Introduced in 13B.5 Capstone Build C: The Realtime Voice Agent Product
PII-safe logging

Logging identifiers, counts and timings by default while keeping question/answer/chunk content in an opt-in, access-controlled, retention-limited store.

Introduced in 07.11 Production RAG: Security, Freshness, Cost and Operations
PIIMiddleware

Middleware that detects configured PII types and blocks, redacts, masks or hashes them.

Introduced in 08F.8 Tools and create_agent
Pilot

A limited release to a few real users, behind a flag, to gather real numbers

Introduced in 14A.10 Your First-90-Days Project on an Internal Use Case
Ping-pong

Control bouncing between two agents (A to B to A), counted from the route and excluding returns to a declared supervisor.

Introduced in 10A.12 Evaluating Multi-Agent Systems and Validating User Simulators
Ping-pong cycle

A repeating pattern of two or three different calls

Introduced in 08A.3 Loop Control, Budgets and Stagnation Detection in the Raw Loop
Pinned message

A message that trimming must never remove

Introduced in 08B.3 Short-Term Memory: Truncation, Summarization and Compaction
Pinned repositories

Up to six repositories and gists chosen to display in your profile's Pinned section.

Introduced in 00.4 GitHub and Collaboration
Pinned snapshot

A dated model identifier that refers to a fixed version

Introduced in 14A.1 Approved Providers, Models and Regions
Pinning (pinned context)

Keeping critical facts (names, goals, decisions) in a block that is sent with every request and never trimmed.

Introduced in 02.7 Context Windows
Pipe \|

Connects one command's stdout to another's stdin (cmd1 | cmd2).

Introduced in 00.2 The Terminal and Shell
Pipeline

Stages connected by queues; slowest stage throttles the rest.

Introduced in 01B.4 Concurrency Patterns for I/O-Heavy Work
Pipeline trace

Per-request record of every RAG stage's inputs, outputs, timings and decisions — the primitive every debugging session starts from.

Introduced in 07.10 RAG Failure Modes and Debugging
Pitfall family

One of five groupings of the 127 surprises: silent denominator, silent default, silent copy, wrong layer reported as green, moving ground

Introduced in 10B.17 DeepEval or Inspect? Choosing, Combining and Migrating (optional)
pivot_table / melt

Pandas' long-to-wide grouped reshape and its wide-to-long inverse.

Introduced in 01B.11 NumPy and pandas Essentials for AI Work
PKCE (`S256`)

A defence for the authorization code: the client sends a hash of a secret first and the secret itself when redeeming

Introduced in 08E.3 Remote MCP: OAuth, Gateways and Many Servers
Placeholder example

An example using synthetic stand-ins (<name>, {{id}}) instead of real data.

Introduced in 04.2 Zero-Shot, Few-Shot and Examples
Placeholder remote

A fake git origin URL in a lab folder so that Inspect logs, which record the origin, do not reveal a real repository. Current Inspect redacts credentials embedded in the URL, but the host and path remain visible.

Introduced in 10B.1 The Eval Framework Track: DeepEval, Inspect AI and Your Setup
Plan-and-execute

Planner → bounded executor per step → replanner; the plan is explicit state, not context.

Introduced in 08A.10 Agent Patterns: ReAct, Plan-and-Execute, Routing and Orchestrator-Workers
Plan-and-Solve prompting

Wang et al.'s zero-shot variant combining plan generation with plan-guided answering (arXiv:2305.04091).

Introduced in 04.3 Reasoning Prompts: Chain-of-Thought and Friends
Plan-then-solve

Prompting the model to write a plan before executing it.

Introduced in 04.3 Reasoning Prompts: Chain-of-Thought and Friends
Plan-then-solve prompting

Asking the model to write a plan before executing it, making dependencies explicit.

Introduced in 04.3 Reasoning Prompts: Chain-of-Thought and Friends
Planner

A role that splits a task into steps and says who does each

Introduced in 08D.1 One Agent or Several: Roles and the Two Basic Patterns
Plant-a-bug self-test

Injecting known bugs into a system one at a time to prove each evaluation metric can fail, and that the clean system triggers none.

Introduced in 10A.11 Evaluating Agent Memory and Context Management
Plateau

A reflection stop reason: the score stopped improving by at least min_gain

Introduced in 08A.11 Reflection, Parallel Fan-Out and Agent-as-a-Tool
Plausibility-based explanation

Fluent, confident prose that persuades without informing.

Introduced in 13A.3 AI UX II: Trust, Transparency, Feedback and Human-in-the-Loop
Plugin (OpenRouter)

A once-per-request request/response mutation (file-parser, deprecated web).

Introduced in 07.7 Managed RAG: Provider Tools, Platforms and Frameworks
Plugin registry

The single place where tools are registered, described, authorised and audited, so "what the model can do" is a queryable list rather than emergent code.

Introduced in 13A.5 Architecture Patterns for AI Applications
Pointer / handle

A cheap reference (file path, document ID) standing in for full content the model can fetch later.

Introduced in 04.6 Context Engineering: Selecting and Ordering Context
Pointwise / listwise / pairwise reranking

Scoring one query–document pair at a time / ranking all candidates in one prompt / comparing two candidates at a time.

Introduced in 06.9 Reranking
Pointwise judge

A judge design that scores a single output against a rubric and returns a verdict per item.

Introduced in 10A.4 LLM-as-Judge
Poison message

A job that fails every time however often it is retried

Introduced in 08A.13 Background and Long-Running Agents
Poison-item bisect

Isolating a bad item by splitting a failing batch in halves.

Introduced in 01B.4 Concurrency Patterns for I/O-Heavy Work
Poisoning probe

A multi-session test that plants instruction-shaped text in untrusted content and checks both that it is not stored and that it does not change the agent's behaviour, including its tool arguments, sessions later.

Introduced in 10A.11 Evaluating Agent Memory and Context Management
Policy

In reinforcement learning, the model being trained to choose actions; for LLMs, the model choosing tokens.

Introduced in 02.6 How LLMs Are Trained
Policy approval

An allow decision made by a named, versioned rule instead of a person

Introduced in 08A.12 Human-in-the-Loop and Approval Gates as a Pattern
Policy decision point (PDP)

The function that returns allow or deny for a request

Introduced in 14A.6 Agent Inventory, Risk and Autonomy Classification, and Policy-as-Code
Policy enforcement point (PEP)

The place in the call path where the decision is applied, and which no call can skip

Introduced in 14A.6 Agent Inventory, Risk and Autonomy Classification, and Policy-as-Code
Policy engine

The component that resolves guard results plus request context into a final action via declarative, versioned rules.

Introduced in 12.5 Guardrails and Output Validation
Policy layer

The deterministic component wrapped around a tool registry that authorises, validates, budgets and audits every proposed call before it executes.

Introduced in 08A.14 Reliable, Safe and Observable Agents
Policy mutation check

Deliberately breaking a policy to confirm the policy eval notices

Introduced in 14A.6 Agent Inventory, Risk and Autonomy Classification, and Policy-as-Code
Policy-as-code

Access rules written as versioned, reviewed, tested, machine-enforced data

Introduced in 14A.6 Agent Inventory, Risk and Autonomy Classification, and Policy-as-Code
Polling URL / webhook

Async job patterns: poll a status URL or receive a signed POST on completion.

Introduced in 09.3 Image Generation and Editing
Polysemy

One word having several meanings ("bank").

Introduced in 02.3 Embeddings
pool depth (pool_k)

How many hits the shaping stage sees before trimming to k.

Introduced in 07.2 Retrieval Strategies for RAG
Pooling

Grading the union of results returned by several retrievers so relevant items aren't missed by any single system's blind spots (the TREC method).

Introduced in 06.10 Evaluating and Tuning Retrieval
Pooling (mean, CLS, last-token)

Combining a text's token vectors into one vector.

Introduced in 02.3 Embeddings
PoolTimeout

The httpx error raised when no pooled connection frees up within the pool timeout — a client-side concurrency signal.

Introduced in 01B.5 HTTP Clients with httpx
Population Stability Index (PSI)

A statistic comparing two distributions' bucket shares.

Introduced in 10A.9 Offline vs Online Evaluation
Port

A numbered endpoint (0–65535) a process listens on for network connections.

Introduced in 00.2 The Terminal and Shell
Portable content

The non-empty text and image parts of a turn; a turn without any is never replayed natively or sent as empty content.

Introduced in 03.2 Messages, Roles and Conversation State
Portfolio audit

The automated hygiene check (portfolio_audit.py) for README, licence, tests, CI, secrets, env files, size and TODO density.

Introduced in 14B.2 Portfolio Strategy: Choosing and Shaping Projects
Portfolio decay

The slow rot of public repos: dead links, broken quickstarts, stale facts — needs periodic re-audit.

Introduced in 14B.2 Portfolio Strategy: Choosing and Shaping Projects
Portfolio piece

A public repo (or write-up/PR set) that serves a distinct evidence role in your portfolio.

Introduced in 14B.2 Portfolio Strategy: Choosing and Shaping Projects
Portfolio plan

The per-target-role mapping of which pieces to build and what evidence each must show.

Introduced in 14B.2 Portfolio Strategy: Choosing and Shaping Projects
Portfolio rubric

A scoring grid (completeness, quality evidence, judgement, honesty, communication) adapted from the capstone's.

Introduced in 14B.2 Portfolio Strategy: Choosing and Shaping Projects
Portfolio-ready

The rubric threshold plus evidence lines and keyless-runnability.

Introduced in 13B.1 Capstone Planning and Scoping
Ports and adapters

A structure where business logic depends on small interfaces (ports) and swappable implementations (adapters) provide the real provider, store or fake.

Introduced in 13A.5 Architecture Patterns for AI Applications
Position bias

Preferring an option because of its position (for example option "A") rather than its content.

Introduced in 02.10 Limitations and Failure Modes
Positional / keyword / default

Passed by position / by name / optional with a default.

Introduced in 01A.3 Control Flow and Functions
Positional encoding

Information about token order added to the model.

Introduced in 02.4 Attention and Transformers
Post-filtering

Running ANN over all vectors, then discarding results that fail the filter — risks returning fewer than k results.

Introduced in 06.6 Filtering, Metadata and Multi-Tenant Search
Post-hoc citation

A citation attached to an already-generated answer by a second pass; unverified post-hoc citations are decoration.

Introduced in 07.5 Citations and Attribution
Post-mortem (eval/debugging)

A structured write-up of what broke, why, and what guardrail now prevents recurrence — the highest-trust technical-post type.

Introduced in 14B.4 Writing and Learning in Public
Post-mortem debugging

Opening the debugger at the point an uncaught exception crashed the program (python3 -m pdb script.py).

Introduced in 00.9 Working Like an Engineer: Debugging, Asking for Help and Learning Habits
Post-OCR correction

Auditable fixes applied after recognition — dictionary/regex confusions, numeric validation, then guarded LLM correction — always keeping raw text.

Introduced in 05.4 OCR and Scanned Documents
Post-pass

A final size/boundary enforcement step applied after any splitter.

Introduced in 05.6 Chunking Strategies
Post-training

All training after pretraining (supervised fine-tuning, preference tuning, reinforcement learning, safety training) that turns a base model into a helpful assistant.

Introduced in 02.6 How LLMs Are Trained
Post-training quantization / quantization-aware training

Converting a finished model's weights to lower precision after training. It's how most community Q4_K_M, AWQ and GPTQ files are made.

Introduced in 02.1 Neural Network Basics
PostgresSaver / AsyncPostgresSaver

Production checkpointers from langgraph-checkpoint-postgres; setup() creates the tables.

Introduced in 08F.11 Persistence, Durable Execution and Memory
Posting / postings list

The per-term list of documents containing it, with positions.

Introduced in 06.7 Keyword Search and BM25
PowerShell

Microsoft's shell and scripting language, native to Windows.

Introduced in 00.1 Setting Up Your Computer for Development
PPO

Proximal Policy Optimization, the reinforcement-learning algorithm classically used in RLHF, which makes small, stable updates.

Introduced in 02.6 How LLMs Are Trained
pprint

Pretty-prints nested data structures readably.

Introduced in 01A.2 Numbers, Strings and Text
PRAGMA

SQLite settings: foreign_keys and busy_timeout apply per connection; journal_mode = WAL persists in the file.

Introduced in 00.7 SQL Basics with SQLite
PRD (product requirements document)

The document specifying what a product must do — for AI features, the feature brief is its seed.

Introduced in 13A.1 Product Thinking for AI Features: What to Build and When Not to Use AI
pre-commit

The framework running checks before each commit.

Introduced in 01B.1 Project Setup with uv: Environments, Dependencies and Tooling
Pre-filtering

Evaluating the filter first to build an eligible-candidate set, then searching only within it.

Introduced in 06.6 Filtering, Metadata and Multi-Tenant Search
Pre-flight ladder

The sequence of cheap runs before a full eval: a null run, a scripted run, five real samples, fifty real samples, the full eval set, then the gate.

Introduced in 10B.12 Running Inspect Evals for Real: Models, Configuration, Concurrency, Caching, Errors and Eval Sets (optional)
Pre-flight token count

A count of a request's input tokens made before sending it, with the provider's counting endpoint or a local estimate. It ignores caching, and for Anthropic it is an estimate.

Introduced in 03.7 Token Counting, Cost Tracking and Prompt Caching
Pre-norm / post-norm

Normalizing the input of each sublayer vs normalizing after the residual addition.

Introduced in 02.4 Attention and Transformers
Pre-push hook

A git hook (e.g. pre-commit's pre-push stage) running the smoke eval tier locally before CI.

Introduced in 10A.8 Regression Testing, CI and Experiment Tracking
Pre-registered launch criteria

Decision rules for shipping written before the eval runs, not adjusted after seeing results.

Introduced in 10A.10 Evaluation Platforms, Benchmarks and Building an Eval Culture
Pre-registration

Using a client ID obtained in advance for a specific authorization server

Introduced in 08E.3 Remote MCP: OAuth, Gateways and Many Servers
Pre-tokenization

A step before the main tokenizer algorithm that splits text into chunks (words, groups of up to 3 digits, punctuation, whitespace), so that tokens never cross chunk borders.

Introduced in 02.2 Tokens and Tokenization
Precision (FP32, BF16, FP8, INT8, INT4, FP4)

How many bits are used to store each number. It determines memory per parameter: 4, 2, 1, 1 and 0.5 bytes respectively.

Introduced in 02.1 Neural Network Basics
Precision / recall (at a threshold)

Of items above threshold, fraction truly relevant / of truly relevant, fraction caught.

Introduced in 06.3 Similarity Metrics and Nearest-Neighbour Search
Precision@k

Fraction of the top-k results that are relevant; punishes noisy result lists and wasted context tokens.

Introduced in 06.10 Evaluating and Tuning Retrieval
precomputed_scores

An Inspect scorer that applies scores from a JSON or JSON Lines file (such as human ratings) to samples by id, typically attached to an existing log with score(). *(Introduced in [lesson 10B.10](10b-eval-frameworks/10-inspect-scorers-metrics-and-epochs.md#59-precomputed_scores-human-labels-and-scores-from-elsewhere))* *(Extended in [lesson 10B.11](10b-eval-frameworks/11-inspect-model-grading.md#103-generate-once-grade-many-times-and-attach-the-human-labels))*

Prediction-powered inference (PPI)

Estimating a true rate from many judged cases plus a small random human-labelled sample that measures and cancels the judge's error; valid intervals whatever the judge's quality.

Introduced in 10A.5 Calibrating and Validating Judges
Predictive validity

Whether a user simulator ranks agent variants, and makes ship decisions, the way real users do; the decisive check before a simulator chooses between versions.

Introduced in 10A.12 Evaluating Multi-Agent Systems and Validating User Simulators
Preemptive answer

An answer produced before reasoning begins; shown to degrade subsequent reasoning quality.

Introduced in 04.3 Reasoning Prompts: Chain-of-Thought and Friends
Preemptive scheduling

An outside scheduler (the OS) interrupts tasks at almost any moment. Contrast with cooperative scheduling.

Introduced in 01C.1 Concurrency, Parallelism and Context Switching
Preference tuning

Training a model from comparisons of better and worse answers rather than from single ideal answers, for example with RLHF or DPO.

Introduced in 02.6 How LLMs Are Trained
prefers-reduced-motion

User setting requesting minimal animation.

Introduced in 13A.2 AI UX I: Streaming, Latency and Perceived Speed
Prefill

Processing the whole prompt in one parallel forward pass before generating.

Introduced in 02.5 Generation and Sampling
Prefill vs decode

The two phases of generation: one compute-bound pass over the prompt that builds the KV cache, then a memory-bandwidth-bound token-by-token loop ([3.3](11c-deployment-reliability-and-lifecycle/06-open-weight-and-local-models.md#33-throughput-batching-and-latency)).

Introduced in 11C.6 Open-Weight and Local Models
Prefill/decode disaggregation

Running prefill and decode on separate GPU pools, transferring KV blocks between them, so long prompts do not stall streaming users ([7.9](11c-deployment-reliability-and-lifecycle/06-open-weight-and-local-models.md#79-fleet-scale-serving-kv-aware-routing-and-prefilldecode-disaggregation)).

Introduced in 11C.6 Open-Weight and Local Models
Prefix cache

A cache that reuses computed state for an exact prompt prefix, rather than a response.

Introduced in 11B.4 Token Caching in Depth: How It Works, Who Supports It, and How to Use It
Prefix caching / KV-cache reuse

Provider or self-hosted reuse of the computed KV cache for an identical prompt prefix

Introduced in 11B.3 Caching Strategies
Prefix fingerprint

A hash of everything before the varying part of a request, logged with every call, so a change in the prefix explains a drop in hit rate.

Introduced in 03.7 Token Counting, Cost Tracking and Prompt Caching
Prefix index

Extra index making term* prefix queries fast.

Introduced in 06.7 Keyword Search and BM25
Preflight

Automatic OPTIONS request before "non-simple" cross-origin requests.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Preflight check

Validating media (real type, encoded size, dimensions, page count, encryption, counts) against provider limits in your own code before sending a request.

Introduced in 03.6 Images, PDFs and Files
Preprocessing hash

A version tag for your cleaning/normalization config; changing it invalidates cached vectors.

Introduced in 06.2 Embedding Pipelines: Batching, Caching, Scale and Cost
Presence penalty

A flat logit reduction for every token that has already appeared.

Introduced in 02.5 Generation and Sampling
Preserved thinking

Anthropic's rule that each thinking block is bound to the model and to everything before it, so history must be append-only (rules in [8.2](02-how-llms-work/08-reasoning-models.md#82-pass-the-reasoning-back); history strategies in [lesson 07, 4.2](02-how-llms-work/07-context-windows.md#42-the-strategies)).

Introduced in 02.8 Reasoning Models
Presidio

Open-source (MIT) PII detection + anonymization toolkit, originally from Microsoft; its repository has moved to the data-privacy-stack GitHub organisation (checked November 2026).

Introduced in 05.5 Cleaning and Normalization
Pretraining

The first and largest training stage, where a model learns to predict the next token across trillions of tokens of text, absorbing language, facts and skills.

Introduced in 02.6 How LLMs Are Trained
previous_interaction_id

Gemini Interactions parameter that chains a request to a stored interaction; only the history carries over, not tools, system instruction or generation config.

Introduced in 03.2 Messages, Roles and Conversation State
previous_response_id

OpenAI Responses parameter that chains a new request to a stored response, so the server prepends the earlier turns.

Introduced in 03.2 Messages, Roles and Conversation State
Price drift

A difference between your price table and an external price source such as OpenRouter's model catalogue or LiteLLM's community file. A checker flags drift for a human to review; nothing updates automatically.

Introduced in 03.7 Token Counting, Cost Tracking and Prompt Caching
Price table

Configuration holding each model's rates, keyed by provider and model, with effective dates and a source, so prices are never hard-coded in business logic.

Introduced in 03.7 Token Counting, Cost Tracking and Prompt Caching
Primary key (PK)

PK uniquely identifies each row; FK references another table's PK, enforcing existence.

Introduced in 00.7 SQL Basics with SQLite
Primary source

An official first-party page (changelog, deprecation notice, spec, status page, advisory) authoritative for facts about a product or protocol.

Introduced in 14A.9 Staying Current in a Fast-Moving Field
Primitive

A server-exposed feature family: tools, resources, prompts.

Introduced in 08E.1 The Model Context Protocol (MCP)
Principal

The authenticated identity (user, tenant, groups) resolved server-side and used to scope every retrieval query and cache key in a RAG service.

Introduced in 07.11 Production RAG: Security, Freshness, Cost and Operations
Principle theatre

The failure mode of producing responsible-AI artefacts (principles pages, disclaimers) that look like evidence but skip requirements, tests and controls.

Introduced in 12.9 Responsible AI, Policy and Compliance
Priority class

A label (interactive, batch) that decides who may borrow from the spare pool

Introduced in 11B.7 Rate Limits Across Teams, Throughput Options, Kill Switches and Spend Alerts
Priority inheritance

A lock holder temporarily taking the priority of the highest-priority task waiting for the lock so it can finish quickly.

Introduced in 01C.4 Deadlocks, Livelock and Starvation
Priority inversion

A high-priority task delayed by a lower-priority one that holds a needed resource, made worse when medium-priority work preempts the holder (Mars Pathfinder, 1997).

Introduced in 01C.4 Deadlocks, Livelock and Starvation
Priority rule

A rule that resolves conflicts between other rules ("prefer X over Y when...").

Introduced in 04.1 Anatomy of a Good Prompt
Privacy impact assessment (PIA/DPIA)

A structured pre-launch review of a feature's privacy risks and mitigations.

Introduced in 11C.4 Operating LLM Systems: Governance, Incidents and the Production Checklist
Private networking / egress

Keeping service↔provider traffic off the public internet / restricting outbound destinations.

Introduced in 11C.1 Deploying LLM Services
Private vs public IP

Private ranges (10/8, 172.16/12, 192.168/16, loopback) aren't routable on the public internet.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Private vulnerability reporting

A structured channel letting security researchers privately disclose vulnerabilities on public repositories.

Introduced in 00.4 GitHub and Collaboration
Privileged vs shareable content

The Model Spec's distinction between instruction text kept private and facts (identity, capabilities) safe to disclose when asked.

Introduced in 04.5 System Prompts, Roles and Personas
Proactive compaction threshold

Starting compaction at ~60–70% of budget rather than waiting for the context wall; a heuristic to test.

Introduced in 04.7 Context Engineering: Managing Context Over Time
Proactive suggestion

An AI feature that surfaces help *before* the user asks — ambient rather than turn-based.

Introduced in 13A.1 Product Thinking for AI Features: What to Build and When Not to Use AI
Probe

A string that must still be visible after trimming; used to test compaction

Introduced in 08B.3 Short-Term Memory: Truncation, Summarization and Compaction
Probe prompt collection

A collection of short, reusable test prompts grouped by capability (a "prompt hub" in the Prompting Guide; not LangSmith's Prompt Hub).

Introduced in 04.12 Prompt Hub, Research Findings and Model Notes
Probing pattern

Systematic near-duplicate or boundary-testing requests from one account, detected as clusters of identical prompt hashes or score distributions.

Introduced in 12.10 Security Operations, Incident Response and the Safety Checklist
Problem Details

RFC 9457's standard error-body format (type, title, status, detail, instance, served as application/problem+json).

Introduced in 00.6 HTTP, REST and JSON
Procedural memory

How to do things — instructions, playbooks, skills — stored as prompts, files or weights rather than recalled as data.

Introduced in 08B.2 Memory for Agents: Short-Term and Long-Term
Process / PID

A running program and its numeric ID.

Introduced in 00.2 The Terminal and Shell
Process reward model (PRM)

A reward model trained to score individual steps of a solution rather than just the final answer.

Introduced in 02.6 How LLMs Are Trained
Process supervision

Rewarding/verifying each reasoning step, not just the final answer (Lightman et al. 2023).

Introduced in 04.3 Reasoning Prompts: Chain-of-Thought and Friends
processing (Interactions)

Gemini Interactions per-video config: type static/agentic plus clipping and FPS.

Introduced in 09.8 Video Understanding
Processing location

The region where a model runs inference on a request

Introduced in 14A.1 Approved Providers, Models and Regions
Producer/consumer

Pattern where producers put and workers get via a queue.

Introduced in 01B.4 Concurrency Patterns for I/O-Heavy Work
Product eval / task eval

An eval built for your task, your users and your data distribution — the one that predicts whether your feature works.

Introduced in 10A.1 Why Evals Matter: The Evaluation Mindset
Product event

A sparse per-task analytics record (task_started, task_completed, draft_accepted...) that joins to traces and eval cases via shared keys.

Introduced in 13A.6 Product Metrics, Experiments and Unit Economics
Product quantization (PQ)

Splitting each vector into chunks and storing a centroid code per chunk for ~8–64× compression.

Introduced in 06.4 Vector Indexes: HNSW, IVF, Quantization and Trade-offs
Product-level system card

A document describing your deployed AI system — model, application, data, evaluations, safeguards, limits — distinct from the provider's model card.

Introduced in 13B.6 Shipping and Operating Your Capstone: Launch, Demo and Iterate
Production RAG service

The deployed, multi-tenant, observable, cost-controlled form of the RAG pipeline — as opposed to the notebook prototype.

Introduced in 07.11 Production RAG: Security, Freshness, Cost and Operations
Production-readiness checklist

The one-page go/no-go list covering service, security, freshness, cost and operations.

Introduced in 07.11 Production RAG: Security, Freshness, Cost and Operations
Profile (NIST)

An application of the AI RMF to one technology or setting, for example the Generative AI Profile NIST AI 600-1

Introduced in 12.9 Responsible AI, Policy and Compliance
Profile and collection

One updated document per user, versus many small documents, the two shapes of semantic memory.

Introduced in 08F.11 Persistence, Durable Execution and Memory
Profile memory

Fixed-schema key-value facts about a user (name, language, plan), cheap to inject every call and trivial to update.

Introduced in 08B.2 Memory for Agents: Short-Term and Long-Term
Profile README

The README.md in a public username/username repository, rendered at the top of your GitHub profile.

Introduced in 00.4 GitHub and Collaboration
Program / script

A .py file of instructions run top-to-bottom once by the interpreter.

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
Program vs package vs library vs tool

Runnable thing / distributed bundle / reusable code inside a program / software that helps you build.

Introduced in 00.1 Setting Up Your Computer for Development
Program-of-thought / PAL

Using model-generated code as the reasoning, executed by an interpreter (PAL, Gao et al., 2022).

Introduced in 04.3 Reasoning Prompts: Chain-of-Thought and Friends
Programmatic tool calling / code mode

The model writes code (JavaScript on OpenAI, Python on Anthropic) that calls tools inside a sandbox and returns only the processed result, collapsing multi-call round trips.

Introduced in 08A.8 Provider Built-in and Server-Side Tools
Progress

New information, a changed world, or a new action

Introduced in 08A.3 Loop Control, Budgets and Stagnation Detection in the Raw Loop
Progress file

A running log the agent updates so the next session can resume.

Introduced in 08A.4 Harness Engineering: Everything Around the Model
Progressive disclosure

Layering context so a cheap catalogue (titles, IDs, summaries) routes the model to expensive full text on demand.

Introduced in 04.6 Context Engineering: Selecting and Ordering Context
Progressive enforcement

The warn → throttle → suspend → ban ladder for abuse cases, with logging, human review at the top rungs and a working appeals path.

Introduced in 12.10 Security Operations, Incident Response and the Safety Checklist
Progressive rollout

Serving a release to increasing traffic percentages while monitoring gates.

Introduced in 11C.2 CI/CD for Prompts, Models and Evals
Project / workspace

A container inside a provider organization with its own keys, limits and usage.

Introduced in 03.1 The Provider APIs and Your First Calls
Project deep-dive

An interview round where the candidate explains and defends a project they built — problem, constraints, decisions, measurement.

Introduced in 14B.8 Interview Prep III: Take-Homes, Behavioural Rounds and Offers
Projection

An iterable on a v3 run object, such as messages, values, subgraphs or lifecycle, that can be read once.

Introduced in 08F.14 The Functional API and Streaming
Projection matrices (W_Q, W_K, W_V, W_O)

Learned weights that produce queries, keys, values, and map the attention output back.

Introduced in 02.4 Attention and Transformers
Prompt

The text the shell prints when ready for input ($ , custom formats).

Introduced in 00.2 The Terminal and Shell
Prompt ablation

Adding or removing one prompt modification at a time and measuring the effect.

Introduced in 04.12 Prompt Hub, Research Findings and Model Notes
Prompt boundary problem

Degraded output that happens when a prompt ends in a way that splits a natural token, such as a trailing space or a cut-off URL.

Introduced in 02.2 Tokens and Tokenization
Prompt cache

A provider-side store of the processed start of a prompt, reused at a lower price

Introduced in 11B.8 The Cost of Agents and Long Contexts, Prompt Caching per Provider, and the Cost of Running Evals
Prompt caching

Reusing the stored KV cache of an identical prompt prefix across requests, so repeated prefixes cost less and start answering sooner. Also called context caching or prefix caching. *(Introduced in [lesson 02.7](02-how-llms-work/07-context-windows.md#72-from-kv-cache-to-prompt-caching))* Lesson 03.7 covers each provider's caching API, how to measure the hit rate and when caching does not pay (see [Break-even (cache)](#break-even-cache)). *(Extended in [lesson 03.7](03-llm-apis/07-cost-and-caching.md#part-6-anthropic-prompt-caching-in-depth))*

Prompt chaining

Splitting a task into sequential model calls where each step's output feeds the next, used when steps need inspection, different models or error isolation.

Introduced in 04.8 Prompt Patterns for Common Tasks
Prompt changelog

An append-only record of prompt versions — what changed, why, and the dev-set score before and after.

Introduced in 04.9 Iterating, Debugging and Porting Prompts
Prompt engineer

A role/title centred on writing prompts; faded as a standalone title as the skill became expected of all AI engineers.

Introduced in 14B.1 The AI Engineering Landscape: Roles, Teams and Career Paths
Prompt extraction

A user attack that tries to make the model reveal, quote or paraphrase its system prompt.

Introduced in 04.5 System Prompts, Roles and Personas
Prompt fingerprint

A hash of the prompts a metric sends on a fixed canary case, stored with results so that a package upgrade that changes the judge's instructions is detected.

Introduced in 10B.3 Judges in DeepEval: Models, G-Eval, DAG and Custom Metrics
Prompt function

A named, parameterised prompt invoked and composed like a function.

Introduced in 04.11 Named Prompting Techniques: A Field Guide
Prompt hash

A short hash of the exact prompt text, used to prove which version produced a given result.

Introduced in 04.9 Iterating, Debugging and Porting Prompts
Prompt hub

LangSmith's store of versioned prompts, with commits, tags and a Playground.

Introduced in 08F.6 Prompts, Output Parsers and Structured Output
Prompt injection (direct, indirect)

Instructions from a user or from processed content overriding the developer's intent.

Introduced in 02.10 Limitations and Failure Modes
Prompt layout

The organisation of a prompt: section order, markup style, position of instructions vs data vs question.

Introduced in 04.4 Structuring Prompts: XML, Markdown and Delimiters
Prompt leaking

An injection goal where the attacker extracts the system prompt or hidden context — dangerous only if secrets or business logic live there.

Introduced in 12.2 Prompt Injection: Direct and Indirect
Prompt management platform

A third-party system of record for versioned prompts (Langfuse, LangSmith, PromptLayer, Braintrust, MLflow, Agenta).

Introduced in 04.10 Prompt Templates, Versioning and a Prompt Library
Prompt optimiser

A tool that searches prompt variants against a metric (DSPy/GEPA, TextGrad, vendor tools).

Introduced in 04.9 Iterating, Debugging and Porting Prompts
Prompt partial

A template with some variables pre-bound, by value or by a zero-argument callable evaluated at format time.

Introduced in 08F.6 Prompts, Output Parsers and Structured Output
Prompt pattern

A reusable prompt skeleton for a class of tasks, with named slots, an output contract, known pitfalls and a test idea.

Introduced in 04.8 Prompt Patterns for Common Tasks
Prompt porting

Adapting a prompt for a different model; requires re-running the eval set.

Introduced in 04.1 Anatomy of a Good Prompt
Prompt preset (OpenRouter)

A named request configuration (model, system prompt, routing, parameters) referenced as @preset/slug.

Introduced in 04.10 Prompt Templates, Versioning and a Prompt Library
Prompt registry

The component that resolves prompt names, versions and aliases to immutable prompt artefacts.

Introduced in 04.10 Prompt Templates, Versioning and a Prompt Library
Prompt sensitivity

Output quality changing with wording, formatting or ordering that shouldn't matter to the task.

Introduced in 02.10 Limitations and Failure Modes
Prompt template

Prompt text with named slots where per-request values are inserted at render time.

Introduced in 04.10 Prompt Templates, Versioning and a Prompt Library
Prompt versioning

Treating prompts as versioned artefacts (files, aliases, evals per version) rather than string literals.

Introduced in 14B.3 GitHub Presence and Project READMEs
Prompt-cache tokens

Input tokens read from, or written to, a prompt cache, priced differently from fresh input

Introduced in 08A.3 Loop Control, Budgets and Stagnation Detection in the Raw Loop
Prompt-injection boundary

The architectural assumption that user text, retrieved documents, tool outputs and other external content may contain hostile instructions.

Introduced in 14B.7 Interview Prep II: LLM System Design
prompt_cache_key

OpenAI's per-request cache key. Before GPT-5.6 it was a routing hint; on GPT-5.6 and later it controls cache accounting and isolation.

Introduced in 03.7 Token Counting, Cost Tracking and Prompt Caching
prompt_rewriter

OpenAI's internal prompt-rewrite step (visible as revised_prompt); barred from markup/SVG/GIF combos — not a settable Images-API field.

Introduced in 09.3 Image Generation and Editing
`Prompt` object

DeepEval's template value, with local interpolate and load and cloud versioning methods

Introduced in 10B.7 DeepEval in Production: Red Teaming, CI/CD, Prompt Optimization and Confident AI
Promptagator

A method that prompts an LLM to generate queries for unlabelled documents to train a retriever (Dai et al.).

Introduced in 04.12 Prompt Hub, Research Findings and Model Notes
PromptOptimizer

DeepEval's driver for automatic prompt optimization, running your app on goldens, scoring with your metrics and proposing rewrites with GEPA, MIPROv2, COPRO or SIMBA.

Introduced in 10B.7 DeepEval in Production: Red Teaming, CI/CD, Prompt Optimization and Confident AI
PromptRecorder

The JSONL call logger recording prompt name, version, resolved-from, hashes and model per call.

Introduced in 04.10 Prompt Templates, Versioning and a Prompt Library
PromptSpec

The Pydantic model describing a prompt file's metadata and declared variables.

Introduced in 04.10 Prompt Templates, Versioning and a Prompt Library
PromptTemplate

A string template whose variables are inferred from the text; format returns a str, invoke a StringPromptValue.

Introduced in 08F.6 Prompts, Output Parsers and Structured Output
PromptValue

The wrapper a template produces; to_string() and to_messages() convert it for text or chat models.

Introduced in 08F.6 Prompts, Output Parsers and Structured Output
Pronunciation dictionary / lexicon

A project-level map of custom word readings applied by the TTS engine.

Introduced in 09.5 Text-to-Speech
Propagation (logging)

A record logged to a.b.c is also offered to a.b, a and the root logger unless propagate=False; the mechanism behind "libraries log, applications configure".

Introduced in 01B.10 Logging, Debugging and Packaging: Putting the Toolkit Together
Propensity weighting

Weighting responses by 1/response-propensity to correct selection bias.

Introduced in 10A.9 Offline vs Online Evaluation
Property-based test

A test that states a rule for all inputs and lets a library (hypothesis) search for, and shrink, a counterexample.

Introduced in 03.10 Logging, Debugging and Testing LLM Code
Property-based testing

Testing a rule over hundreds of generated inputs (hypothesis).

Introduced in 01B.8 Testing with pytest
propertyOrdering

Gemini's schema field that fixes the order of keys in the output.

Introduced in 03.4 Structured Output
Propose and notify

An unattended agent records the exact action it wants and tells a human instead of doing it

Introduced in 08A.13 Background and Long-Running Agents
Proposition / propositional chunking

Indexing atomic, self-contained facts ("propositions") as the retrieval unit instead of passages, then expanding hits back to parent context (Dense X Retrieval, EMNLP 2024).

Introduced in 05.7 Advanced and Document-Specific Chunking
Propositionizer

The model that decomposes text into self-contained atomic propositions; a fine-tuned FlanT5-Large in the Dense X Retrieval paper.

Introduced in 05.7 Advanced and Document-Specific Chunking
Prosody

The rhythm, stress, pitch and intonation that make speech sound natural rather than merely correct.

Introduced in 09.5 Text-to-Speech
Protected Resource Metadata

RFC 9728 document telling MCP clients which authorization server protects a resource — mandatory discovery step in the MCP OAuth flow.

Introduced in 12.6 Securing Tools, Agents and MCP
Protocol

Structural typing contract — satisfied by shape ("has the methods"), not inheritance.

Introduced in 01A.10 Type Hints and Writing Readable Code
Protocol error

A JSON-RPC error reply: the request itself was wrong

Introduced in 08E.2 MCP in Depth: Primitives, Servers, Clients and Transports
ProtocolEvent

The raw event envelope of event streaming: type, seq, method (the channel) and params.

Introduced in 08F.14 The Functional API and Streaming
Provenance (page/bbox)

The page number and bounding-box coordinates recording where extracted content originated, required for citations.

Introduced in 05.2 Parsing PDFs
Provenance label

Metadata on a context block (id, title, source, date, authority) enabling trust judgement and checkable citations.

Introduced in 04.6 Context Engineering: Selecting and Ordering Context
Provider / lab

The company that trains and/or serves a model.

Introduced in 02.9 Model Landscape
Provider adapter

The code that translates canonical types to one provider's API and back. In 03.11 it is a pure build() and parse() plus a stream parser and a thin I/O layer. See also [Adapter](#adapter).

Introduced in 03.11 Building a Provider-Agnostic Client
Provider eval tool

An eval feature built into a model vendor's console or API (OpenAI Evals, the Claude Console Evaluate tab); both were retired in 2026, so keep your data and graders in files you own.

Introduced in 10A.10 Evaluation Platforms, Benchmarks and Building an Eval Culture
Provider registry

The built-in map of provider keys (openai, anthropic, google_genai, ...) to integration classes that init_chat_model consults; not exhaustive.

Introduced in 08F.5 Chat Models, Messages and Content Blocks
Provider request ID

The identifier a provider assigns to one HTTP request (x-request-id, request-id, X-Generation-Id), which its support asks for.

Introduced in 03.10 Logging, Debugging and Testing LLM Code
Provider routing

Rules that decide which hosts may serve a request, for example by order, price, speed, quantization or data policy.

Introduced in 02.9 Model Landscape
Provider routing preferences

OpenRouter's provider request object (order, only, ignore, sort, allow_fallbacks, require_parameters, data_collection, zdr, max_price) that steers which endpoint serves a model.

Introduced in 03.11 Building a Provider-Agnostic Client
Provider-agnostic client

A layer that lets application code call several LLM providers through one request type and one response type, with the differences hidden in adapters.

Introduced in 03.11 Building a Provider-Agnostic Client
Provider-defined client tool

A tool whose name, description and input schema the provider fixes (Anthropic's bash_20250124, memory_20250818, computer/browser toolsets) while your application still executes every call.

Introduced in 08A.8 Provider Built-in and Server-Side Tools
Provider-native payload

A model reply stored exactly as the provider returned it (reasoning items, thinking blocks, thought signatures included), so it can be replayed unchanged to the same provider.

Introduced in 03.2 Messages, Roles and Conversation State
Provider-run tool

A capability such as native search or code execution performed by the model provider during generation rather than by Inspect as a normal tool event.

Introduced in 10B.14 Tools and Agents in Inspect: Custom Tools, MCP, react() and Multi-Agent Systems (optional)
provider.options (OpenRouter)

Per-upstream-provider parameters passed through OpenRouter's STT endpoint, keyed by the provider slug — the only route to diarization and keyword hints there.

Introduced in 09.4 Speech-to-Text
ProviderStrategy

Agent structured output via the provider's native feature; strict optional.

Introduced in 08F.6 Prompts, Output Parsers and Structured Output
Provisioned throughput

Reserved model capacity billed per unit per hour or per term, used or not

Introduced in 11B.7 Rate Limits Across Teams, Throughput Options, Kill Switches and Spend Alerts
Pseudo-relevance feedback (PRF)

Retrieve → expand the query with terms from the top passages → re-retrieve; the classical expansion family ([4.6](07-rag/03-query-rewriting-and-expansion.md#46-pseudo-relevance-feedback--the-classical-third-family)).

Introduced in 07.3 Query Understanding, Rewriting and Expansion
Pseudo-streaming

Chunked sliding-window transcription that approximates streaming on models without a realtime API.

Introduced in 09.4 Speech-to-Text
Pseudonymisation

Replacing direct identifiers with consistent surrogate tokens while keeping the token→value mapping separately — reversible by the controller, still personal data under GDPR.

Introduced in 12.4 PII, Privacy and Data Leakage
PSM (page segmentation mode)

Tesseract's --psm setting describing the image layout (full page, column, block, line, word) — the wrong mode silently degrades output.

Introduced in 05.4 OCR and Scanned Documents
Psychological safety

The team condition where people can admit mistakes and ask questions without fear.

Introduced in 14B.9 Your First 90 Days and Long-Term Growth
PTU / model unit

The capacity unit of Azure (PTU) and Amazon Bedrock (model unit) provisioned throughput

Introduced in 11B.7 Rate Limits Across Teams, Throughput Options, Kill Switches and Spend Alerts
Public career ladder

A company-published framework defining what each engineering level expects.

Introduced in 14A.8 Skills Map and Gap Analysis
Pull request (PR)

A proposal to merge one branch into another, carrying the diff, discussion, CI results and review state.

Introduced in 00.4 GitHub and Collaboration
Pull-request template

A form that asks the author for summary, changes, evidence, rollback and a checklist

Introduced in 14A.2 Review Standards, Coding and Prompt Conventions
Pure (ancestral) sampling

Drawing a token at random in proportion to its probability.

Introduced in 02.5 Generation and Sampling
Pure function / side effect

Output depends only on inputs / observable external effect.

Introduced in 01A.3 Control Flow and Functions
PurePath / PurePosixPath / PureWindowsPath

Path classes that parse and manipulate paths for any OS flavour with no filesystem access.

Introduced in 01A.9 Files, Paths, JSON and CSV
Push notification (A2A)

A webhook the server calls when a task changes, so the client need not poll

Introduced in 08E.4 A2A Basics, Agent Skills (SKILL.md) and Tool Selection at Scale
push_message

A function that writes a message to the messages stream (and to state) without a model call.

Introduced in 08F.14 The Functional API and Streaming
push_prompt / pull_prompt

langsmith.Client methods to store and fetch prompts, by name, commit hash or commit tag.

Introduced in 08F.6 Prompts, Output Parsers and Structured Output
py-spy

External sampling profiler that dumps or records stacks of a *running* Python process without stopping or instrumenting it.

Introduced in 01B.10 Logging, Debugging and Packaging: Putting the Toolkit Together
py.typed / types-* stubs

The marker that says a package ships hints, and the stub-only packages for libraries that don't.

Introduced in 01A.10 Type Hints and Writing Readable Code
Py_BEGIN_ALLOW_THREADS

The C-API macro pair that releases the GIL around native code that does not touch Python objects.

Introduced in 01C.5 The Global Interpreter Lock (GIL)
Py_INCREF / Py_DECREF

The C-level operations that add and remove a reference.

Introduced in 01C.6 Python Memory Management
pydantic-settings / BaseSettings

Settings class validating env vars and .env entries into typed, coerced fields at construction.

Introduced in 01B.2 Environment Variables, Configuration and Secrets
PYDANTIC_SETTINGS_DEBUG

Env var making pydantic-settings log every source's values in priority order.

Introduced in 01B.2 Environment Variables, Configuration and Secrets
PydanticCustomError

Raising a validation error with a stable code and templated message.

Introduced in 01B.6 Data Validation with Pydantic
pymalloc

CPython's allocator for objects up to 512 bytes, organized into blocks, pools and arenas.

Introduced in 01C.6 Python Memory Management
pypdfium2 / PyMuPDF

PDF rendering libraries; pypdfium2 is permissively licensed (BSD/Apache), PyMuPDF is AGPL/commercial.

Introduced in 09.2 Document Understanding with Vision Models
PyPI

The Python Package Index — public repository of third-party packages.

Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Library
pyproject.toml

The modern project metadata file (PEP 621): name, version, requires-python, dependency ranges, scripts and build system.

Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Library
pytest

The Python test runner: discovers test_* functions, rewrites asserts, provides fixtures and plugins.

Introduced in 01B.8 Testing with pytest
pytest-asyncio

Plugin enabling async def tests for asyncio.

Introduced in 01B.8 Testing with pytest
pytest-cov

Coverage plugin reporting per-file coverage with --cov.

Introduced in 01B.8 Testing with pytest
pytest-socket

Plugin disabling socket use in tests (--disable-socket).

Introduced in 01B.8 Testing with pytest
pytest-xdist

Plugin running tests across CPU cores in parallel processes.

Introduced in 01B.8 Testing with pytest
pytest.approx

Floating-point comparison helper for assert.

Introduced in 01B.8 Testing with pytest
pytest.raises

Context manager asserting an exception is raised, with optional match regex.

Introduced in 01B.8 Testing with pytest
pytest.RaisesGroup / RaisesExc

Pytest 8.4+ matchers asserting *which* sub-exceptions an ExceptionGroup contains.

Introduced in 01B.8 Testing with pytest
python -m

Run a module or package as __main__; python -m pkg executes pkg/__main__.py with the package importable.

Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Library
python-docx / openpyxl / python-pptx

Native OOXML readers for Word/Excel/PowerPoint.

Introduced in 05.3 Parsing HTML, Web Pages and Office Files
python-dotenv

Library that parses .env files into os.environ (load_dotenv, dotenv_values, find_dotenv).

Introduced in 01B.2 Environment Variables, Configuration and Secrets
PYTHON_DOTENV_DISABLED

Env var that disables load_dotenv() entirely.

Introduced in 01B.2 Environment Variables, Configuration and Secrets
PYTHON_GIL / -X gil

The environment variable (also -X gil) that turns the GIL on or off in a free-threaded build; PYTHON_GIL=0 on a normal build is a fatal start-up error.

Introduced in 01C.5 The Global Interpreter Lock (GIL)
PYTHONMALLOC

Environment variable selecting the memory allocator (pymalloc, malloc, mimalloc, debug variants).

Introduced in 01C.6 Python Memory Management
PYTHONPATH

Environment variable adding directories to sys.path.

Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Library
PYTHONSTARTUP

Environment variable naming a .py file the interpreter executes when the REPL starts.

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics

Q

QAG (DeepEval)

"Question-answer generation": DeepEval's metric design that extracts small items (statements, claims, opinions), asks the judge a yes or no question about each, and scores the fraction that passed.

Introduced in 10B.2 DeepEval Fundamentals: Test Cases, Metrics and the Test Runner
Qdrant collection / point / payload

A namespace of points sharing one vector configuration (size + distance), optionally with named vectors; the unit of tenancy and scaling in Qdrant.

Introduced in 06.5 Vector Databases: Choosing and Using One
QK-norm

Normalizing queries and keys before the attention dot product.

Introduced in 02.4 Attention and Transformers
QLoRA

LoRA applied on top of a 4-bit quantized base model, so large models can be fine-tuned on a single GPU.

Introduced in 02.1 Neural Network Basics
Qrels

Per-query relevance judgments: which corpus items are relevant to each evaluation query, and how relevant (graded or binary).

Introduced in 06.10 Evaluating and Tuning Retrieval
Quadratic attention cost

Attention compute growing with the square of sequence length.

Introduced in 02.4 Attention and Transformers
Quadratic context cost

Total input tokens of an agent growing with the square of the number of steps.

Introduced in 11B.2 Tokenomics: The Unit Economics of LLM Applications
Quadratic cost growth

Input tokens that grow with the square of the number of steps because each step re-sends the history

Introduced in 11B.8 The Cost of Agents and Long Contexts, Prompt Caching per Provider, and the Cost of Running Evals
Quality bar

The measurable standard an AI feature must meet, set against a named baseline process.

Introduced in 13A.1 Product Thinking for AI Features: What to Build and When Not to Use AI
Quality classifier

A model that scores documents for quality (for example, how educational or well-written they are) so low-quality text can be filtered out of training data.

Introduced in 02.6 How LLMs Are Trained
Quality filtering

Admission control for web-scale corpora (length, language, gibberish).

Introduced in 05.5 Cleaning and Normalization
Quality gate

A function rolling CheckResults into pass/warn/fail with actionable reasons.

Introduced in 05.10 Data Quality Checks
Quality gate (agent)

A deterministic or agentic node that checks a result and routes back, onward or to a human, with a bounded loop.

Introduced in 08F.13 Subgraphs and Multi-Agent Systems
Quality–cost–latency frontier

The set of non-dominated (quality, cost, latency) points across candidate models on your eval set.

Introduced in 11B.5 Model Selection and Routing
Quantization

Storing a model's parameters at lower precision (for example 4-bit) to cut memory and often speed things up, at a small cost in quality.

Introduced in 02.1 Neural Network Basics
Quarantine

Isolating failed items with reasons for later reprocessing — never silently dropping.

Introduced in 05.10 Data Quality Checks
Quarantine tier

Untrusted uploads held back from indexing until scan and injection checks pass.

Introduced in 13B.3 Capstone Build B: The Document Intelligence App
Quarantined LLM

The untrusted-content side of the dual-LLM pattern: no tools, no egress, produces only structured extraction for the privileged side.

Introduced in 12.2 Prompt Injection: Direct and Indirect
Quarantined vs privileged component

Separation-of-duties split: untrusted content handled in a no-tools context; sensitive actions in a separate privileged context.

Introduced in 12.1 Threat Modelling LLM Applications
Quasi-identifier

Data that does not identify a person alone but re-identifies them in combination with other data — age, postcode, job title, behaviour patterns.

Introduced in 12.4 PII, Privacy and Data Leakage
Query clarification

Detecting ambiguity and asking the user instead of guessing.

Introduced in 07.3 Query Understanding, Rewriting and Expansion
Query decomposition

Splitting compound questions into ordered standalone sub-questions.

Introduced in 07.3 Query Understanding, Rewriting and Expansion
Query drift

A rewrite that loses or changes the original's meaning.

Introduced in 07.3 Query Understanding, Rewriting and Expansion
Query engine

A framework object combining retriever + prompt + generator into query().

Introduced in 07.7 Managed RAG: Provider Tools, Platforms and Frameworks
Query intent

Question-type classification (factoid, howto, troubleshoot, comparison, multi_hop, chitchat, navigational, out_of_scope).

Introduced in 07.3 Query Understanding, Rewriting and Expansion
Query planner

The optimizer choosing scan-vs-index strategies; EXPLAIN QUERY PLAN shows them.

Introduced in 00.7 SQL Basics with SQLite
Query route

What the pipeline does: retrieve, retrieve_filtered, retrieve_multi, decompose, clarify, skip_retrieval.

Introduced in 07.3 Query Understanding, Rewriting and Expansion
Query routing

Choosing retriever weights (or bypassing fusion) based on query type — e.g. identifier-like queries to lexical.

Introduced in 06.8 Hybrid Search
Query string

?key=value&... parameters after the path — never includes the fragment.

Introduced in 00.6 HTTP, REST and JSON
Query understanding

The stage between raw user text and retrieval that produces a QueryPlan.

Introduced in 07.3 Query Understanding, Rewriting and Expansion
Query, key, value (Q, K, V)

Three vectors each token produces: what it looks for, what it offers, and what it passes on.

Introduced in 02.4 Attention and Transformers
Query-time metadata extraction

Using an LLM with structured output to turn a natural-language query into a typed filter.

Introduced in 06.6 Filtering, Metadata and Multi-Tenant Search
QueryPlan

The typed contract: original, cleaned, intent, route, rewrites, subquestions, filters, clarification.

Introduced in 07.3 Query Understanding, Rewriting and Expansion
Question type

The category of an eval question (factoid, multi-hop, unanswerable...) determining what it tests.

Introduced in 10A.2 Building Evaluation Datasets
Questions document

The list of user questions the system must answer — the audit's north star.

Introduced in 05.1 Data Sources, Formats and the Ingestion Mindset
Queue / message broker

Durable to-do list decoupling producers from workers; absorbs bursts.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Queue cap

A limit on what you may have waiting at the provider at once (tokens or requests); a resumable job submits only while it has room.

Introduced in 03.9 Async, Concurrency and Batch Processing
Queue mode (n8n)

A scaling setup where a main instance queues executions in Redis and workers run them, with Postgres storage

Introduced in 08F.16 Low-Code Agent Platforms: n8n and Dify (awareness)
Queue worker

A process consuming jobs from a broker (Celery/RQ/Dramatiq/arq).

Introduced in 05.9 Ingestion Pipelines and Incremental Updates
Queue.shutdown()

Python 3.13+ queue stop: get/put raise QueueShutDown, consumers drain.

Introduced in 01B.4 Concurrency Patterns for I/O-Heavy Work
QUIC

UDP-based transport underpinning HTTP/3 — faster handshakes, connection migration.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Quickstart

The shortest documented path to a first successful API call; optimised for showing the happy path, not production use.

Introduced in 00.8 Reading API Documentation
Quorum

The number of usable branch results at which the rest are cancelled

Introduced in 08A.11 Reflection, Parallel Fan-Out and Agent-as-a-Tool
Quota / billing error

A failure caused by money or account limits, such as exhausted credits, a spend cap or a daily quota, often sent as a 429. Retrying never helps until someone acts.

Introduced in 03.8 Errors, Rate Limits, Timeouts and Retries
Quote-first answering

Asking the model to extract the verbatim supporting sentences before writing the answer from them; in a JSON contract, declaring evidence before answer.

Introduced in 07.4 Grounded Generation: Prompts, Context Assembly and Abstention
Quote-level attribution

Citing the exact verbatim text span supporting a claim.

Introduced in 07.5 Citations and Attribution
Quoting

"…" (expands vars) vs '…' (literal) vs \ escapes — controls splitting/expansion.

Introduced in 00.2 The Terminal and Shell

R

$ref

A JSON Schema pointer to a named definition elsewhere in the document.

Introduced in 00.8 Reading API Documentation
@runtime_checkable

Enables isinstance/issubclass on a Protocol — checks method presence only.

Introduced in 01A.10 Type Hints and Writing Readable Code
R-precision

Precision measured at rank R, where R equals the number of relevant items for the query; needs no chosen k.

Introduced in 06.10 Evaluating and Tuning Retrieval
RaBitQ

A 1-bit-per-dimension quantizer with a theoretical error bound on its distance estimates; used with an optional refine stage.

Introduced in 06.4 Vector Indexes: HNSW, IVF, Quantization and Trade-offs
Race condition

A bug whose result depends on the relative timing of operations that the programmer assumed were ordered or exclusive.

Introduced in 01C.3 Race Conditions and Thread Safety
RACI

A responsibility assignment matrix — Responsible, Accountable, Consulted, Informed — used to assign explicit ownership of AI features.

Introduced in 12.9 Responsible AI, Policy and Compliance
RadixAttention

SGLang's radix-tree KV cache that automatically shares prefixes across requests and supports tree-structured (branching) conversation workloads.

Introduced in 11C.6 Open-Weight and Local Models
RAG (retrieval-augmented generation)

Answering with an LLM by retrieving relevant documents into the prompt at question time, so the model reads grounding material instead of recalling it from its weights.

Introduced in 07.1 RAG Architecture: From Question to Grounded Answer
RAG Engine / RagCorpus

Vertex AI's managed RAG index object and its file container.

Introduced in 07.7 Managed RAG: Provider Tools, Platforms and Frameworks
RAG scorecard

The one-page stakeholder report: quality metrics per split and per question type, oracle stage attribution, worst slices, cost/latency, robustness deltas and regressions with confidence intervals.

Introduced in 10A.6 Evaluating RAG Pipelines in Depth
RAG triad

The three core judge-scored RAG quality dimensions: context relevance, groundedness/faithfulness, and answer relevance, named by TruLens's evals docs.

Introduced in 07.9 Evaluating RAG
RAGAS wrapper (DeepEval)

deepeval.metrics.ragas.RagasMetric, which runs five Ragas metrics inside DeepEval and averages them (the docs say four).

Introduced in 10B.4 DeepEval's Built-in Metrics, Opened Up: RAG, Safety, Conversations and More
raise_for_status()

An httpx Response method that raises HTTPStatusError on any non-2xx status (1xx/3xx/4xx/5xx) and returns self on 2xx.

Introduced in 01B.5 HTTP Clients with httpx
Ralph loop

A hook that re-injects the original prompt in a fresh context when the agent tries to exit.

Introduced in 08A.4 Harness Engineering: Everything Around the Model
Ramp limit

A cap on how fast usage on a model may grow, separate from the per-minute limits

Introduced in 11B.7 Rate Limits Across Teams, Throughput Options, Kill Switches and Spend Alerts
Randomisation unit

The entity assigned to a variant (user, session, request, time).

Introduced in 10A.9 Offline vs Online Evaluation
range

Produces integer sequences; stop is excluded.

Introduced in 01A.3 Control Flow and Functions
rank_window_size / WINDOW

The per-retriever depth an engine (Elasticsearch, Redis) feeds into RRF; a too-small default silently truncates each list before fusion.

Introduced in 06.8 Hybrid Search
RankGPT

An LLM listwise reranking method that ranks candidate lists in sliding windows (Sun et al., 2023).

Introduced in 06.9 Reranking
RAPTOR

Recursive Abstractive Processing for Tree-Organized Retrieval: an LLM-built tree of cluster summaries above leaf chunks, retrievable at any abstraction level (Sarthi et al., ICLR 2024).

Introduced in 05.7 Advanced and Document-Specific Chunking
Ratchet

A check that a count may only go down, used so that a migration cannot regress.

Introduced in 08F.15 Patterns, Pitfalls and Migration
Rate limit

A cap on how many requests or tokens an API allows per time window, signalled by 429 and Retry-After.

Introduced in 00.6 HTTP, REST and JSON
Rate-limit headers

Response headers that report each rate limit, how much of it remains and when it resets (OpenAI x-ratelimit-*, Anthropic anthropic-ratelimit-*).

Introduced in 03.8 Errors, Rate Limits, Timeouts and Retries
Rate-limit headroom

Remaining provider quota from x-ratelimit-remaining-* headers, as a gauge.

Introduced in 11A.2 Metrics, Dashboards, SLOs and Alerting
Rationalization

Reasoning that justifies an answer the model has already committed to, rather than deriving it.

Introduced in 04.3 Reasoning Prompts: Chain-of-Thought and Friends
Raw agreement

Fraction of label pairs where judge and human match — flattered by class imbalance.

Introduced in 10A.5 Calibrating and Validating Judges
Raw response

The HTTP-level response (status, headers) behind a parsed object, via with_raw_response or sdk_http_response.

Introduced in 03.1 The Provider APIs and Your First Calls
Raw string

A string literal prefixed with r that keeps backslashes literal; required for regex patterns and Windows paths.

Introduced in 01A.2 Numbers, Strings and Text
Raw text / cleaned text

Immutable parser output vs derived cleaned view.

Introduced in 05.5 Cleaning and Normalization
Raw tool loop first

The selection rule from [2.5](08f-frameworks-and-platforms/01-agent-frameworks.md#25-selection-criteria-the-raw-tool-loop-first): keep your own loop unless a framework does a specific job you can name

Introduced in 08F.1 Agent Frameworks and SDKs
raw_decode

JSONDecoder method parsing one JSON value from a position and reporting where it ends — for JSON embedded in prose.

Introduced in 01A.9 Files, Paths, JSON and CSV
RBAC / IDOR

Role-based access control vs guessing object IDs you don't own — the per-object authZ bug.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Re-asking

Instructor's name for retrying with the validation error appended to the conversation.

Introduced in 03.4 Structured Output
Re-embedding cost

The full corpus re-embed every model change forces.

Introduced in 06.2 Embedding Pipelines: Batching, Caching, Scale and Cost
Re-execution rule

On resume (and on retry) a node restarts from its first line, so code before interrupt() runs again.

Introduced in 08F.12 Human-in-the-Loop and Control Flow
Re-fetch rate

The share of tool calls that repeat a call whose result was previously cleared from context; the hidden cost of masking and tool-result clearing.

Introduced in 10A.11 Evaluating Agent Memory and Context Management
Re-injection / reminder

Repeating critical instructions near the point of attention (end of context, pinned block) to counter drift.

Introduced in 04.7 Context Engineering: Managing Context Over Time
Re-statement rate

The share of production sessions in which a user repeats a durable fact they had already given; an online sign of under-writing or retrieval misses.

Introduced in 10A.11 Evaluating Agent Memory and Context Management
Re-validation trigger

An event (model/prompt/rubric/slice-mix change, scheduled) requiring fresh calibration.

Introduced in 10A.5 Calibrating and Validating Judges
re.compile

Pre-compiled pattern object for reuse.

Introduced in 01A.2 Numbers, Strings and Text
ReAct

Interleaving reasoning traces with actions such as tool calls or searches (Yao et al., 2022); ancestor of tool-using agents.

Introduced in 04.3 Reasoning Prompts: Chain-of-Thought and Friends
`react()` (Inspect agent)

Inspect's built-in tool-using agent loop and the recommended baseline scaffold.

Introduced in 10B.14 Tools and Agents in Inspect: Custom Tools, MCP, react() and Multi-Agent Systems (optional)
Read timeout (streaming)

The longest silence allowed between received bytes; every byte, including keep-alives, resets it, so it never limits a stream's total duration.

Introduced in 03.3 Streaming Responses
Read-back confirmation

Echoing the understood details back to the user and waiting for confirmation before executing a high-stakes or irreversible action.

Introduced in 04.8 Prompt Patterns for Common Tasks
Read-modify-write / lost update

A read-modify-write in which a concurrent write between the read and the write is overwritten and disappears.

Introduced in 01C.3 Race Conditions and Thread Safety
read_sql

Pandas' bridge to SQL databases via DBAPI connections (e.g. stdlib sqlite3).

Introduced in 01B.11 NumPy and pandas Essentials for AI Work
Reader-writer lock

A lock allowing many concurrent readers or one exclusive writer.

Introduced in 01C.4 Deadlocks, Livelock and Starvation
Readiness vs completion model

The kernel says "ready to read" (select/epoll/kqueue) versus "operation finished" (IOCP, io_uring).

Introduced in 01C.1 Concurrency, Parallelism and Context Switching
Reading order / XY-cut

Recursive whitespace-splitting algorithm that approximates human reading order, especially for multi-column pages.

Introduced in 05.2 Parsing PDFs
Reading plan

A time-boxed order for reading documentation, keyed to the lessons you already know, with a core list and an extended list per block

Introduced in 10B.18 Finish Learning DeepEval and Inspect from the Official Docs
readme_lint.py

This lesson's stdlib README checker: structure, links, images, badges, length, secret shapes.

Introduced in 14B.3 GitHub Presence and Project READMEs
ReadOnly

TypedDict key marker telling checkers not to assign it (3.13+).

Introduced in 01A.10 Type Hints and Writing Readable Code
Ready queue

The loop's FIFO of callbacks that can run now; every wake-up of a task is an entry in it.

Introduced in 01C.2 Synchronous vs Asynchronous Programming and the asyncio Event Loop
Realtime API / Live API

Provider APIs holding a continuous low-latency audio session.

Introduced in 09.6 Audio-Native Models and Realtime Foundations
Reason code

A stable machine-readable explanation attached to every guardrail decision, used for alerting, tuning and audit.

Introduced in 12.5 Guardrails and Output Validation
Reasoning effort / thinking level

An API setting that guides how much a model reasons, such as low, medium or high (OpenAI reasoning.effort, Anthropic output_config.effort; Gemini's equivalent is the thinking level).

Introduced in 02.8 Reasoning Models
Reasoning model (thinking model, LRM)

An LLM trained (mainly with reinforcement learning) to generate a reasoning process before its final answer, also called a thinking model or large reasoning model (LRM).

Introduced in 02.8 Reasoning Models
Reasoning separator

Tags or output fields that separate a model's working from its final answer so code can parse them reliably.

Introduced in 04.3 Reasoning Prompts: Chain-of-Thought and Friends
Reasoning summary / thought summary

A readable condensed version of a model's hidden reasoning, produced by a summarizer; you're billed for the full reasoning, not the summary.

Introduced in 02.8 Reasoning Models
Reasoning tokens

Hidden tokens a reasoning model generates while "thinking" before its visible answer. They're billed as output tokens and count towards output limits.

Introduced in 02.2 Tokens and Tokenization
Reasoning tokens / thinking tokens

Tokens a model generates while reasoning, separate from the visible answer; also called thinking tokens. They're billed as output tokens even when hidden.

Introduced in 02.8 Reasoning Models
Rebase

Replaying a branch's commits onto a new base, producing new hashes; safe only on unpushed branches.

Introduced in 00.3 Git Fundamentals
Recall-oriented vs precision-oriented retrieval

First-stage retrieval optimises getting the answer into the candidate set; reranking optimises ordering the top few.

Introduced in 06.9 Reranking
recall@k

Fraction of questions whose answer-bearing chunk appears in top-k.

Introduced in 05.6 Chunking Strategies
Recency decay

Multiplying a score by 0.5**(age/half_life) so newer documents rank higher without hard exclusion.

Introduced in 06.6 Filtering, Metadata and Multi-Tenant Search
Recency/primacy effect

Examples near the end or start of the prompt exerting more influence.

Introduced in 04.2 Zero-Shot, Few-Shot and Examples
Reciprocal Rank Fusion (RRF)

Rank-based merge Σ 1/(k+rank) across result lists — robust to incomparable score scales; owned by [06.8](06-embeddings-vector-search/08-hybrid-search.md).

Introduced in 06.6 Filtering, Metadata and Multi-Tenant Search
Recitation

Rewriting the plan at the end of context to keep goals in the model's recent attention.

Introduced in 08A.4 Harness Engineering: Everything Around the Model
Reconciliation

The job diffing manifest vs vector store to detect and repair drift.

Introduced in 05.9 Ingestion Pipelines and Incremental Updates
Reconciliation (eval numbers)

Explaining why two tools' headline numbers for the same eval differ: first compare the set of failing cases, then the definition of each number.

Introduced in 10B.1 The Eval Framework Track: DeepEval, Inspect AI and Your Setup
Record manager

The ledger of hashed keys and timestamps that records what is in the store (InMemoryRecordManager, SQLRecordManager).

Introduced in 08F.9 RAG with LangChain
record_to_sample

A function passed to an Inspect loader that turns one source record into one or more Samples; the place to transform, validate and reject bad rows at load time.

Introduced in 10B.9 Inspect Datasets, Solvers and Task Configuration (optional)
Recorded outputs / cassettes

Captured model responses stored as test fixtures; must be labelled with date, model and settings.

Introduced in 14B.3 GitHub Presence and Project READMEs
Recorded walkthrough

A video/GIF demo showing real product behaviour without a live endpoint.

Introduced in 14B.2 Portfolio Strategy: Choosing and Shaping Projects
Recorder client

A langsmith.Client with a custom HTTP session that stores requests instead of sending them; used here to inspect and test traces offline.

Introduced in 11A.5 LangSmith, Testing and Deployment
Recording rule

A Prometheus rule that pre-computes a query result as a new metric.

Introduced in 11A.2 Metrics, Dashboards, SLOs and Alerting
Recovery codes

One-time backup codes that regain account access if you lose your 2FA method.

Introduced in 00.1 Setting Up Your Computer for Development
recovery_rate

Fraction of error/denied steps followed by a different-tool success within a window.

Introduced in 10A.7 Evaluating Agents, Tool Use and Multimodal Systems
Rectifier

In PPI, the mean of (human − judge) over the labelled sample: the judge's measured average error.

Introduced in 10A.5 Calibrating and Validating Judges
Recursion / RecursionError

Function calling itself / depth-limit error (~1000).

Introduced in 01A.3 Control Flow and Functions
Recursion limit

LangGraph's cap on steps per run (10,007 by default in langgraph 1.2.22), raising GraphRecursionError.

Introduced in 08F.8 Tools and create_agent
Recursive splitting

Separator-hierarchy splitting that recurses only into oversized pieces.

Introduced in 05.6 Chunking Strategies
RecursiveCharacterTextSplitter

The default splitter: tries paragraph, line, word and character separators in turn and merges pieces up to chunk_size.

Introduced in 08F.9 RAG with LangChain
Red-teaming

Deliberately attacking a model (jailbreaks, harmful requests, prompt injection) to find failures before release.

Introduced in 02.6 How LLMs Are Trained
`red_team()` and `RedTeamer`

The function and the class behind it; RedTeamer keeps cases so reuse_simulated_test_cases=True can replay them. Both return a RiskAssessment

Introduced in 10B.7 DeepEval in Production: Red Teaming, CI/CD, Prompt Optimization and Confident AI
Redaction

Masking credential-shaped spans before text reaches logs or error messages.

Introduced in 01B.2 Environment Variables, Configuration and Secrets
Redaction filter

A logging filter that scrubs credential-shaped strings and PII from the final message before it reaches any handler.

Introduced in 01B.10 Logging, Debugging and Packaging: Putting the Toolkit Together
Redirection

>, >>, <, 2>, 2>&1, /dev/null — route streams to files or nowhere.

Introduced in 00.2 The Terminal and Shell
RediSearch vector index

Redis's FT.CREATE ... VECTOR index over hash/JSON fields supporting FLAT, HNSW and SVS-VAMANA algorithms.

Introduced in 06.5 Vector Databases: Choosing and Using One
Reducer

A function (current, update) -> new attached to a key with Annotated, combining repeated and parallel writes.

Introduced in 08F.10 LangGraph Fundamentals
Reducer (Inspect)

In Inspect AI, the function that combines one sample's scores from several epochs into one score before metrics run, such as mean, pass_at_k, pass_k_k, majority or at_least_k; it is applied (as mean) even with one epoch, converting labels to floats.

Introduced in 10B.10 Inspect Scorers, Metrics, Epochs and the Statistics Inspect Reports (optional)
reduction

An operation collapsing an axis (sum, mean, max, argmax...).

Introduced in 01B.11 NumPy and pandas Essentials for AI Work
Reductions (Inspect)

The per-sample values left after epoch reduction, from which Inspect computes metrics; stored with the log header and the right input for paired comparisons.

Introduced in 10B.13 Inspect Logs, Analysis and Extending Inspect (optional)
Reentrancy

A function can be safely re-entered (by recursion, signal handler, callback or finalizer) before an earlier call has finished; distinct from thread safety.

Introduced in 01C.3 Race Conditions and Thread Safety
Reentrant lock (RLock)

A lock that its owner can acquire again without blocking; released once per acquire.

Introduced in 01C.4 Deadlocks, Livelock and Starvation
Reference answer

The ground-truth answer an eval item's output is compared against.

Introduced in 10A.2 Building Evaluation Datasets
Reference architecture

The layered blueprint for an AI application — clients, edge/BFF, application API, orchestration, model gateway, retrieval, tools, storage, jobs, observability, safety and config — where each layer exists because a specific AI property demands it.

Introduced in 13A.5 Architecture Patterns for AI Applications
Reference counting

CPython's memory-management scheme: each object counts references to it and is freed at zero; the reason the GIL exists.

Introduced in 01C.5 The Global Interpreter Lock (GIL)
Reference cycle

Objects that refer to each other so their reference counts never reach zero without help from the cyclic garbage collector.

Introduced in 01C.6 Python Memory Management
Reference images

Input images conditioning style/content/identity (up to 16 OpenAI, 14 Gemini).

Introduced in 09.3 Image Generation and Editing
Reference outputs

The expected result stored on an example and never passed to your application.

Introduced in 11A.5 LangSmith, Testing and Deployment
Reference-based / reference-free

Judging against a gold answer / judging without one.

Introduced in 10A.4 LLM-as-Judge
Reference-guided

Judge sees the underlying evidence (chunks, tool outputs), not a gold answer.

Introduced in 10A.4 LLM-as-Judge
Reference-guided judging

Showing the judge the underlying evidence (retrieved chunks, tool outputs, source documents) so it verifies grounding rather than matching a gold answer.

Introduced in 10A.4 LLM-as-Judge
Referral

An application flagged by someone inside the company; consistently the highest-conversion channel.

Introduced in 14B.5 Résumé, LinkedIn and the Job Search
Reflection / self-critique

A critic call judging a draft; Reflexion adds verbal feedback across retries.

Introduced in 08A.10 Agent Patterns: ReAct, Plan-and-Execute, Routing and Orchestrator-Workers
Reflection gate

A check run when the loop tries to finish; failures are sent back as feedback, up to a retry cap

Introduced in 08A.11 Reflection, Parallel Fan-Out and Agent-as-a-Tool
Reflection LM

The language model an optimizer uses to critique execution traces and propose prompt revisions.

Introduced in 04.9 Iterating, Debugging and Porting Prompts
Reflexion

An agent that stores verbal self-reflections on failed trials in memory and retries (Shinn et al.).

Introduced in 04.11 Named Prompting Techniques: A Field Guide
Reformulation rate

How often users re-ask differently — a proxy for retrieval failure.

Introduced in 06.10 Evaluating and Tuning Retrieval
Refusal short-circuit

The red-team rule that an empty reply, or one containing a decline phrase, is scored as resisted without calling the judge, which can auto-pass a harmful reply that happens to contain such a phrase.

Introduced in 10B.7 DeepEval in Production: Red Teaming, CI/CD, Prompt Optimization and Confident AI
Refusal style guide

Per-category rules for how to refuse — tone, alternatives offered, escalation path — versioned with the content policy.

Introduced in 12.3 Jailbreaks and Model-Level Safety
Register

The Inspect Evals mechanism for listing evaluations implemented in upstream repositories.

Introduced in 10B.16 Evaluating Agents with Inspect, and the Inspect Ecosystem (optional)
Registration

Writing an inventory entry before an agent gets tools; the entry starts as proposed

Introduced in 14A.6 Agent Inventory, Risk and Autonomy Classification, and Policy-as-Code
Regression / classification

Predicting a number / picking one of a set of categories.

Introduced in 02.1 Neural Network Basics
Regression gate

An automated eval check that blocks merges: cheap deterministic metrics per commit, expensive judge metrics per milestone.

Introduced in 07.9 Evaluating RAG
Regression suite

Golden cases plus scorers/assertions, output snapshots and canary cases run as a gate on every prompt or model change.

Introduced in 04.9 Iterating, Debugging and Porting Prompts
Regret

How much more a policy costs (or loses in quality) versus the oracle.

Introduced in 11B.5 Model Selection and Routing
Regular expression

Pattern language for matching text shapes; Python's re module.

Introduced in 01A.2 Numbers, Strings and Text
Reinforcement fine-tuning (RFT)

Training a model with a grader that scores candidate responses and reinforces the high scorers; distinct from SFT (demonstrations) and DPO (pairwise preferences).

Introduced in 13A.8 Decision Frameworks: Eight Decisions Plus One
Reinforcement learning with verifiable rewards (RLVR)

See [RLVR](#rlvr).

Rejection sampling

Generating N candidates per input and keeping only those passing a scorer/verifier.

Introduced in 10A.2 Building Evaluation Datasets
Relation extraction / graph preview

(subject, predicate, object) triples extracted during enrichment; optionally feed a property graph for multi-hop queries — usually not worth the consistency cost vs flat metadata.

Introduced in 05.8 Metadata Design
Relational / document / key-value / vector DB

Tables+SQL / JSON-like documents / key→blob map.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Relational database

Data organised into tables linked by keys.

Introduced in 00.7 SQL Basics with SQLite
Relative score fusion

Min-max-normalised weighted score fusion (Elasticsearch linear with minmax)

Introduced in 06.8 Hybrid Search
relative_to() / is_relative_to()

Re-anchor a path under a base / test containment (the traversal guard).

Introduced in 01A.9 Files, Paths, JSON and CSV
Release criteria

The declared, measurable bar (eval pass rates, regression margins, safety) a change must meet to ship.

Introduced in 11C.4 Operating LLM Systems: Governance, Incidents and the Production Checklist
Release evidence

The artefact recording versions, eval results, approvals and rollback targets.

Introduced in 11C.2 CI/CD for Prompts, Models and Evals
Release gate

A pass rule that must be met before a change is allowed to go live

Introduced in 08F.16 Low-Code Agent Platforms: n8n and Dify (awareness)
Release history (PyPI)

The dated list of every published version of a package on PyPI; the authoritative answer to "what exists", unlike a changelog page or GitHub Releases, which can lag.

Introduced in 10B.18 Finish Learning DeepEval and Inspect from the Official Docs
Release triple

The prompt_version + model_tier + index_version shipped, evaluated and rolled back as one unit because the components interact.

Introduced in 07.11 Production RAG: Security, Freshness, Cost and Operations
Release unit

The set of code, prompts, models, parameters, tools, schemas, retrieval config, indexes, guardrails, dependencies and data versioned and rolled back together.

Introduced in 11C.2 CI/CD for Prompts, Models and Evals
Relevance floor

A minimum relevance below which a memory is never returned

Introduced in 08B.4 Long-Term Memory and Memory Operations
Relevance score

A store's normalized 0 to 1 score used by similarity_score_threshold; not available on every store.

Introduced in 08F.9 RAG with LangChain
Relevance threshold

A minimum retrieval score below which a candidate is dropped before packing.

Introduced in 04.6 Context Engineering: Selecting and Ordering Context
Relevance vs recall

Precision of what you include vs coverage of what you might need — retrieve for recall, pack for precision.

Introduced in 04.6 Context Engineering: Selecting and Ordering Context
relevant_spans

A Cohere v5 feature returning which document spans drove each rank.

Introduced in 06.9 Reranking
Reliable knowledge cutoff

The date up to which a model's knowledge is most complete; knowledge of the months just before the training data cutoff is thinner.

Introduced in 02.10 Limitations and Failure Modes
Reliance rate

Share of shown outputs the user acts on — the behavioural half of trust measurement.

Introduced in 13A.3 AI UX II: Trust, Transparency, Feedback and Human-in-the-Loop
RemainingSteps

A managed state value holding the number of super-steps left, for graceful exits.

Introduced in 08F.10 LangGraph Fundamentals
Remote

Another copy of a repository that git knows how to push to and fetch from — usually a hosted one like GitHub, but any reachable repo works.

Introduced in 00.4 GitHub and Collaboration
Remote-tracking branch

A local bookmark like origin/main recording where the remote's branch was at your last fetch or pull.

Introduced in 00.4 GitHub and Collaboration
RemoteGraph

A wrapper that lets a deployed assistant be used as if it were a local compiled graph.

Introduced in 11A.5 LangSmith, Testing and Deployment
Removed

No longer present: the import or call fails on the new version.

Introduced in 08F.15 Patterns, Pitfalls and Migration
RemoveMessage

A message that tells a reducer or middleware to delete the message with a given id.

Introduced in 08F.5 Chat Models, Messages and Content Blocks
removeprefix / removesuffix

str methods (Python 3.9+) that strip one exact affix — safer than lstrip/rstrip (which strip character sets) or regex for a known prefix/suffix.

Introduced in 01A.2 Numbers, Strings and Text
Render / paint

Browser turns HTML+CSS+JS into pixels; the DOM is the live element tree.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
RenderedPrompt

The validated render output: system + text + variables + hashes.

Introduced in 04.10 Prompt Templates, Versioning and a Prompt Library
Repeat detection

Stopping when the same message or call appears again, as a sign of no progress

Introduced in 08D.1 One Agent or Several: Roles and the Two Basic Patterns
Repeat-incident rate

The share of incidents that are recurrences of a known class — a measure of whether organisational learning is working.

Introduced in 11C.4 Operating LLM Systems: Governance, Incidents and the Production Checklist
Repetition penalty

A multiplicative penalty on the scores of tokens already seen.

Introduced in 02.5 Generation and Sampling
REPL

Read-Eval-Print Loop: the interactive >>> interpreter for experimenting without files.

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
Replanner

The cheap call after each step deciding continue / revise / respond.

Introduced in 08A.10 Agent Patterns: ReAct, Plan-and-Execute, Routing and Orchestrator-Workers
Replay

Re-running the nodes after an old checkpoint with unchanged state.

Introduced in 08F.11 Persistence, Durable Execution and Memory
Replay determinism

The requirement that a replayed node makes the same task and interrupt calls in the same order.

Introduced in 08F.11 Persistence, Durable Execution and Memory
Replay flip rate

The success rate of a failed run with one point fixed minus its success rate without the fix, measured over several replays.

Introduced in 10A.12 Evaluating Multi-Agent Systems and Validating User Simulators
Replay solver

An Inspect solver that returns recorded outputs instead of calling a model, so Inspect's scorers and viewer apply to answers captured elsewhere, for example by a DeepEval run or in production.

Introduced in 10B.17 DeepEval or Inspect? Choosing, Combining and Migrating (optional)
Replica / health check

Redundant app copies; checks tell the balancer who's alive.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Repository (repo)

A folder whose contents git tracks; ai-path becomes one in lesson 00.3.

Introduced in 00.1 Setting Up Your Computer for Development
Repository map

A compressed outline of a codebase (paths + symbols) used as prompt context.

Introduced in 08A.15 Coding and Computer-Use Agents
Repository topics

Up to 20 lowercase-hyphen labels (≤50 chars) classifying a repo for discovery.

Introduced in 14B.3 GitHub Presence and Project READMEs
repr vs str

repr gives unambiguous developer text (quotes/escapes, paste-able back into Python); str gives human-friendly display text.

Introduced in 01A.2 Numbers, Strings and Text
repr()

String giving an unambiguous representation of a value.

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
Representation learning

A neural network discovering its own useful internal features (such as edges, shapes or word meanings) during training, instead of having them hand-designed.

Introduced in 02.1 Neural Network Basics
Reproduce (a bug)

Making the failure happen reliably on demand.

Introduced in 00.9 Working Like an Engineer: Debugging, Asking for Help and Learning Habits
Reproducibility test

The clean-environment check that a stranger can clone and run the project in ~5 minutes.

Introduced in 14B.2 Portfolio Strategy: Choosing and Shaping Projects
Reproduction case

The stored exact request behind a flagged call, with its trace ID and context, kept (with a retention limit) so it can be replayed.

Introduced in 03.10 Logging, Debugging and Testing LLM Code
Request ID / request_id

The per-request identifier for support and log correlation ([glossary](glossary.md)).

Introduced in 00.8 Reading API Documentation
Request middleware / response middleware

Hooks that may change a request before it is sent or a response before it is returned, run around every call.

Introduced in 03.11 Building a Provider-Agnostic Client
Request packing

Putting several items into one request to share instruction tokens and cut request counts; not the same as a Batch API.

Introduced in 03.9 Async, Concurrency and Batch Processing
Request trace

Following one request through every layer to name the failing hop.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
requestState

Opaque token an MCP server returns inside an InputRequiredResult; the client echoes it verbatim on the retried call. Servers must treat it as attacker-controlled and integrity-protect it.

Introduced in 08E.1 The Model Context Protocol (MCP)
require_parameters

An OpenRouter routing option (provider.require_parameters: true) that only uses endpoints supporting every parameter in the request.

Introduced in 03.4 Structured Output
Required / NotRequired

Per-key optional overrides inside a TypedDict (3.11+).

Introduced in 01A.10 Type Hints and Writing Readable Code
Required controls

The cumulative list of controls a tier must have in place

Introduced in 14A.6 Agent Inventory, Risk and Autonomy Classification, and Policy-as-Code
Required deliverables

The five things every capstone ships: tests, an eval set, tracing, a cost report and a security checklist

Introduced in 13B.1 Capstone Planning and Scoping
Required status check

A CI check that must pass before a pull request can be merged.

Introduced in 00.4 GitHub and Collaboration
Requirement level

Required, conditionally required, recommended or opt-in: how much a convention asks of you for an attribute

Introduced in 11A.1 Tracing and Observability for LLM Applications
requirements.txt

A flat list of pinned dependencies installed with pip install -r.

Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Library
requires-python

The project's Python-version constraint / the file pinning which interpreter uv prefers.

Introduced in 01B.1 Project Setup with uv: Environments, Dependencies and Tooling
reraise

A tenacity option that raises the original exception instead of RetryError.

Introduced in 01B.9 Retries, Timeouts, Backoff and Resilience
Rerank depth (N) / final k

How many first-stage candidates the reranker sees / how many survive to the LLM context.

Introduced in 06.9 Reranking
Reranker / second-stage ranker

A model that re-scores a small candidate set from first-stage retrieval to produce a more precise final ranking.

Introduced in 06.9 Reranking
Rerun noise vs sampling uncertainty

Two sources of uncertainty in an eval number: variation from re-running the same samples (shrinks with more epochs) and variation from which samples were drawn (shrinks only with more samples, and dominates the reported standard error).

Introduced in 10B.10 Inspect Scorers, Metrics, Epochs and the Statistics Inspect Reports (optional)
Rescoring / re-ranking

Re-scoring candidates with full-precision vectors to restore recall.

Introduced in 06.4 Vector Indexes: HNSW, IVF, Quantization and Trade-offs
Researcher

A role that finds facts with read tools and reports them

Introduced in 08D.1 One Agent or Several: Roles and the Two Basic Patterns
Reserve

The part of a limit kept back for the wrap-up call; normal work may not use it

Introduced in 08A.3 Loop Control, Budgets and Stagnation Detection in the Raw Loop
Reserve-then-settle

Reserving a call's worst-case cost against a budget before sending, then replacing the reservation with the actual cost afterwards, so concurrent requests can't overspend.

Introduced in 03.7 Token Counting, Cost Tracking and Prompt Caching
Reserved capacity

The sum of the guarantees, kept below the total so a spare pool remains

Introduced in 11B.7 Rate Limits Across Teams, Throughput Options, Kill Switches and Spend Alerts
Residual connection / residual stream

Adding each sublayer's output to its input; the running vector those additions build.

Introduced in 02.4 Attention and Transformers
Residual risk

Risk remaining after mitigations, explicitly accepted by a named owner rather than assumed away.

Introduced in 12.1 Threat Modelling LLM Applications
Resolution rate vs automation rate

Intercom's distinction: share of conversations resolved vs share of total workload handled end-to-end.

Introduced in 13A.7 Case Studies: How Real AI Products Are Built, and How They Fail
Resolution tier

Anthropic's grouping of Claude models by maximum native image size: high-resolution (Claude 4.7 and later: 2,576 px, 4,784 tokens) and standard (1,568 px, 1,568 tokens).

Introduced in 03.6 Images, PDFs and Files
resolve()

Path methods: make absolute + collapse ../symlinks; re-anchor under a base; test containment — the path-traversal guard trio.

Introduced in 01A.9 Files, Paths, JSON and CSV
Resolver

The algorithm that picks one compatible version for every package from specifiers.

Introduced in 01B.1 Project Setup with uv: Environments, Dependencies and Tooling
Resource / collection

The thing an endpoint names (/tickets/1042) / the plural list (/tickets).

Introduced in 00.6 HTTP, REST and JSON
Resource server

The OAuth role of the MCP server: it holds the protected tools and data and accepts tokens

Introduced in 08E.3 Remote MCP: OAuth, Gateways and Many Servers
Resource tracker

A helper process started by multiprocessing that unlinks shared-memory segments still registered at exit and warns about the leak.

Introduced in 01C.7 Shared Memory and Inter-Process Communication
Response buffering (proxy)

A proxy collecting a response before forwarding it, which breaks streaming; disabled with X-Accel-Buffering: no on nginx.

Introduced in 03.3 Streaming Responses
Response cache (Inspect)

Inspect's local on-disk store of model responses, keyed on the model, constructor args, messages, epoch, generation config and tools, enabled with cache=True or a CachePolicy.

Introduced in 10B.12 Running Inspect Evals for Real: Models, Configuration, Concurrency, Caching, Errors and Eval Sets (optional)
Response cache / semantic cache

A cache that serves stored answers for questions similar (by embedding) to previous ones; a quality dial requiring scope/version keys and eval-set tuning.

Introduced in 07.11 Production RAG: Security, Freshness, Cost and Operations
Response healing

OpenRouter's plugin that repairs malformed JSON syntax in non-streaming responses; it doesn't fix schema violations or truncation.

Introduced in 03.4 Structured Output
Response object

The SDK's typed object for an API reply (Response, ChatCompletion, Message, GenerateContentResponse, Interaction).

Introduced in 03.1 The Provider APIs and Your First Calls
Response prefix

Text at a prompt's end that the model's output should start with (e.g. an open <answer> tag); a soft alternative to prefill.

Introduced in 04.4 Structuring Prompts: XML, Markdown and Delimiters
response.create / response.done

Client event to trigger a model turn / server event marking its completion.

Introduced in 09.7 Realtime Voice Agents
response_format

The create_agent argument that makes the final reply a typed object in structured_response.

Introduced in 08F.6 Prompts, Output Parsers and Structured Output
response_format (image)

Gemini Interactions' output spec: {"type":"image","aspect_ratio","image_size"}.

Introduced in 09.3 Image Generation and Editing
response_metadata

The provider's own envelope on an AIMessage (model name, ids, finish reason); keys differ per provider, so read it for diagnostics such as truncation, not for business logic.

Introduced in 08F.5 Chat Models, Messages and Content Blocks
response_model

The Pydantic model FastAPI validates and filters handler output through — your output contract.

Introduced in 01B.7 FastAPI Basics: Building a Small API
response_schema

An interrupt() option (langgraph 1.2.12 and later) that types and validates the resume value.

Introduced in 08F.12 Human-in-the-Loop and Control Flow
Responses API / Chat Completions

OpenAI's two text-generation APIs: the newer Responses API (client.responses.create) and the older, widely copied Chat Completions API (client.chat.completions.create). Module 03 covers both. *(Introduced in [lesson 02.2](02-how-llms-work/02-tokens-and-tokenization.md#62-openai))* Responses (POST /v1/responses) is recommended for new projects. Chat Completions is "supported indefinitely" and is the format most OpenAI-compatible servers speak. *(Extended in [lesson 03.1](03-llm-apis/01-first-api-calls.md#51-openai-responses-and-chat-completions))*

Responsible AI

The engineering practice of turning AI principles (fairness, safety, privacy, transparency, accountability) into requirements, tests, controls and documentation.

Introduced in 12.9 Responsible AI, Policy and Compliance
respx

A pytest mocking library that patches httpx's transport — httpx only, not httpx2.

Introduced in 01B.5 HTTP Clients with httpx
REST

An architectural style for APIs: resources named by plural-noun URLs, manipulated with HTTP methods — a convention, not a protocol.

Introduced in 00.6 HTTP, REST and JSON
Restart-and-reset

Recovering from a failed stream by retrying and telling the client to clear the partial answer, so no text is shown twice.

Introduced in 03.3 Streaming Responses
restkey / extrasaction

csv.DictReader parameter naming the list that catches overflow fields (default None); csv.DictWriter policy for unexpected dict keys ("raise" default, "ignore").

Introduced in 01A.9 Files, Paths, JSON and CSV
restval / restkey

Fill value for missing trailing fields / name for the overflow-field list.

Introduced in 01A.9 Files, Paths, JSON and CSV
Result novelty

The share of a step's result words not seen in earlier steps

Introduced in 08A.3 Loop Control, Budgets and Stagnation Detection in the Raw Loop
Result policy

Rules that decide, per tool result, whether it stays whole, is truncated or becomes a stub with a handle

Introduced in 08B.3 Short-Term Memory: Truncation, Summarization and Compaction
Result reconciliation

Matching every batch result to its input by ID and accounting for every request, including missing ones.

Introduced in 03.9 Async, Concurrency and Batch Processing
Result store / manifest

results.jsonl per-case rows + run.json provenance record per run.

Introduced in 10A.8 Regression Testing, CI and Experiment Tracking
`ResultMessage`

The final message of a run: subtype, num_turns, session_id, total_cost_usd, usage, permission_denials

Introduced in 08F.3 Claude Agent SDK
resultType

"complete" or "input_required" marker on every result.

Introduced in 08E.1 The Model Context Protocol (MCP)
Resumable session

An agent run whose state (history, todos, budgets, pending approvals) persists in a store so it can pause and continue equivalently.

Introduced in 08B.2 Memory for Agents: Short-Term and Long-Term
Resumable stream

A stream you can reconnect to after a disconnect, receiving only the events you missed: OpenAI background responses (starting_after) and Gemini background interactions (last_event_id).

Introduced in 03.3 Streaming Responses
Resumable upload

Google's two-step upload protocol used by the Gemini Files API: request an upload URL with the file's metadata, then send the bytes (resuming from an offset if interrupted).

Introduced in 03.6 Images, PDFs and Files
Resume

Continuing a paused run by calling the graph again on the same thread with Command(resume=...).

Introduced in 08F.12 Human-in-the-Loop and Control Flow
Resume map

A dict {interrupt id: answer} that answers one or more pending interrupts.

Introduced in 08F.12 Human-in-the-Loop and Control Flow
Resurrection

A finalizer that makes its own object reachable again.

Introduced in 01C.6 Python Memory Management
Retention period

How long a copy of data may exist before deletion

Introduced in 14A.3 Security, Data and Compliance Policy
Retention schedule

The policy table saying how long each data class lives in each store, and why.

Introduced in 11C.4 Operating LLM Systems: Governance, Incidents and the Production Checklist
retention_ratio

Realtime truncation setting controlling how much extra history is dropped per truncation.

Introduced in 09.7 Realtime Voice Agents
Retirement (shutdown)

The date after which requests to a model fail

Introduced in 11C.5 Model Lifecycle on One Page
Retrieval boundary

The smallest k at which a relevant chunk first appears in results — separates "not retrieved" from "retrieved but cut".

Introduced in 07.10 RAG Failure Modes and Debugging
Retrieval cache

A per-session store mapping (query, filters) to retrieved hits, with TTL and size bound, so repeated queries skip re-retrieval.

Introduced in 07.6 Conversational RAG
retrieval configuration

A named, versioned pipeline shape (RetrievalConfig) — first stages, depths, reranker, shaping, guards, cache, trigger.

Introduced in 07.2 Retrieval Strategies for RAG
Retrieval practice

Recalling information rather than re-reading it (stronger retention).

Introduced in 14B.6 Interview Prep I: Coding and Fundamentals
Retrieval score

The weighted sum (relevance + recency + importance + confidence) ranking candidate memories.

Introduced in 08B.2 Memory for Agents: Short-Term and Long-Term
retrieval trigger

The retrieve-or-skip decision made before search runs.

Introduced in 07.2 Retrieval Strategies for RAG
Retrieval-augmented generation (RAG)

Generating answers from retrieved evidence rather than model memory alone.

Introduced in 14B.7 Interview Prep II: LLM System Design
Retrieval-only endpoint

A managed API that returns ranked chunks without generating an answer (OpenAI vector_stores.search, Bedrock Retrieve, Pinecone Context API) — the one you can wrap in a Retriever.

Introduced in 07.7 Managed RAG: Provider Tools, Platforms and Frameworks
retrieval_context (DeepEval)

The chunks a RAG app's retriever actually returned, in rank order, stored on a test case and read by Faithfulness and the Contextual metrics; distinct from context, the ground-truth passages you write, which Hallucination reads.

Introduced in 10B.2 DeepEval Fundamentals: Test Cases, Metrics and the Test Runner
RetrievedHit

One retrieved result as the Trace records it: rank, id, score, source and doc/section provenance.

Introduced in 07.1 RAG Architecture: From Question to Grounded Answer
Retriever (BaseRetriever)

A Runnable that maps a query string to a list of Documents; as_retriever builds one from a vector store.

Introduced in 08F.9 RAG with LangChain
Retriever adapter

A thin class mapping a managed/platform/framework search API onto the Retriever protocol.

Introduced in 07.7 Managed RAG: Provider Tools, Platforms and Frameworks
Retriever contract

search(query, k, filters) -> list[Hit] — the seam every retriever satisfies (06.10).

Introduced in 07.1 RAG Architecture: From Question to Grounded Answer
Retriever protocol

The search(query, k, filters) -> list[Hit] contract every retriever in the module satisfies and Module 07's RAG pipeline consumes.

Introduced in 06.10 Evaluating and Tuning Retrieval
Retrospective

A blameless review of how the project went and what to change

Introduced in 14A.10 Your First-90-Days Project on an Internal Use Case
Retry amplification

Retry layers multiplying each other's attempts — e.g. SDK retries × application retries × gateway retries turning one logical call into a dozen requests.

Introduced in 01B.9 Retries, Timeouts, Backoff and Resilience
Retry budget

A cap on total retry work a system may do, independent of per-call limits.

Introduced in 01B.9 Retries, Timeouts, Backoff and Resilience
Retry owner

The single layer designated to retry a given class of failure.

Introduced in 08F.15 Patterns, Pitfalls and Migration
Retry with feedback

Repair that appends the bad output and the error to the conversation before asking again.

Introduced in 08F.6 Prompts, Output Parsers and Structured Output
Retry-After

A response header (delay-seconds or HTTP-date) telling the client how long to wait.

Introduced in 01B.9 Retries, Timeouts, Backoff and Resilience
Retryable error

A failure caused by timing (a busy server, a network blip, sending too fast) that the same request may survive if sent again later.

Introduced in 03.8 Errors, Rate Limits, Timeouts and Retries
RetryDecision (Inspect)

What a provider's should_retry() returns: rate_limit() (retry and shrink concurrency), transient() (retry, pause growth) or no().

Introduced in 10B.12 Running Inspect Evals for Real: Models, Configuration, Concurrency, Caching, Errors and Eval Sets (optional)
Retrying / AsyncRetrying

Tenacity's retry controllers, usable as decorators or for/with loops.

Introduced in 01B.9 Retries, Timeouts, Backoff and Resilience
RetryPolicy

A node option with initial_interval, backoff_factor, max_interval, max_attempts, jitter and retry_on.

Introduced in 08F.12 Human-in-the-Loop and Control Flow
Return path

Whether every delegation came back, ended in a terminal state and had its result used; orphaned, non-terminal and dropped results are its failures.

Introduced in 10A.12 Evaluating Multi-Agent Systems and Validating User Simulators
Return value / None

What return hands back / implicit return of functions without return.

Introduced in 01A.3 Control Flow and Functions
return_direct

A tool flag that ends the agent loop with the tool's output, only when every tool call in that step has it.

Introduced in 08F.8 Tools and create_agent
reveal_type

Asks the checker to print the type it infers for an expression; prints Runtime type is ... at run time.

Introduced in 01A.10 Type Hints and Writing Readable Code
Reversal curse

A model that learned "A is B" from training text failing to answer "what is B?", because learned associations are directional.

Introduced in 02.10 Limitations and Failure Modes
Reversible token / vault pattern

Opaque PII token with separate token→value store.

Introduced in 05.5 Cleaning and Normalization
Review

A scheduled or triggered check that an entry still matches reality

Introduced in 14A.6 Agent Inventory, Risk and Autonomy Classification, and Policy-as-Code
Review comment / suggestion

Line-anchored feedback; a suggestion is an applyable diff block.

Introduced in 00.4 GitHub and Collaboration
Review fatigue

When the volume of AI output to review exceeds the human's ability to check it properly.

Introduced in 13A.1 Product Thinking for AI Features: What to Build and When Not to Use AI
Review queue

A prioritised table of items needing human judgement, fed by check failures.

Introduced in 05.10 Data Quality Checks
Review standard

A written set of checks, conventions and roles that govern how changes are reviewed

Introduced in 14A.2 Review Standards, Coding and Prompt Conventions
Reviewer

Code, a person or an automatic rule that decides whether a sample may continue after seeing a tool result.

Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)
`ReviewEvent`

The transcript event recording a reviewer decision after a tool event.

Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)
revised_prompt

The prompt the image model actually used after the orchestrating model rewrote it.

Introduced in 09.3 Image Generation and Editing
Revision

Any name for a commit — hash, branch, tag, HEAD, HEAD~N, rev^N, HEAD@{n} — and the a..b / a...b set forms.

Introduced in 00.3 Git Fundamentals
Revision range (.. / ...)

a..b = commits in b not a; a...b = changes on either side since they diverged.

Introduced in 00.3 Git Fundamentals
Reward hacking

When a model exploits flaws in its reward signal (for example padding answers, flattering users or gaming tests) instead of genuinely improving.

Introduced in 02.6 How LLMs Are Trained
Reward model

A model trained to score answers the way human (or AI) raters would, used as the reward signal in RLHF.

Introduced in 02.6 How LLMs Are Trained
ReWOO

Plan the whole trajectory before any tool runs; workers fill #E placeholders (awareness).

Introduced in 08A.10 Agent Patterns: ReAct, Plan-and-Execute, Routing and Orchestrator-Workers
Rewrite for retrieval

LLM rewrite into retrieval-optimised forms (natural + keyword variants).

Introduced in 07.3 Query Understanding, Rewriting and Expansion
RFC 8707 resource

OAuth parameter binding a token to one resource server's audience.

Introduced in 08E.1 The Model Context Protocol (MCP)
Right altitude

Anthropic's term for prompts specific enough to guide behaviour but flexible enough to leave judgement room — between brittle if-else logic and vague guidance.

Introduced in 04.5 System Prompts, Roles and Personas
Right-to-erasure deletion

Propagating a delete request through raw store, manifest, vectors, caches and backups.

Introduced in 05.9 Ingestion Pipelines and Incremental Updates
Risk acceptance

A documented decision to launch with a known, named gap — permitted, but recorded with an owner and date, never a silent shortcut.

Introduced in 13B.6 Shipping and Operating Your Capstone: Launch, Demo and Iterate
Risk class

A per-tool label — read, write or destructive — that drives validation, approval and audit behaviour.

Introduced in 08A.6 Designing Tools Models Can Use
Risk floor

A rule that raises a tier for a combination the product underrates

Introduced in 14A.6 Agent Inventory, Risk and Autonomy Classification, and Policy-as-Code
Risk register

The table of what could go wrong, with likelihood, impact, mitigation and owner.

Introduced in 13B.1 Capstone Planning and Scoping
Risk tier

A per-tool/per-argument classification — read, reversible write, approval-required write, irreversible — that drives default permissions, approval requirements and audit depth.

Introduced in 08A.14 Reliable, Safe and Observable Agents
RiskAssessment

The result object of red_team(): an overview of pass rates, errored count and a CVSS-style score, plus the list of graded test cases; the score uses a constant impact, so it is not a measure of harm.

Introduced in 10B.7 DeepEval in Production: Red Teaming, CI/CD, Prompt Optimization and Confident AI
RLAIF

Reinforcement learning from AI feedback, where an AI model rather than humans judges which answers are better.

Introduced in 02.6 How LLMs Are Trained
RLHF

Reinforcement learning from human feedback: humans compare answers, a reward model learns their preferences, and RL optimizes the model against that reward model.

Introduced in 02.6 How LLMs Are Trained
RLock

Reentrant lock: the owning thread may acquire it repeatedly.

Introduced in 01C.3 Race Conditions and Thread Safety
RLVR

Reinforcement learning where the reward comes from an automatic check, such as a correct maths answer or passing unit tests; the technique behind reasoning models.

Introduced in 02.6 How LLMs Are Trained
robots.txt / Robots Exclusion Protocol

The site-published file (RFC 9309) telling crawlers which paths they may fetch.

Introduced in 05.1 Data Sources, Formats and the Ingestion Mindset
Robust z-score

A distance from the median in units of the median absolute deviation, resistant to outliers

Introduced in 11B.7 Rate Limits Across Teams, Throughput Options, Kill Switches and Spend Alerts
Robustness delta

The pass-rate drop from clean inputs to perturbed inputs; a key non-functional gate metric.

Introduced in 10A.10 Evaluation Platforms, Benchmarks and Building an Eval Culture
Rogan–Gladen correction

π̂ = (observed + TNR − 1)/(TPR + TNR − 1) — estimates true pass rate from a biased judge.

Introduced in 10A.5 Calibrating and Validating Judges
Role

The label on a conversation turn saying who produced it (user, assistant/model, system/developer, tool), which tells the model how much authority to give it.

Introduced in 03.2 Messages, Roles and Conversation State
Role-play team

Agents with persona prompts but no real separation of concerns — usually anti-pattern.

Introduced in 08D.3 Multi-Agent Systems
Rollback / compensation / undo log

Ways to reverse or counteract a side effect after the fact (saga pattern).

Introduced in 08A.14 Reliable, Safe and Observable Agents
Rollback criteria

The specific metric thresholds ("roll back if eval score < X, error rate > Y") committed at launch review, not decided during an incident.

Introduced in 13B.6 Shipping and Operating Your Capstone: Launch, Demo and Iterate
Rolling summary

A running summary where each compaction folds the previous summary plus newly-old turns into a new one, so old history stays bounded.

Introduced in 04.7 Context Engineering: Managing Context Over Time
RootModel

A model whose entire content is one root value (bare list/scalar) for non-object JSON.

Introduced in 01B.6 Data Validation with Pydantic
RoPE (rotary position embedding)

Rotating queries and keys by position so scores depend on relative distance.

Introduced in 02.4 Attention and Transformers
rope_theta / rope_scaling

RoPE's base rotation speed; settings for extending context beyond the training length.

Introduced in 02.4 Attention and Transformers
Round-trip consistency

Checking a generated answer/question pair by regenerating one from the other.

Introduced in 10A.2 Building Evaluation Datasets
Round-trip intelligibility

TTS eval: re-transcribe synthesized audio with a different ASR and score WER.

Introduced in 10A.7 Evaluating Agents, Tool Use and Multimodal Systems
Route (retrieve/chat/meta/clarify)

The per-turn decision of whether to retrieve from the index, answer as chit-chat, answer from the conversation record, or ask a clarifying question.

Introduced in 07.6 Conversational RAG
route decision

The router's output: which route, confidence, reason — logged for traces.

Introduced in 07.2 Retrieval Strategies for RAG
route filters

Constraints a route implies (e.g. doc_id=handbook), applied inside retrieval.

Introduced in 07.2 Retrieval Strategies for RAG
RouteDecision

The router's output: alias + router + reason + signals, logged before the call.

Introduced in 11B.5 Model Selection and Routing
RouteFeatures

Cheap request signals (size, media, tools, language, tier) extracted before any model call.

Introduced in 11B.5 Model Selection and Routing
Router (MoE)

The small network in each mixture-of-experts layer that chooses which few experts process each token.

Introduced in 02.1 Neural Network Basics
Router pattern

A classification step that sends the input to one or more agents (with Command or Send) and synthesizes their results.

Introduced in 08F.13 Subgraphs and Multi-Agent Systems
Routing (workflow pattern)

Classifying input with a schema-constrained call, then dispatching to specialised handlers by route and confidence.

Introduced in 08A.9 Workflows vs Agents
Routing agent / handoff

Classify-then-dispatch to a specialist; handoff = control transfers to it.

Introduced in 08A.10 Agent Patterns: ReAct, Plan-and-Execute, Routing and Orchestrator-Workers
Routing confusion matrix

Gold target against chosen target at each handoff decision point, including NONE (should not hand off) and HUMAN (should escalate), read with per-class recall and kappa.

Introduced in 10A.12 Evaluating Multi-Agent Systems and Validating User Simulators
Row-as-document

One database row → one retrievable document.

Introduced in 05.1 Data Sources, Formats and the Ingestion Mindset
Row-level security (RLS)

A database feature (PostgreSQL) that filters every query by policy, so permissions are enforced by the store itself; default-deny when no policy applies.

Introduced in 05.8 Metadata Design
row_factory/sqlite3.Row

Dict-like row access by column name.

Introduced in 00.7 SQL Basics with SQLite
ROW_NUMBER/RANK/LAG/LEAD

Window functions for ranking and row-to-row deltas.

Introduced in 00.7 SQL Basics with SQLite
RPC

Remote procedure call style: invoking a named function over the wire rather than manipulating resources.

Introduced in 00.6 HTTP, REST and JSON
RPM / TPM

Requests per minute and tokens per minute: the two usual rate-limit units for LLM APIs.

Introduced in 00.8 Reading API Documentation
RPO / RTO

Recovery Point Objective (acceptable data loss) and Recovery Time Objective (acceptable restore time).

Introduced in 11C.4 Operating LLM Systems: Governance, Incidents and the Production Checklist
RRF (Reciprocal Rank Fusion)

Score-free method for merging ranked lists via 1/(k+rank).

Introduced in 14B.6 Interview Prep I: Coding and Fundamentals
RSS / VMS / USS / PSS

Resident, virtual, unique and proportional memory measures of a process; PSS divides shared pages among the processes that share them.

Introduced in 01C.6 Python Memory Management
RSS/Atom feed

A machine-readable list of a publication's posts that readers' apps subscribe to.

Introduced in 14B.4 Writing and Learning in Public
RSU

Restricted Stock Unit — a promise of shares at vesting, no exercise cost.

Introduced in 14B.8 Interview Prep III: Take-Homes, Behavioural Rounds and Offers
RTEB

MTEB's retrieval benchmark, which mixes open and private datasets to expose benchmark overfitting.

Introduced in 02.3 Embeddings
Rubber-duck debugging

Explaining your problem aloud (to a duck or a person) until the answer surfaces.

Introduced in 00.9 Working Like an Engineer: Debugging, Asking for Help and Learning Habits
Rubber-stamping

Approving without reading, defeating the purpose of review.

Introduced in 13A.3 AI UX II: Trust, Transparency, Feedback and Human-in-the-Loop
Rubric

Written criteria, with anchored examples, that a judge or human grades against.

Introduced in 10A.1 Why Evals Matter: The Evaluation Mindset
Rubric (DeepEval)

A list of Rubric(score_range, expected_outcome) bands passed to G-Eval that describe what each score means and also redefine the range the raw score is normalized by.

Introduced in 10B.3 Judges in DeepEval: Models, G-Eval, DAG and Custom Metrics
rubric anchor

A named score level in a judge prompt (for example 0.75 "Strong adherence"); anchored scores are ordinal labels, not continuous measurements

Introduced in 10B.5 DeepEval Tracing, Component-Level Evals and Agent Evaluation
Rubric prompt

An evaluation prompt listing explicit criteria, requiring a score and an evidence quote per criterion.

Introduced in 04.8 Prompt Patterns for Common Tasks
Rubric self-assessment

Honest scoring against the 13B.1 rubric with evidence — the artefact that makes the capstone credible.

Introduced in 13B.2 Capstone Build A: The Support Copilot
Rubric-based / judge reward

A reward given by a judge model grading an answer against written criteria, for tasks without an answer key.

Introduced in 02.6 How LLMs Are Trained
Rubric-based reward

See [Rubric-based / judge reward](#rubric-based--judge-reward).

ruff

The standard fast Python linter and formatter (ruff format, ruff check).

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
Rug pull

A server changing its tool definitions after the client approved them — undetectable without definition hashing; a subset of the tool-poisoning threat class.

Introduced in 12.6 Securing Tools, Agents and MCP
Rule of three

With zero events observed in n independent trials, 3/n is an approximate 95% upper confidence bound on the event rate.

Introduced in 10A.11 Evaluating Agent Memory and Context Management
Rule of two

Meta's constraint that an agent session satisfy at most two of: untrusted input, sensitive access, state change/external communication.

Introduced in 12.1 Threat Modelling LLM Applications
Rules as code

Detection rules stored as data (name, event kinds, predicate, window, threshold, severity, runbook link) in version control beside the code they monitor.

Introduced in 12.10 Security Operations, Incident Response and the Safety Checklist
Rules of engagement (RoE)

The written scope, authorisation, test-data rules, blast-radius limits, provider-terms check and stop conditions agreed before any security test runs.

Introduced in 12.8 Red Teaming and Security Testing
Run (LangSmith)

One unit of traced work (a model call, a tool call, a node), the equivalent of an OpenTelemetry span.

Introduced in 11A.5 LangSmith, Testing and Deployment
Run config (Inspect)

A YAML or JSON file holding a whole eval configuration (task, model, roles, generation and eval settings) for inspect eval --run-config, which inspect log export-config writes from a finished log.

Introduced in 10B.9 Inspect Datasets, Solvers and Task Configuration (optional)
Run context (context_schema)

Typed, read-only data you pass per invoke (user id, role) and read as runtime.context.

Introduced in 08F.8 Tools and create_agent
Run directory

The evalkit.cli run output — results.jsonl + run.json + report.md — that gates, compares and audits all read.

Introduced in 11C.2 CI/CD for Prompts, Models and Evals
Run file

DeepEval's .deepeval/.latest_test_run.json (wrapped) and .latest_run_full.json (unwrapped) record of the latest run

Introduced in 10B.7 DeepEval in Production: Red Teaming, CI/CD, Prompt Optimization and Confident AI
Run mutex / leader lock

A guard (status row, advisory lock or orchestrator concurrency limit) ensuring only one pipeline run is in flight at a time.

Introduced in 05.9 Ingestion Pipelines and Incremental Updates
Run record

The small record stored next to a result: Python and package versions, dataset hash, judge identity and the named number.

Introduced in 10B.1 The Eval Framework Track: DeepEval, Inspect AI and Your Setup
Run webhook

A callback the server makes when a run completes, whose success status also covers a run paused at an interrupt.

Introduced in 11A.5 LangSmith, Testing and Deployment
`run_in_parallel`

Input-guardrail setting: run alongside the agent (default) or finish before the agent starts

Introduced in 08F.2 OpenAI Agents SDK
Runbook

A step-by-step operational procedure for a recurring task or incident class, written to be followed under pressure.

Introduced in 11C.4 Operating LLM Systems: Governance, Incidents and the Production Checklist
Runnable

The base interface of langchain-core: any unit of work with invoke, batch, stream and their async forms, composable and traceable.

Introduced in 08F.7 Runnables and LCEL
Runnable batch / batch_as_completed

Client-side parallel calls over a list of inputs, in input order or in completion order with the index.

Introduced in 08F.5 Chat Models, Messages and Content Blocks
RunnableBranch

A Runnable that runs the first branch whose condition is true, or a default.

Introduced in 08F.7 Runnables and LCEL
RunnableConfig

The per-call configuration dict (run_name, tags, metadata, callbacks, max_concurrency, recursion_limit).

Introduced in 08F.5 Chat Models, Messages and Content Blocks
RunnableGenerator

A Runnable that wraps a function from an iterator of chunks to an iterator of chunks, so a custom step can stream.

Introduced in 08F.7 Runnables and LCEL
RunnableLambda

A Runnable wrapping a plain Python function (optionally with an async twin and a config argument).

Introduced in 08F.7 Runnables and LCEL
RunnableParallel

A dict of Runnables that run concurrently on the same input and return a dict of outputs.

Introduced in 08F.7 Runnables and LCEL
RunnablePassthrough

A Runnable that returns its input unchanged; .assign adds computed keys to a dict input, .pick selects keys.

Introduced in 08F.7 Runnables and LCEL
RunnableSequence

The Runnable that a \| b builds: runs steps in order, each output feeding the next input.

Introduced in 08F.7 Runnables and LCEL
Runner

The machine that executes a GitHub Actions job (ubuntu-latest and friends).

Introduced in 00.4 GitHub and Collaboration
Running corpus

The shared fictional Acme document set the module's lessons use.

Introduced in 05.1 Data Sources, Formats and the Ingestion Mindset
Running-balance chain

A statement check: balance[i] = balance[i-1] + amount[i].

Introduced in 09.2 Document Understanding with Vision Models
RunState / interruptions

The serializable paused-run state and pending-approval list in the Agents SDK HITL flow.

Introduced in 08F.1 Agent Frameworks and SDKs
Runtime

What executes your code — for this path, a Python interpreter managed by uv.

Introduced in 00.1 Setting Up Your Computer for Development
Runtime (LangGraph)

The object injected into a node as runtime: context, store, stream writer and execution info.

Introduced in 08F.10 LangGraph Fundamentals
Runtime context

Immutable per-run configuration passed as context= and read through runtime.context; declared with context_schema.

Introduced in 08F.10 LangGraph Fundamentals
Runtime error / exception

Failure while executing (NameError, TypeError, ValueError...).

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
Runtime secret fetch

Reading a secret from the store when the process needs it (cached briefly, refetched on 401) instead of baking it into code, an image or a prompt

Introduced in 12.7 Securing RAG Data, Keys and the AI Supply Chain

S

${{ secrets.X }} / ${{ vars.X }}

Workflow expressions accessing encrypted repository secrets and plain variables.

Introduced in 00.4 GitHub and Collaboration
.str / .dt accessors

Vectorized string / datetime methods on a column.

Introduced in 01B.11 NumPy and pandas Essentials for AI Work
__slots__

Replaces __dict__ with fixed attribute slots — smaller, faster, no dynamic attrs.

Introduced in 01A.6 Classes, Dataclasses and Enums
Safe completion

Preferring a helpful, sourced, clearly-bounded answer over a bare refusal for regulated-advice queries, where the domain permits general information.

Introduced in 12.9 Responsible AI, Policy and Compliance
Safe method

An HTTP method that changes nothing on the server — GET, HEAD, OPTIONS and TRACE (RFC 9110 §9.2.1).

Introduced in 00.6 HTTP, REST and JSON
safe_get

Path-based nested-dict access returning a default instead of raising — structural guard before schema validation.

Introduced in 01A.9 Files, Paths, JSON and CSV
safetensors / pickle

A file format for model weights that stores only numbers, so loading it can't run code. It's the safe alternative to pickle-based .bin/.pt files.

Introduced in 02.1 Neural Network Basics
safety_acknowledgement

Flag set inside a function_result confirming a require_confirmation action was user-approved.

Introduced in 08A.15 Coding and Computer-Use Agents
safety_decision

Gemini's per-action verdict in the function_call arguments (allowed / require_confirmation / blocked), and the flag a function_result carries back when a human approved a require_confirmation action.

Introduced in 08A.15 Coding and Computer-Use Agents
safety_identifier

OpenAI's end-user identifier for abuse detection, replacing the deprecated user field; it should be a hash, never personal data.

Introduced in 03.2 Messages, Roles and Conversation State
Saga (compensation)

A recovery design in which a later failure triggers steps that undo or mark earlier steps.

Introduced in 08F.12 Human-in-the-Loop and Control Flow
SAIF

Google's Secure AI Framework: ~15 AI risks mapped to lifecycle stages with controls (saif.google).

Introduced in 12.1 Threat Modelling LLM Applications
Same-origin policy

Scripts may read responses only from their own scheme+host+port by default.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Sample (Inspect)

One eval case in Inspect AI: an input (text or chat messages), a target (which defaults to the empty string), an optional id, metadata and choices, plus agent fields such as sandbox and files. *(Introduced in [lesson 10B.8](10b-eval-frameworks/08-inspect-fundamentals.md#21-the-three-ingredients))* *(Extended in [lesson 10B.9](10b-eval-frameworks/09-inspect-datasets-solvers-and-tasks.md#21-every-field-of-a-sample))*

Sample buffer (Inspect)

A local database where Inspect keeps samples not yet written to the log file, kept three days after the process exits and used to recover crashed runs.

Introduced in 10B.12 Running Inspect Evals for Real: Models, Configuration, Concurrency, Caching, Errors and Eval Sets (optional)
Sample error (Inspect)

An exception that escapes a sample's solver or scorer; the sample is logged with its error, is not scored, and leaves the metric's denominator unless score_on_error is set.

Introduced in 10B.12 Running Inspect Evals for Real: Models, Configuration, Concurrency, Caching, Errors and Eval Sets (optional)
Sample limit

A per-sample budget enforced during execution: message, token, turn, time, working or cost.

Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)
Sample preservation

Reusing completed samples, matched by id and epoch, when a task is retried

Introduced in 10B.12 Running Inspect Evals for Real: Models, Configuration, Concurrency, Caching, Errors and Eval Sets (optional)
Sample rate

How many times per second the audio wave is measured, in hertz; 16 kHz is the ASR standard because speech content sits below ~8 kHz.

Introduced in 09.4 Speech-to-Text
Sample retry (retry_on_error)

Re-running an errored sample from scratch within the same run; useful for infrastructure blips, risky when failures correlate with the input (distribution shift).

Introduced in 10B.12 Running Inspect Evals for Real: Models, Configuration, Concurrency, Caching, Errors and Eval Sets (optional)
Sample size (proportion)

n = z²p(1−p)/e² with finite-population correction — how many docs a human must review.

Introduced in 05.10 Data Quality Checks
Sample summary (Inspect)

A thin per-sample record (ids, score values, scalar metadata, usage, errors) that can be read without loading transcripts.

Introduced in 10B.13 Inspect Logs, Analysis and Extending Inspect (optional)
Sample-ratio mismatch (SRM)

Observed per-arm assignment counts that don't match the intended split — a chi-square check run before reading any experiment result; a mismatch means broken randomisation, not a finding.

Introduced in 10A.9 Offline vs Online Evaluation
Sampled judge scoring

Running a calibrated LLM judge on a sample of production traces.

Introduced in 10A.9 Offline vs Online Evaluation
Sampler

The code that turns logits into a chosen token (temperature, truncation, penalties, random draw).

Introduced in 02.5 Generation and Sampling
SampleSource

An Inspect dataset that produces samples while the task runs, in response to finished samples (for example escalating difficulty until failure); accuracy over it is not a fixed-denominator accuracy.

Introduced in 10B.9 Inspect Datasets, Solvers and Task Configuration (optional)
Sampling / roots

Deprecated client features: server-requested LLM call / client-declared directories.

Introduced in 08E.1 The Model Context Protocol (MCP)
Sampling audit

Random fraction of confident outputs sent to review for quality checks.

Introduced in 13A.3 AI UX II: Trust, Transparency, Feedback and Human-in-the-Loop
Sandbox (Inspect)

A per-sample execution environment for files and processes, accessed only through the sandbox() API.

Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)
Sandbox instance

One concrete environment for one sample execution, created fresh even across epochs.

Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)
Sandbox provider

The implementation that creates the environment, such as Docker, Kubernetes, local, Daytona, Modal, Proxmox or Vagrant.

Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)
SandboxedEnvironment

Jinja environment that blocks unsafe attribute access; used for templates editable by non-engineers or end users.

Introduced in 04.10 Prompt Templates, Versioning and a Prompt Library
`SandboxEvent`

The transcript event recording a sandbox command or file operation.

Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)
`SandboxTimeoutError.reason`

The field that distinguishes a command's own timeout from sandbox infrastructure timeout.

Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)
Sandwich norm

Normalizing both the input and the output of each sublayer (Gemma 2 and 3).

Introduced in 02.4 Attention and Transformers
Sanitised rebuild

Recreating a past-work idea as a generic public version with own code, fictional data, no proprietary artefacts.

Introduced in 14B.2 Portfolio Strategy: Choosing and Shaping Projects
Sanity query test

A fixed set of known queries with known-relevant chunks run after each index build to catch quality regressions.

Introduced in 06.2 Embedding Pipelines: Batching, Caching, Scale and Cost
Saturated case

A case every system passes — retired to a cheap smoke subset.

Introduced in 10A.2 Building Evaluation Datasets
Saturation

When top models all score near the maximum, so a benchmark can no longer tell them apart.

Introduced in 02.9 Model Landscape
Save and stop

Pausing by persisting state and returning, so nothing waits in memory

Introduced in 08A.12 Human-in-the-Loop and Approval Gates as a Pattern
Saying no

Declining work with an alternative or reprioritisation offer, not silent resentment.

Introduced in 14B.9 Your First 90 Days and Long-Term Growth
SBOM (CycloneDX)

Software bill of materials — uv export --format cyclonedx1.5.

Introduced in 01B.1 Project Setup with uv: Environments, Dependencies and Tooling
Scaffolded prompt

Extra explicit structure (steps, formats, examples) that small or non-reasoning models need more of.

Introduced in 04.1 Anatomy of a Good Prompt
Scaffolding vs durable value

Components that only compensate for a current model weakness (keep thin, expect to remove) vs value that survives a better model: data, workflow integration, evals, trusted UX.

Introduced in 13A.1 Product Thinking for AI Features: What to Build and When Not to Use AI
Scalar quantization (SQ)

Storing each dimension as an int8/uint8 instead of float32.

Introduced in 06.4 Vector Indexes: HNSW, IVF, Quantization and Trade-offs
Scaled dot-product attention

Attention computed as softmax of query–key dot products divided by √d, used to blend values.

Introduced in 02.4 Attention and Transformers
Scaling harness

A script that runs the same function in 1 and N threads to measure whether it scales, instead of guessing.

Introduced in 01C.5 The Global Interpreter Lock (GIL)
Scaling laws

Empirical rules showing that a model's loss improves smoothly and predictably as model size, data and compute increase.

Introduced in 02.6 How LLMs Are Trained
scan finding

A scanner result, usually with location, explanation, severity or label information depending on the scanner.

Introduced in 10B.16 Evaluating Agents with Inspect, and the Inspect Ecosystem (optional)
Scanned / image-only page

A page that is just a picture, with no text layer.

Introduced in 05.4 OCR and Scanned Documents
scanner

A Scout component that takes a transcript or event stream and produces structured findings.

Introduced in 10B.16 Evaluating Agents with Inspect, and the Inspect Ecosystem (optional)
scanner validation set

Labelled transcripts used to estimate a scanner's precision, recall and failure modes before relying on its output; in Inspect Scout, a CSV, YAML, JSON or JSONL file of id,target pairs passed as validation=, whose agreement figure depends on the comparison predicate (eq by default).

Introduced in 10B.16 Evaluating Agents with Inspect, and the Inspect Ecosystem (optional)
Scenario (memory eval)

An ordered sequence of sessions for one or more users, with gold annotations and probes; the unit of memory evaluation and the reset boundary.

Introduced in 10A.11 Evaluating Agent Memory and Context Management
Scenario suite

JSONL traces + expect assertions run through evalkit.

Introduced in 13B.5 Capstone Build C: The Realtime Voice Agent Product
Scene-change detection

Finding shot boundaries by measuring frame-to-frame visual difference; PySceneDetect implements tuned detectors, and the lesson includes a NumPy histogram version.

Introduced in 09.8 Video Understanding
Schedule / interleaving

One possible order in which the steps of several threads run.

Introduced in 01C.3 Race Conditions and Thread Safety
Schedule explorer

A test that runs every interleaving of small modelled steps against an invariant.

Introduced in 01C.3 Race Conditions and Thread Safety
Schema

The blueprint: tables, columns, types, constraints.

Introduced in 00.7 SQL Basics with SQLite
Schema linter

A pre-flight check of a schema against each provider's documented rules, run in tests before any request is sent.

Introduced in 03.4 Structured Output
Schema registry

The mapping document-kind → (Pydantic schema, prompt version, validator set).

Introduced in 13B.3 Capstone Build B: The Document Intelligence App
Schema snapshot test

A golden-file test over model_json_schema() output that catches accidental contract drift — a specialisation of "snapshot test".

Introduced in 08A.6 Designing Tools Models Can Use
Schema transform

The rewriting an SDK applies to your schema before sending it, such as making every field required, adding additionalProperties: false, or moving unsupported constraints into descriptions.

Introduced in 03.4 Structured Output
Schema validation

Checking the shape of arguments: types, required fields, enums, ranges

Introduced in 08A.7 Tool Safety in the Loop: Idempotency, Validation and Truncation
Schema version / migration

Versioning the metadata schema so old records stay interpretable.

Introduced in 05.8 Metadata Design
Scope creep

Work expanding beyond the original estimate without an explicit conversation.

Introduced in 00.9 Working Like an Engineer: Debugging, Asking for Help and Learning Habits
Scope guard

A check in the adapter that refuses to contact any host outside the rules-of-engagement allow-list, so a mistyped or swapped URL cannot turn a staging test into a production incident.

Introduced in 12.8 Red Teaming and Security Testing
Scoped credential

A credential limited to specific scopes, a tenant and a single tool, with a short TTL — the unit of least privilege for tool calls; obtained via token exchange in production.

Introduced in 12.6 Securing Tools, Agents and MCP
Scoped limit

A limit context manager around a block of solver or agent code rather than a whole sample.

Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)
Score (Inspect)

A scorer's verdict for one sample: a value (a label such as "C"/"I", a number, a bool, a list or a dict), the extracted answer, an explanation, an optional machine-readable reason and metadata.

Introduced in 10B.8 Inspect AI Fundamentals: Task = Dataset + Solver + Scorer (optional)
Score anchor

A concrete description of what each point on a judge's rating scale looks like.

Introduced in 10A.4 LLM-as-Judge
Score calibration

Making rerank scores comparable to a fixed threshold, per query or globally.

Introduced in 06.9 Reranking
Score distribution

The spread of scores for relevant vs irrelevant items — usually overlapping.

Introduced in 06.3 Similarity Metrics and Nearest-Neighbour Search
score floor

A minimum effective_score for a hit to survive shaping.

Introduced in 07.2 Retrieval Strategies for RAG
Score fusion

Weighted sum of per-retriever normalised scores (min-max or z-score), preserving score margins at the cost of per-query normalisation fragility.

Introduced in 06.8 Hybrid Search
Score gap / elbow

The drop between consecutive ranked similarity scores; a diagnostic hint for where relevant results end.

Introduced in 06.3 Similarity Metrics and Nearest-Neighbour Search
Score matrix

The (n_queries, N) matrix of all pairwise similarities from one matmul.

Introduced in 06.3 Similarity Metrics and Nearest-Neighbour Search
Score normalization

Rescaling per-collection scores (min-max/z-score) before merging result lists.

Introduced in 06.6 Filtering, Metadata and Multi-Tenant Search
Score threshold

A cut-off on similarity score deciding match/no-match; must be tuned per model, measure and corpus.

Introduced in 06.3 Similarity Metrics and Nearest-Neighbour Search
Score view (Inspect)

Whether an Inspect metric receives reduced scores (one per sample) or unreduced scores (one per sample and epoch), set with @metric(scores=...).

Introduced in 10B.10 Inspect Scorers, Metrics, Epochs and the Statistics Inspect Reports (optional)
Score-aware reflection

Reflection that scores each draft and returns the best one

Introduced in 08A.11 Reflection, Parallel Fan-Out and Agent-as-a-Tool
Score-direction flip (DeepEval 4.2.0)

The August 2026 change after which every DeepEval metric scores 1 for a pass and treats threshold as a minimum; Bias, Toxicity, Hallucination and Misuse previously scored the share of violations.

Introduced in 10B.4 DeepEval's Built-in Metrics, Opened Up: RAG, Safety, Conversations and More
score-floor rescue (min_hits, below_score_floor)

Keeping the best below-floor hits flagged below_score_floor in metadata, so an over-aggressive floor degrades to weak evidence instead of a silent empty result (min_hits / RetrievalConfig.min_hits).

Introduced in 07.2 Retrieval Strategies for RAG
scored_samples

In an Inspect result, the number of samples a scorer's metrics were computed over; errored and unscored samples are excluded, so it must be reported next to the metric.

Introduced in 10B.8 Inspect AI Fundamentals: Task = Dataset + Solver + Scorer (optional)
Scorer

A function mapping (case, model output) to a score in [0, 1]; the executable definition of prompt success.

Introduced in 04.9 Iterating, Debugging and Porting Prompts
Scorer (Inspect)

An async function score(state, target) -> Score, registered with @scorer together with the metrics computed over its scores.

Introduced in 10B.8 Inspect AI Fundamentals: Task = Dataset + Solver + Scorer (optional)
ScoreReason

The vocabulary of machine-readable reason labels on an Inspect score, naming the failure class and who failed: invalid_response_format, no_response, refusal, grader_failed, scoring_failed, excluded, zeroed.

Introduced in 10B.10 Inspect Scorers, Metrics, Epochs and the Statistics Inspect Reports (optional)
Scoring policy (Inspect)

Inspect's rules for which samples count in a metric: a returned Score counts, Score.unscored() is excluded but counted as unscored, None is excluded and not counted, and a raised exception makes the sample an error.

Introduced in 10B.10 Inspect Scorers, Metrics, Epochs and the Statistics Inspect Reports (optional)
Scratchpad / thinking tags

A named region in a prompt or reply (for example <thinking> or <scratchpad>) reserved for intermediate working, kept separate from the final answer.

Introduced in 04.3 Reasoning Prompts: Chain-of-Thought and Friends
Scratchpad tool

A tool that gives the model a place to write working notes/plans during a run — distinct from "scratchpad / thinking tags" (prompt-level) and "memory tool".

Introduced in 08A.6 Designing Tools Models Can Use
Script model

Tesseract script-level traineddata (Latin, HanS, Arabic…) for scripts without a single language.

Introduced in 05.4 OCR and Scanned Documents
Scripted fake tool-calling model

A GenericFakeChatModel subclass with bind_tools that replays a fixed list of AIMessages, used to test agents without a key.

Introduced in 08F.8 Tools and create_agent
Scripted model

A fake model that replays a fixed plan, used to test code and illustrate methods without keys

Introduced in 08D.2 Hands-On: Two-Agent vs Single-Agent, Built, Traced and Evaluated
ScriptedBrain

Deterministic stand-in for the model's text decisions (the voice ScriptedModel).

Introduced in 13B.5 Capstone Build C: The Realtime Voice Agent Product
ScriptedModel

A fake ChatAdapter replaying canned turns for tests without an API.

Introduced in 08A.2 The Tool Loop: From One Round Trip to an Agent
Scroll anchoring / overflow-anchor

Browser compensation that keeps visible content stable on insertion.

Introduced in 13A.2 AI UX I: Streaming, Latency and Perceived Speed
Scrubbing

Masking secrets and personal data before they are stored

Introduced in 03.12 Minimal Tracing: See What Your First LLM App Did
sdist

Source distribution — the package's raw source, built on install when no wheel exists.

Introduced in 01B.1 Project Setup with uv: Environments, Dependencies and Tooling
SDK

A provider's library that builds requests and parses responses into typed objects.

Introduced in 03.1 The Provider APIs and Your First Calls
Seam (eval)

A small, tested piece of code that joins two eval tools, such as a wrapper that calls a DeepEval metric from an Inspect scorer or turns an Inspect log into per-case scores for evalkit.

Introduced in 10B.17 DeepEval or Inspect? Choosing, Combining and Migrating (optional)
Search-and-replace edit

An edit format where old_str/new_str pairs are applied by the tool, not generated wholesale.

Introduced in 08A.15 Coding and Computer-Use Agents
Search-as-a-tool

The alternative to the condense pipeline: the model sees the whole conversation and writes its own search queries through a tool call ([3.6](07-rag/06-conversational-rag.md#36-the-alternative-let-the-model-write-the-query-search-as-a-tool)).

Introduced in 07.6 Conversational RAG
search_result block

Anthropic content block that passes your own retrieved results as citable sources; source accepts any stable string (URL or internal ID).

Introduced in 07.5 Citations and Attribution
search_result_location

Anthropic citation type resolving to a search_result block's source and content blocks.

Introduced in 07.5 Citations and Attribution
search_type / search_kwargs

The retriever settings that choose similarity, MMR or score-threshold search and pass k, fetch_k, lambda_mult, score_threshold and filter.

Introduced in 08F.9 RAG with LangChain
Searchable PDF

A PDF with an invisible OCR text layer over the page image, produced by OCRmyPDF or similar.

Introduced in 05.4 OCR and Scanned Documents
Secondary source

Any source that interprets primary sources — engineering blogs, papers, newsletters, community discussion — useful for judgement but not authoritative for facts.

Introduced in 14A.9 Staying Current in a Fast-Moving Field
Secret

Any credential that grants access: API key, password, token, private key.

Introduced in 00.1 Setting Up Your Computer for Development
Secret manager

Encrypted store for credentials; rotation without redeploying code.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Secret rotation

Replacing a leaked credential with a new one — the first response to a leak.

Introduced in 00.1 Setting Up Your Computer for Development
Secret scanning / push protection

Scanning repositories and related content for leaked credentials, and blocking pushes that contain recognised secrets.

Introduced in 00.4 GitHub and Collaboration
Secret store

A service that holds credentials with access control, rotation and audit logs

Introduced in 08A.5 Required Agent Security
secrets

Stdlib cryptographically secure randomness for tokens and keys — the correct choice where random would be predictable.

Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Library
Secrets vault / egress injection

Injecting credentials at the network proxy so they never enter the sandbox.

Introduced in 08A.15 Coding and Computer-Use Agents
secrets.compare_digest

Constant-time string comparison — required for secret checks (timing-oracle defence).

Introduced in 01B.7 FastAPI Basics: Building a Small API
secrets_dir

Directory of per-name secret files (Docker/K8s mounts) used as a settings source below dotenv priority.

Introduced in 01B.2 Environment Variables, Configuration and Secrets
SecretStr / SecretBytes

Pydantic wrapper whose repr/dump shows **********; real value only via get_secret_value().

Introduced in 01B.2 Environment Variables, Configuration and Secrets
Section map

A document's heading/section structure (TOC, detected headings, or per-page labels) used to chunk extraction by section rather than by page.

Introduced in 09.2 Document Understanding with Vision Models
Section path

The heading breadcrumb (["Billing", "Refunds"]) locating a chunk in its document.

Introduced in 05.8 Metadata Design
Sectioning

A parallelization shape that breaks a task into independent subtasks run concurrently.

Introduced in 08A.9 Workflows vs Agents
Secure MCP Tunnel

OpenAI's mechanism (tunnel_id on the mcp tool) for connecting private MCP servers to the Responses API without public exposure.

Introduced in 08A.8 Provider Built-in and Server-Side Tools
Security champion

A designated engineer per team who owns security-review depth, runs checklists and is the first call on LLM-security questions.

Introduced in 12.10 Security Operations, Incident Response and the Safety Checklist
Security event

A normalised, content-free record of a security-relevant action (model call, guardrail decision, tool call, egress attempt) carrying metadata, scores and hashes rather than prompts or completions.

Introduced in 12.10 Security Operations, Incident Response and the Safety Checklist
Security requirement

A requirement phrased against deterministic enforcement — naming the component, checkable without the model, stating failure behaviour.

Introduced in 12.1 Threat Modelling LLM Applications
Security-review packet

A short SECURITY_REVIEW.md for enterprise reviewers: data-flow diagram, threat-model summary, eval and red-team results, honest test status, subprocessor list, incident contact.

Introduced in 13B.6 Shipping and Operating Your Capstone: Launch, Demo and Iterate
SECURITY.md

A repository file explaining how to privately report security vulnerabilities.

Introduced in 00.4 GitHub and Collaboration
security.txt

An RFC 9116 file at /.well-known/security.txt publishing vulnerability-disclosure contacts; Contact and Expires are mandatory.

Introduced in 12.8 Red Teaming and Security Testing
sed / awk

Stream editor / columnar text-processing language.

Introduced in 00.2 The Terminal and Shell
Seed

The starting value of a random number generator; the same seed reproduces the same random choices.

Introduced in 02.5 Generation and Sampling
Seed / distractor / probe session

The sessions of a memory scenario that state facts, add similar-looking noise (same topics, other values) and ask the graded questions.

Introduced in 10A.11 Evaluating Agent Memory and Context Management
Seeded pull request

A test pull request with a known, planted defect used to check that the review process catches it

Introduced in 14A.2 Review Standards, Coding and Prompt Conventions
seek / tell

Move/query the file position.

Introduced in 01A.9 Files, Paths, JSON and CSV
Segment

An immutable chunk of vectors plus its index in LSM-style vector stores, merged in the background.

Introduced in 06.4 Vector Indexes: HNSW, IVF, Quantization and Trade-offs
Segmentation mask

A per-pixel or polygon outline of exactly which pixels belong to an object.

Introduced in 09.1 Vision Applications: Understanding Images
SELECT/FROM/WHERE/GROUP BY/HAVING/ORDER BY/LIMIT

The core clause vocabulary.

Introduced in 00.7 SQL Basics with SQLite
Selection bias

Distortion from only observing self-selected responders.

Introduced in 10A.9 Offline vs Online Evaluation
Selection-rate difference

The gap between demographic groups in how often an output crosses a decision threshold; 0 means parity.

Introduced in 10A.10 Evaluation Platforms, Benchmarks and Building an Eval Culture
Selection-rate gap

The difference in positive-decision rates between protected-attribute groups, expressed in percentage points.

Introduced in 12.9 Responsible AI, Policy and Compliance
Selective accuracy / coverage

The abstention trade-off: fraction of answers that are correct vs fraction of questions answered at all.

Introduced in 07.4 Grounded Generation: Prompts, Context Assembly and Abstention
Selective evaluation

Trusting the judge only where validated, escalating the rest with a coverage guarantee.

Introduced in 10A.5 Calibrating and Validating Judges
Selective retention

Marking some turns as must-keep so they survive compaction that drops or summarizes the rest.

Introduced in 04.7 Context Engineering: Managing Context Over Time
Selectivity

The fraction of rows a filter passes; drives the choice between ANN, filtered ANN and exact search.

Introduced in 06.6 Filtering, Metadata and Multi-Tenant Search
Selector

Python's selectors object wrapping the best multiplexing mechanism of the platform (epoll, kqueue, select).

Introduced in 01C.1 Concurrency, Parallelism and Context Switching
self

The first parameter of an instance method — the object the method was called on.

Introduced in 01A.6 Classes, Dataclasses and Enums
Self-ask

Explicitly asking and answering follow-up sub-questions before the main answer (Press et al., 2023).

Introduced in 04.3 Reasoning Prompts: Chain-of-Thought and Friends
Self-consistency (majority voting)

Sampling several independent answers and returning the most common one (majority voting); helps when errors vary, hurts when an error is systematic.

Introduced in 02.8 Reasoning Models
Self-consistency rate

The fraction of repeated-run output pairs that agree — a direct measure of how non-deterministic a feature is in practice.

Introduced in 10A.3 Deterministic Metrics and Code-Based Graders
Self-deadlock

A thread waiting for a non-reentrant lock it already holds.

Introduced in 01C.4 Deadlocks, Livelock and Starvation
Self-enhancement bias

A judge model's tendency to prefer outputs from its own model family; mitigated by judging with a different family.

Introduced in 04.8 Prompt Patterns for Common Tasks
Self-grading fallback

Inspect's default behaviour of grading with the model under test when no grader model or role is bound; prevented with ModelRole("grader", required=True).

Introduced in 10B.11 Model Grading in Inspect, and Validating the Grader (optional)
Self-grading loop

The circular-validation failure where synthetic eval references are graded by an LLM judge sharing the generator's blind spots.

Introduced in 07.9 Evaluating RAG
Self-hosting

Running open-weight models on hardware you control, with tools such as Ollama, llama.cpp or vLLM.

Introduced in 02.9 Model Landscape
Self-hosting break-even

The sustained tokens per second at which owning GPUs costs the same as an API.

Introduced in 11B.2 Tokenomics: The Unit Economics of LLM Applications
Self-Instruct

A 2022 technique bootstrapping instruction data from a few human seeds via model-generated instructions.

Introduced in 10A.2 Building Evaluation Datasets
Self-join

Joining a table to itself (hierarchies like manager_id).

Introduced in 00.7 SQL Basics with SQLite
Self-pipe

A socket pair the event loop always watches, so another thread can write one byte to wake a loop sleeping in select() (used by call_soon_threadsafe).

Introduced in 01C.2 Synchronous vs Asynchronous Programming and the asyncio Event Loop
Self-preference / self-enhancement

A judge scoring outputs from its own model family higher than equivalent outputs from other families; extends the existing *self-enhancement bias* entry.

Introduced in 10A.4 LLM-as-Judge
Self-querying

Extracting metadata filters into a typed, validated filter object.

Introduced in 07.3 Query Understanding, Rewriting and Expansion
Self-querying retriever

The broader pattern (Module 07) of LLM-driven query understanding; this lesson covers its filter slice.

Introduced in 06.6 Filtering, Metadata and Multi-Tenant Search
Self-refine

An iterative draft → self-critique → revise loop driven by a single model with no training (Madaan et al., 2023).

Introduced in 04.3 Reasoning Prompts: Chain-of-Thought and Friends
Self-retrieval proxy

Checking each doc can be found by its own title/first sentence.

Introduced in 05.10 Data Quality Checks
Self-supervised learning

Learning where the correct answers come from the data itself, such as predicting the next word of real text. It's the main way LLMs are pretrained.

Introduced in 02.1 Neural Network Basics
Semantic chunking

Splitting where embedding distance between consecutive sentences spikes.

Introduced in 05.6 Chunking Strategies
Semantic entropy

A hallucination detector that samples several answers, groups them by meaning and flags questions where the meanings disagree (Farquhar et al., 2024).

Introduced in 02.10 Limitations and Failure Modes
Semantic events

The Responses API's typed stream events, one per change to the response, each numbered by sequence_number.

Introduced in 03.3 Streaming Responses
Semantic layer

Curated business-metric definitions and approved join paths that a text-to-SQL system uses instead of guessing from raw column names.

Introduced in 14B.7 Interview Prep II: LLM System Design
Semantic memory

Facts about the user and the world independent of when they were learned — preferences, identity, durable context.

Introduced in 08B.2 Memory for Agents: Short-Term and Long-Term
Semantic negative prompt

Expressing exclusions positively ("empty street") since most APIs lack negative_prompt.

Introduced in 09.3 Image Generation and Editing
Semantic validation

Checks on the meaning of extracted data that a schema can't express, such as cross-field rules, ranges and consistency, usually written as Pydantic validators.

Introduced in 03.4 Structured Output
Semantic validator

A deterministic check on meaning the schema can't express (arithmetic, cross-field rules, formats).

Introduced in 09.2 Document Understanding with Vision Models
Semantic versioning (semver)

The MAJOR.MINOR.PATCH versioning contract: breaking changes bump major, features minor, fixes patch.

Introduced in 00.4 GitHub and Collaboration
Semantic, episodic and procedural memory

Facts, past experiences and rules: the three kinds of long-term memory.

Introduced in 08B.4 Long-Term Memory and Memory Operations
Semantic-equivalence judge

A correctness procedure that grades whether an answer and a reference assert the same facts — ignoring wording, order and style — rather than measuring textual similarity.

Introduced in 10A.6 Evaluating RAG Pipelines in Depth
Semaphore / BoundedSemaphore

Gate admitting at most N holders; the bounded form errors on over-release.

Introduced in 01C.3 Race Conditions and Thread Safety
Semi-structured data

Data with real but inconsistent or nested structure (JSONL, emails, logs).

Introduced in 05.1 Data Sources, Formats and the Ingestion Mindset
SemVer

MAJOR.MINOR.PATCH versioning convention (a convention, not enforced).

Introduced in 01B.1 Project Setup with uv: Environments, Dependencies and Tooling
send() / .close() / .throw()

Generator methods: inject a value at the yield, end it (running finally), inject an exception.

Introduced in 01A.5 Comprehensions, Iterators and Generators
Sensitivity check

Changing one thing in a fixture, predicting which numbers move and by how much, and confirming it.

Introduced in 10B.1 The Eval Framework Track: DeepEval, Inspect AI and Your Setup
Sensor (feedback control)

A control that observes after the agent acts so it can self-correct: tests, linters, reviewers.

Introduced in 08A.4 Harness Engineering: Everything Around the Model
Sentence / text embedding

One vector representing a whole text.

Introduced in 02.3 Embeddings
Sentence-window retrieval

Embedding single sentences but returning a window of surrounding sentences (stored in metadata) to the generator; a LlamaIndex pattern.

Introduced in 05.7 Advanced and Document-Specific Chunking
SentencePiece

A tokenizer library from Google that treats spaces as ordinary symbols (shown as ▁) and can train BPE or Unigram tokenizers. Used by Llama 2, Gemma, T5 and XLM-R.

Introduced in 02.2 Tokens and Tokenization
Sentinel

A marker value (e.g. STOP = object()) telling workers to exit.

Introduced in 01B.4 Concurrency Patterns for I/O-Heavy Work
Separation of duties

The rule that a change's author cannot be its only approver, extended to AI artefacts.

Introduced in 11C.4 Operating LLM Systems: Governance, Incidents and the Production Checklist
Series

Pandas' one-column labelled array: values plus an index.

Introduced in 01B.11 NumPy and pandas Essentials for AI Work
Served model (resolved_model)

The concrete model snapshot the provider reports it ran — differs from the alias you requested; a change is silent provider drift.

Introduced in 11A.2 Metrics, Dashboards, SLOs and Alerting
Served tier

The service tier that actually processed a request (for example default when fast was asked for), as reported in the response. Price what was served, not what you requested.

Introduced in 03.7 Token Counting, Cost Tracking and Prompt Caching
Server

A program that listens for requests and responds; a role, not a kind of computer — the same machine can be client and server.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Server-held state

Conversation history kept by the provider (previous_response_id, Conversations, message threads)

Introduced in 08B.1 Kinds of State and Session Management
Server-managed state

The provider stores the conversation and you reference it by ID (previous_response_id, a conversation ID, previous_interaction_id).

Introduced in 03.2 Messages, Roles and Conversation State
Server-rendered (SSR)

Server builds HTML per request from templates + data.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Server-Sent Events (SSE)

text/event-stream format: data: lines, blank-line dispatch, : comments.

Introduced in 01B.5 HTTP Clients with httpx
Server-side conversation state

A provider feature (such as OpenAI's previous_response_id or Gemini's Interactions API) that stores conversation history and re-assembles it for each request; the model still reads, and you are still billed for, the full history. *(Introduced in [lesson 02.7](02-how-llms-work/07-context-windows.md#35-server-side-conversation-state-what-it-really-does))* Lesson 03.2 covers each provider's version: OpenAI's store, previous_response_id and Conversations API, Gemini's previous_interaction_id, and Anthropic's message-threads beta (OpenRouter is stateless). *(Extended in [lesson 03.2](03-llm-apis/02-messages-and-conversations.md#71-openai-store-and-previous_response_id-chaining))*

Server-side fallback

Anthropic's beta fallbacks parameter, which retries a classifier refusal on another model for you.

Introduced in 03.8 Errors, Rate Limits, Timeouts and Retries
Server-side tool call

A tool the provider executes itself, reported as server_tool_call and server_tool_result blocks.

Introduced in 08F.5 Chat Models, Messages and Content Blocks
server/discover

Mandatory discovery RPC returning versions, capabilities, identity.

Introduced in 08E.1 The Model Context Protocol (MCP)
server_tool_use block

Anthropic's response content block marking a provider-executed tool call (srvtoolu_ id), paired by tool_use_id with a result block such as web_search_tool_result.

Introduced in 08A.8 Provider Built-in and Server-Side Tools
server_vad / semantic_vad

OpenAI's silence-based vs completeness-model turn detection modes.

Introduced in 09.6 Audio-Native Models and Realtime Foundations
Serverless function

Per-request ephemeral compute with no managed server (Lambda, Vercel Functions, Cloudflare Workers).

Introduced in 11C.1 Deploying LLM Services
Service account

A non-human identity for an application, with its own keys or credentials.

Introduced in 03.1 The Provider APIs and Your First Calls
Service tier

A provider's price/latency trade for the same model: batch, flex, standard, priority/fast.

Introduced in 11B.1 Cost and Latency Optimization
Session

Server-side session_id → user data store; the cookie holds only the long random ID.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Session block

The pinned entities/filters/summary text included in every generation request so durable state survives history trimming.

Introduced in 07.6 Conversational RAG
Session fork

GPT-Live feature continuing a stored session's conversation on a new connection.

Introduced in 09.7 Realtime Voice Agents
Session grant

A bounded standing approval covering a family of calls (same tool, argument ceilings, max uses, expiry) — the safe alternative to "always allow"; never covers irreversible tools.

Introduced in 12.6 Securing Tools, Agents and MCP
Session ID

Long random token identifying a session — guessability is the security model.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Session replay

Re-running a recorded session using recorded model and tool outputs

Introduced in 11A.3 Latency Percentiles, Error Classification, Audit Logs, Session Replay, Dashboards and SLOs
Session resumption

Resuming a realtime session across reconnects using a provider handle/token.

Introduced in 09.6 Audio-Native Models and Realtime Foundations
session.update

OpenAI Realtime client event that (re)configures the session live.

Introduced in 09.7 Realtime Voice Agents
session.usage.updated

GPT-Live event reporting cumulative voice duration (don't sum).

Introduced in 09.7 Realtime Voice Agents
Set

Unordered collection of unique hashable items; O(1) membership.

Introduced in 01A.4 Core Data Structures: Lists, Tuples, Dictionaries and Sets
set -euo pipefail

Shell-script safety flags: exit on first error, error on unset variables, fail pipelines if any stage fails.

Introduced in 00.2 The Terminal and Shell
Set algebra

| union, & intersection, - difference, ^ symmetric difference.

Introduced in 01A.4 Core Data Structures: Lists, Tuples, Dictionaries and Sets
set_node_defaults

A StateGraph method that sets default retry policy, cache policy, error handler and timeout for all nodes.

Introduced in 08F.12 Human-in-the-Loop and Control Flow
SettingsConfigDict

The model_config options controlling sources, prefixes, nesting, extra.

Introduced in 01B.2 Environment Variables, Configuration and Secrets
Settled field

In a streamed object, a field followed by a later key, and therefore finished.

Introduced in 03.4 Structured Output
Setup and cleanup (Inspect task)

setup is a solver that always runs before the main solver, even when the solver is swapped at run time; cleanup is an async function run after each sample, even when it raised.

Introduced in 10B.9 Inspect Datasets, Solvers and Task Configuration (optional)
Severity

The UserMessage field (info/warning/error/blocked) that drives presentation, separate from the copy.

Introduced in 13A.4 AI UX III: Failure States, Edge Cases and Inclusive Design
Severity gating

Mapping each case's severity to a maximum allowed attack success rate that decides pass or fail

Introduced in 12.8 Red Teaming and Security Testing
Severity level

A rating (SEV1 to SEV4) that decides who is paged, update frequency and postmortem need

Introduced in 14A.5 The Incident Process for AI Systems
Severity matrix (SEV1–SEV4)

The agreed classification of incidents by user/data/cost impact, driving response speed and escalation.

Introduced in 11C.4 Operating LLM Systems: Governance, Incidents and the Production Checklist
Severity score (CVSS-style)

(0.6 * impact + 0.3 * exploitability + 0.1 * exposure) * 10 for a failed case; impact is a constant, so it is not a measure of harm

Introduced in 10B.7 DeepEval in Production: Red Teaming, CI/CD, Prompt Optimization and Confident AI
SHA-1 / SHA-256

Hash algorithms naming git objects; SHA-256 repos exist but don't interoperate yet.

Introduced in 00.3 Git Fundamentals
Shadow AI

Employee use of unsanctioned public AI tools (ChatGPT, Claude, Gemini) for work purposes.

Introduced in 12.9 Responsible AI, Policy and Compliance
Shadow evaluation

Replaying queries against old and new indexes before cutover.

Introduced in 05.9 Ingestion Pipelines and Incremental Updates
Shadow mode

Running the candidate on live traffic but serving production's answer.

Introduced in 10A.9 Offline vs Online Evaluation
Shadowing

Rebinding a builtin name like len or print, which breaks it for the rest of the file.

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
Shallow copy

New outer container sharing nested objects (a[:], .copy()).

Introduced in 01A.4 Core Data Structures: Lists, Tuples, Dictionaries and Sets
Shallow vs deep copy

.copy() shares nested objects; copy.deepcopy copies recursively.

Introduced in 01A.11 Coming from PHP, JavaScript or Java: Side by Side
shape / ndim / axis

An array's dimension sizes / its number of dimensions / one of those dimensions, numbered from 0.

Introduced in 01B.11 NumPy and pandas Essentials for AI Work
Shapley credit

An agent's average marginal contribution to success over every order in which faulty agents could be fixed, which splits blame fairly when faults interact.

Introduced in 10A.12 Evaluating Multi-Agent Systems and Validating User Simulators
Shard key / user-defined sharding

Qdrant v1.7+ mechanism giving each tenant a dedicated shard inside one collection.

Introduced in 06.6 Filtering, Metadata and Multi-Tenant Search
Sharding (Inspect)

Running one task's samples as several worker processes, each writing its own log under <name>.shards/N, then merging them with inspect log merge-shards.

Introduced in 10B.12 Running Inspect Evals for Real: Models, Configuration, Concurrency, Caching, Errors and Eval Sets (optional)
ShareableList

A fixed-length list of simple values (int, float, bool, str, bytes, None) stored in shared memory; string slots cannot grow.

Introduced in 01C.7 Shared Memory and Inter-Process Communication
Shared and private state (subgraph)

Keys present in both parent and subgraph schemas (shared) versus keys only the subgraph has (private, never in the parent).

Introduced in 08F.13 Subgraphs and Multi-Agent Systems
Shared cost allocation

Splitting costs no team owns (vector database, tracing) by usage, evenly or by agreed weights

Introduced in 11B.6 Budgets, Quotas, Cost Attribution and Chargeback
Shared embedding space

The property that vectors from different modalities can be compared with the same similarity function.

Introduced in 09.9 Multimodal Embeddings and Retrieval
Shared memory

A block of RAM mapped into the address spaces of several processes, so they read and write the same bytes without copying; it provides no locking.

Introduced in 01C.7 Shared Memory and Inter-Process Communication
Shared rate limiter

A token-bucket limiter in shared storage (Redis) so all instances see one quota.

Introduced in 11C.3 Fallbacks, Gateways and Reliability
SharedMemory

The standard-library class (multiprocessing.shared_memory, 3.8+) for a named shared block; everyone close()s, one owner unlink()s.

Introduced in 01C.7 Shared Memory and Inter-Process Communication
SharedMemoryManager

A manager that owns shared blocks and unlinks them all when it shuts down.

Introduced in 01C.7 Shared Memory and Inter-Process Communication
Shebang #!

The #! first line naming the interpreter that runs an executable script.

Introduced in 00.2 The Terminal and Shell
Shedding order

The sequence for dropping content under pressure: tool results → old turns → memories → summary → recent turns.

Introduced in 04.7 Context Engineering: Managing Context Over Time
Shell

The program that reads what you type in a terminal and acts on it (zsh, bash, PowerShell, fish).

Introduced in 00.1 Setting Up Your Computer for Development
Shell alias

A shell shortcut name for a longer command, defined with alias in a dotfile.

Introduced in 00.2 The Terminal and Shell
Shell prompt

The text at the start of a terminal line showing where you are and who you are.

Introduced in 00.1 Setting Up Your Computer for Development
Shell variable vs environment variable

Private to the shell vs inherited by child programs (export).

Introduced in 00.2 The Terminal and Shell
Shift right

The movement of AI application work from research/ML orgs toward ordinary product engineering.

Introduced in 14B.1 The AI Engineering Landscape: Roles, Teams and Career Paths
Shingle

A contiguous n-gram of words used for similarity estimation and document-frequency analysis.

Introduced in 05.5 Cleaning and Normalization
Shingle Jaccard

Similarity of two texts measured by overlap of their word n-gram sets.

Introduced in 10A.2 Building Evaluation Datasets
Short-circuit

and/or return an operand and may skip evaluating the right side.

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
Short-circuit evaluation

and/or return an operand (not a bool) and may skip evaluating the right side.

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
Short-term vs long-term memory

Within-conversation state vs durable cross-conversation facts stored and re-injected by your application.

Introduced in 04.7 Context Engineering: Managing Context Over Time
Shot

One input/output demonstration inside a prompt.

Introduced in 04.2 Zero-Shot, Few-Shot and Examples
Shot-count test

Comparing 0/1/3/8-shot accuracy on a labelled set to find the optimal example count.

Introduced in 04.2 Zero-Shot, Few-Shot and Examples
Showback

Reporting cost per tenant/feature without necessarily billing them.

Introduced in 11A.2 Metrics, Dashboards, SLOs and Alerting
Shrinking

Hypothesis's minimisation of a failing input to the simplest counterexample.

Introduced in 01B.8 Testing with pytest
Sideband

A second server-side WebSocket observing/controlling a GPT-Live session.

Introduced in 09.7 Realtime Voice Agents
Sign-flip permutation test

Label-free significance test for paired differences via random sign flips.

Introduced in 10A.8 Regression Testing, CI and Experiment Tracking
Signal

A numbered message to a process (SIGINT=2, SIGTERM=15, SIGKILL=9 everywhere; job-control numbers differ by OS — kill -l lists yours).

Introduced in 00.2 The Terminal and Shell
Signal vocabulary

One of the three input languages to the failure mapper: transport Kinds, check_response() Status names, or product policy signals.

Introduced in 13A.4 AI UX III: Failure States, Edge Cases and Inclusive Design
Signal vs noise (triage)

The filter: does this item change a decision you own?.

Introduced in 14A.9 Staying Current in a Fast-Moving Field
Signature verification

Checking an HMAC (or JWT) over the raw body and timestamp to prove a webhook is genuine.

Introduced in 03.9 Async, Concurrency and Batch Processing
Signed commit

A commit cryptographically proven to come from a key holder; GitHub shows a "Verified" badge.

Introduced in 00.4 GitHub and Collaboration
Signed cursor

An opaque pagination token with a signature, so tampering is detected

Introduced in 08A.7 Tool Safety in the Loop: Idempotency, Validation and Truncation
Signed request

An API-authentication scheme where an HMAC signature over the request proves the caller holds a shared secret.

Introduced in 00.6 HTTP, REST and JSON
Signed URL

A link to a private file that includes a cryptographic signature and an expiry time, so a provider can fetch the file for a limited period.

Introduced in 03.6 Images, PDFs and Files
Silent behaviour change

A change in defaults, shapes or ordering that raises no error but changes the output.

Introduced in 08F.15 Patterns, Pitfalls and Migration
Silent default

A pitfall family in which a default you did not choose (the grader model, a threshold, an empty target, the default judge) decided the answer.

Introduced in 10B.17 DeepEval or Inspect? Choosing, Combining and Migrating (optional)
Silent degradation

Serving a worse answer that looks identical to a good one — the cardinal reliability sin.

Introduced in 11C.3 Fallbacks, Gateways and Reliability
Silent denominator

A pitfall family in which something left the count (unscored, skipped, vanished or errored cases, or metrics skipped while their case still passed) while the headline stayed plausible.

Introduced in 10B.17 DeepEval or Inspect? Choosing, Combining and Migrating (optional)
Silent duplicate

A memory update stored as a new record while the old value stays active, so both are retrievable.

Introduced in 10A.11 Evaluating Agent Memory and Context Management
Silent error

A wrong filled value that passed validation — the dangerous failure class.

Introduced in 13B.3 Capstone Build B: The Document Intelligence App
Silent failure

A pipeline defect that produces no error but corrupts downstream output — the defining hazard of LLM systems.

Introduced in 05.10 Data Quality Checks
Silent truncation

Cutting input that exceeds a model's maximum length without raising an error — the dangerous default on several embedding providers and most local models; the tail of a chunk (often the answer-bearing sentence) disappears with no signal.

Introduced in 06.1 Embedding Models and APIs in Practice
Silo / pool / bridge tenancy

Separate deployments / shared services with enforced filtering / shared everything (prototype only).

Introduced in 13A.5 Architecture Patterns for AI Applications
SiLU / Swish

A smooth, ReLU-like activation function: the input multiplied by its own sigmoid. It's used inside SwiGLU, and config files list it as "silu".

Introduced in 02.1 Neural Network Basics
Silver label

A reference answer written by a model rather than verified by a person: cheap, useful and not ground truth.

Introduced in 10B.6 DeepEval Datasets, Synthetic Data, Conversation Simulation and Benchmarks
Sim-to-real gap

An agent's success under a user simulator minus its success with real users on the same tasks; positive means the simulator is easier ("easy mode").

Introduced in 10A.12 Evaluating Multi-Agent Systems and Validating User Simulators
SimConfig

Simulated stage latencies (model, TTS-per-word, tool) driving turn latency.

Introduced in 13B.5 Capstone Build C: The Realtime Voice Agent Product
SimHash

Single-fingerprint similarity hash.

Introduced in 05.5 Cleaning and Normalization
Similarity guard

A post-LLM-cleaning check that the output preserved content (char similarity + number preservation).

Introduced in 05.5 Cleaning and Normalization
Similarity vs distance vs score

Three reporting conventions: bigger-better, smaller-better, rescaled-positive.

Introduced in 06.3 Similarity Metrics and Nearest-Neighbour Search
Simpson's paradox

An aggregate trend reversing when the data is sliced.

Introduced in 10A.9 Offline vs Online Evaluation
Simulated user

A second model playing the user to generate multi-turn conversations at scale — coverage and regression, not calibration.

Introduced in 10A.6 Evaluating RAG Pipelines in Depth
Simulation graph

Scripted user nodes joined by natural-language edges and routed by one model call per step; a deterministic test double for a user.

Introduced in 10B.6 DeepEval Datasets, Synthetic Data, Conversation Simulation and Benchmarks
Simulator leakage rate

The share of hidden facts a simulated user volunteers before the agent asks for them, compared with the real users' rate.

Introduced in 10A.12 Evaluating Multi-Agent Systems and Validating User Simulators
Simulator panel

Several user simulators scoring the same agents, so each agent's score is reported as a band and the simulators' agreement is visible.

Introduced in 10A.12 Evaluating Multi-Agent Systems and Validating User Simulators
Simulator validity

Evidence that a simulated user's scores track real-user outcomes; DeepEval ships the instrument, not that evidence.

Introduced in 10B.6 DeepEval Datasets, Synthetic Data, Conversation Simulation and Benchmarks
Single-backbone model

A multimodal embedder where one transformer reads interleaved text and media tokens.

Introduced in 09.9 Multimodal Embeddings and Retrieval
Single-flight / coalescing

Collapsing N concurrent identical calls into one shared task.

Introduced in 01B.4 Concurrency Patterns for I/O-Heavy Work
Single-page app (SPA)

Shell HTML + JS bundle renders everything client-side, fetching JSON APIs.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Singleton

A unique object (None, True, False) compared with is.

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
Sinusoidal / learned absolute positions

Fixed wave-based or trained per-position vectors added to embeddings.

Introduced in 02.4 Attention and Transformers
SIP / PSTN

Telephony signalling / the phone network itself.

Introduced in 09.6 Audio-Native Models and Realtime Foundations
Site-packages

The directory inside a Python environment where third-party packages are installed.

Introduced in 01B.1 Project Setup with uv: Environments, Dependencies and Tooling
Sitemap

XML index of a site's URLs, often with lastmod dates — the polite discovery mechanism.

Introduced in 05.1 Data Sources, Formats and the Ingestion Mindset
Skeleton (UTS #39)

A normalised string form mapping visually confusable characters to prototypes, so lookalike strings compare equal — the basis of homoglyph/spoof detection.

Introduced in 12.5 Guardrails and Output Validation
Skeleton screen

Placeholder blocks shown while content loads.

Introduced in 13A.2 AI UX I: Streaming, Latency and Perceived Speed
Skeleton-of-thought (SoT)

Emitting an answer outline first, then expanding each point into the full answer — in parallel where the API allows (Ning et al., ICLR 2024).

Introduced in 04.3 Reasoning Prompts: Chain-of-Thought and Friends
Skill trigger

The agent's decision to load a skill, based on its description

Introduced in 08E.4 A2A Basics, Agent Skills (SKILL.md) and Tool Selection at Scale
`SKILL.md`

The required file of a skill: YAML frontmatter plus Markdown instructions

Introduced in 08E.4 A2A Basics, Agent Skills (SKILL.md) and Tool Selection at Scale
Skills pattern

One agent that loads specialized prompts and knowledge on demand through a load_skill tool.

Introduced in 08F.13 Subgraphs and Multi-Agent Systems
Skills pyramid

The layered model of AI-engineer capabilities, where each layer depends on the one below.

Introduced in 14A.8 Skills Map and Gap Analysis
SLA (service-level agreement)

A contractual commitment to uptime or performance, usually tied to a plan or contract.

Introduced in 02.9 Model Landscape
Sleep mode

VLLM's --enable-sleep-mode facility that offloads model weights to CPU RAM (level 1) or discards them (level 2) to release GPU memory without stopping the server — a scale-to-zero middle path.

Introduced in 11C.6 Open-Weight and Local Models
SLI (service level indicator)

Service level indicator (ratio of good to total events), service level objective (target over a period), and error budget (the allowed badness complement).

Introduced in 11A.2 Metrics, Dashboards, SLOs and Alerting
Slice

s[start:stop:step] substring; stop is exclusive, negatives count from end.

Introduced in 01A.2 Numbers, Strings and Text
Slice tag

A key-value pair in tags marking which stratum an example belongs to.

Introduced in 10A.2 Building Evaluation Datasets
Slicing

s[start:stop:step] substring extraction; stop is exclusive, negatives count from the end, out-of-range slices return "" rather than raising.

Introduced in 01A.2 Numbers, Strings and Text
Sliding window

Rate limiter: at most N starts in any rolling window.

Introduced in 01B.4 Concurrency Patterns for I/O-Heavy Work
Sliding window (turn metrics)

The run of up to window_size consecutive exchanges, ending at the current one, that a DeepEval turn metric judges together; windows overlap, so early exchanges can be scored several times.

Introduced in 10B.4 DeepEval's Built-in Metrics, Opened Up: RAG, Safety, Conversations and More
SLO (service level objective)

A target for an SLI over a compliance period (e.g. 99.9% over 30 days).

Introduced in 11A.2 Metrics, Dashboards, SLOs and Alerting
Slopsquatting

Registering package names that LLMs hallucinate, so the next generated install command runs attacker-controlled code.

Introduced in 12.5 Guardrails and Output Validation
Slot filling

Extracting structured fields from each conversation turn and accumulating them into a state object that later turns complete.

Introduced in 04.8 Prompt Patterns for Common Tasks
SLSA (Supply-chain Levels for Software Artifacts)

An OpenSSF framework defining progressive assurance levels for software artefacts — from documented build processes to hermetic builds with verified provenance — used to evaluate how much you can trust an artefact's origin.

Introduced in 12.7 Securing RAG Data, Keys and the AI Supply Chain
Slug

URL-safe lowercase-hyphenated text produced by NFKD-normalise + ASCII-fold + non-word→-.

Introduced in 01A.2 Numbers, Strings and Text
Small-integer cache

CPython's pre-built int objects for a small range (-5 to 256 on 3.14), shared by every use; an implementation detail, so never compare numbers with is.

Introduced in 01C.6 Python Memory Management
small-to-big / parent expansion

Retrieving small embedded children but returning their parent passages to the generator.

Introduced in 07.2 Retrieval Strategies for RAG
Small-to-big retrieval

The pattern of retrieving a small, precisely-embedded unit and synthesising the answer from a larger unit that contains it.

Introduced in 05.7 Advanced and Document-Specific Chunking
Smart punctuation

Curly quotes, en/em dashes, ellipsis, NBSP.

Introduced in 05.5 Cleaning and Normalization
Smart union

Pydantic's default union behaviour: tries members, picks best match — vs a tagged union's explicit dispatch.

Introduced in 01B.6 Data Validation with Pydantic
Smoke set

A small, fast subset run on every commit

Introduced in 11A.4 Production Traces into Eval Datasets
Smoke suite

A small high-signal eval tier run frequently to catch obvious regressions.

Introduced in 11C.2 CI/CD for Prompts, Models and Evals
Smoke test

A minimal check that the whole system works at all; a live smoke test makes one tiny real call per provider, on a schedule.

Introduced in 03.10 Logging, Debugging and Testing LLM Code
Smoke tier

The fast subset of the suite that runs on every pull request

Introduced in 12.8 Red Teaming and Security Testing
Smoke, judged and studies tiers

Three suites of an eval repository: keyless checks on every pull request, calibrated real-judge runs on a schedule, and on-demand model, agent and benchmark studies.

Introduced in 10B.17 DeepEval or Inspect? Choosing, Combining and Migrating (optional)
snake_case / PascalCase / UPPER_CASE

Naming conventions for vars/functions / classes / constants.

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
Snapshot

Git's storage unit: the complete state of all files at one commit. *(Introduced in [lesson 00.3](00-developer-foundations/03-git-fundamentals.md#13-snapshots-not-diffs-the-object-model))* In an SDK stream helper, a snapshot is the accumulated message so far, attached to each delta event. *(Extended in [lesson 03.3](03-llm-apis/03-streaming.md#41-two-ways-to-stream-with-each-sdk))*

Snapshot diff

Comparing recorded per-case outputs between two runs to see exactly what a prompt change did.

Introduced in 04.9 Iterating, Debugging and Porting Prompts
Snapshot rule

One loop iteration runs only the callbacks that were ready when it began.

Introduced in 01C.2 Synchronous vs Asynchronous Programming and the asyncio Event Loop
Snapshot test

A test that saves a function's output on first run and fails when it changes; for LLM code it is applied to the request the code builds, not the model's reply.

Introduced in 03.10 Logging, Debugging and Testing LLM Code
SnapshotWorld

A frozen end state from the system of record, standing in for a live World when grading a recorded run.

Introduced in 10A.7 Evaluating Agents, Tool Use and Multimodal Systems
SOC 2

An independent audit report on a company's controls

Introduced in 14A.3 Security, Data and Compliance Policy
SOC 2 Type II

An auditor's report on a company's security controls over a period; procurement evidence, not a legal safe harbour.

Introduced in 03.2 Messages, Roles and Conversation State
Social preview image

The PNG/JPG/GIF (<1 MB) shown when your repo link is shared on social platforms.

Introduced in 14B.3 GitHub Presence and Project READMEs
Soft delete

Timestamp-marked deletion vs DELETE / WHERE id > :last paging vs OFFSET.

Introduced in 00.7 SQL Basics with SQLite
Soft hyphen

U+00AD invisible optional break point.

Introduced in 05.5 Cleaning and Normalization
Soft keyword

A word reserved by the grammar only in specific contexts (match, case, type, _, lazy); usable as a normal name elsewhere. Listed in keyword.softkwlist, not keyword.kwlist.

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
Soft limit

A fraction of a limit at which the model is warned to wrap up

Introduced in 08A.3 Loop Control, Budgets and Stagnation Detection in the Raw Loop
Soft score

A graded measure where degree matters; aggregates into means and trends.

Introduced in 10A.1 Why Evals Matter: The Evaluation Mindset
Softmax

A function that converts a list of logits into probabilities that are all positive and sum to 1.

Introduced in 02.1 Neural Network Basics
Software 3.0

Swyx's term for programming with prompts and context rather than only code.

Introduced in 14B.1 The AI Engineering Landscape: Roles, Teams and Career Paths
solvability verification

Checking that a task can actually be solved in the provided environment before interpreting agent failure as incapability.

Introduced in 10B.16 Evaluating Agents with Inspect, and the Inspect Ecosystem (optional)
Solver (Inspect AI)

An async function that transforms a sample's TaskState, for example by adding a system message or calling the model with generate(); a chain of solvers is the code that produces each sample's output. It corresponds to evalkit's task callable plus the model call, not to Inspect's Task.

Introduced in 10A.10 Evaluation Platforms, Benchmarks and Building an Eval Culture
Solver factory

The @solver-decorated plain function that takes configuration (a template, a budget) and returns the async solver; Inspect logs its arguments and can rebuild it by name.

Introduced in 10B.9 Inspect Datasets, Solvers and Task Configuration (optional)
sort_values / sort_index

Ordering rows by a column's values / by the index labels.

Introduced in 01B.11 NumPy and pandas Essentials for AI Work
sorted / .sort()

New sorted list / in-place sort returning None.

Introduced in 01A.3 Control Flow and Functions
sorted vs list.sort

sorted() returns a new list; .sort() mutates and returns None.

Introduced in 01A.11 Coming from PHP, JavaScript or Java: Side by Side
source mix

Stage-contribution counts by provenance — the trace signal for document-vs-structured reliance.

Introduced in 07.2 Retrieval Strategies for RAG
Source of truth (documentation)

The source you believe when sources disagree: for behaviour, the installed package; for intent and recommended patterns, the official docs and API reference.

Introduced in 08F.17 Finish Learning from the Official Docs
Source priority

Pydantic-settings order: CLI > init kwargs > env vars > dotenv > secrets_dir > defaults.

Introduced in 01B.2 Environment Variables, Configuration and Secrets
Source tripwire

A check that the line of installed source a lesson's finding rests on is still there, run after every upgrade; a trip means "re-read and re-run that section", not "the behavior changed", because a refactor can trip it with no change in behavior.

Introduced in 10B.18 Finish Learning DeepEval and Inspect from the Official Docs
Source-quality ladder

T1 builder's account → T4 community; ordered by proximity to the event.

Introduced in 13A.7 Case Studies: How Real AI Products Are Built, and How They Fail
Source-reliability checklist

The ordered questions for deciding whether a doc claim can be trusted.

Introduced in 00.8 Reading API Documentation
source_id_key

The metadata key (or a function from Document to str) that ties chunks to their source document, required for incremental and scoped_full cleanup.

Introduced in 08F.9 RAG with LangChain
source_map

The per-turn label→chunk resolution index ([{"label","chunk_id","title"}]) stored on TurnRecord/GenerationRequest — deliberately *not* a verified citation; 07.5's verify_citations/CitedAnswer own those.

Introduced in 07.6 Conversational RAG
SourceRef

cite.py model: everything needed to display and link a source.

Introduced in 07.5 Citations and Attribution
Spaced practice

Short sessions spread over time, which beats cramming for retention.

Introduced in 14A.8 Skills Map and Gap Analysis
Spaced repetition

Revisiting material just before you'd forget it, to move it to long-term memory.

Introduced in 00.9 Working Like an Engineer: Debugging, Asking for Help and Learning Habits
Span (Inspect)

A begin/end pair of transcript events that groups everything one solver, scorer, tool or step produced.

Introduced in 10B.13 Inspect Logs, Analysis and Extending Inspect (optional)
Span / trace

A span is one timed step of an agent run; a trace is the tree of spans for a whole run; a trajectory is the same run viewed as an ordered sequence for replay and evaluation.

Introduced in 08A.14 Reliable, Safe and Observable Agents
Span attribute

A key and value attached to a span, such as token counts or the arguments of a tool call

Introduced in 08D.2 Hands-On: Two-Agent vs Single-Agent, Built, Traced and Evaluated
Span bridge (DeepEval)

The in-process machinery that converts confident-trace/OpenTelemetry spans into DeepEval span objects so local evaluation can build span and trace test cases.

Introduced in 10B.5 DeepEval Tracing, Component-Level Evals and Agent Evaluation
Span kind

The role of a span: INTERNAL, CLIENT, SERVER, PRODUCER, CONSUMER. GenAI uses CLIENT for model calls and remote agents, INTERNAL for tools, retrieval and in-process agents

Introduced in 11A.1 Tracing and Observability for LLM Applications
Span linter

A check that spans follow the conventions: required attributes, names, kinds, no content when capture is off

Introduced in 11A.1 Tracing and Observability for LLM Applications
Span processor / exporter / sampler

SDK components that filter, batch and ship spans; ParentBased/TraceIdRatioBased decide which traces to keep.

Introduced in 11A.1 Tracing and Observability for LLM Applications
Span type (DeepEval)

A label (agent, llm, retriever, tool, custom) that corresponds loosely to a GenAI operation

Introduced in 11A.1 Tracing and Observability for LLM Applications
Span-level gate

A CI step that parses DeepEval's run file and fails if any trace or span metric failed, or if the run file's case count disagrees with pytest's junit report.

Introduced in 10B.7 DeepEval in Production: Red Teaming, CI/CD, Prompt Optimization and Confident AI
SPANN / DiskANN / tree-AH

Alternative ANN index families: SPANN (Chroma Cloud/distributed), DiskANN (disk-based graph index), tree-AH (the ScaNN family).

Introduced in 06.5 Vector Databases: Choosing and Using One
Spare pool

Capacity not guaranteed to anyone, which teams may borrow when their own share is empty

Introduced in 11B.7 Rate Limits Across Teams, Throughput Options, Kill Switches and Spend Alerts
Sparse attention

Each token attends to a selected subset of positions.

Introduced in 02.4 Attention and Transformers
spawn

Start a fresh interpreter that re-imports the main module; the default on Windows and macOS.

Introduced in 01C.7 Shared Memory and Inter-Process Communication
SPDX identifier

The standard short code for a licence (MIT, Apache-2.0, GPL-3.0-only) used in licence files and third-party notices.

Introduced in 13B.6 Shipping and Operating Your Capstone: Launch, Demo and Iterate
SPDX licence identifier

Standard short licence names (MIT, Apache-2.0, GPL-3.0) used in metadata and licence files.

Introduced in 14B.3 GitHub Presence and Project READMEs
Speaker diarization

Labeling which anonymous speaker cluster spoke when; does not identify who people are.

Introduced in 09.4 Speech-to-Text
Spearman ρ / Kendall τ-b

Rank correlations measuring whether judge ordering matches human ordering.

Introduced in 10A.5 Calibrating and Validating Judges
Special category data

Personal data whose misuse causes serious harm, such as health or biometric data, with stricter rules

Introduced in 14A.3 Security, Data and Compliance Policy
Special token / control token

A reserved vocabulary entry with a control meaning, such as beginning or end of text, a chat role marker, or padding, added by the tokenizer or application rather than produced from ordinary text.

Introduced in 02.2 Tokens and Tokenization
Specialized model

A model built for one job: embeddings, speech, image generation, moderation, OCR.

Introduced in 02.9 Model Landscape
Specify, steer, verify

The working pattern for AI coding tools: write the task and its test first, keep diffs reviewable, then read and run everything yourself ([5.8](14a-working-as-an-ai-engineer-here/08-skills-map-and-gap-analysis.md#58-working-with-ai-coding-tools--and-being-honest-about-it)).

Introduced in 14A.8 Skills Map and Gap Analysis
Speculative decoding

A drafter guesses several tokens and the big model verifies them in one pass, speeding up decoding without changing the output distribution.

Introduced in 02.5 Generation and Sampling
Speech-to-speech model

A model that takes audio input and produces audio output directly, without separate STT/TTS stages.

Introduced in 09.7 Realtime Voice Agents
Speech-to-text / ASR / STT

Converting speech audio into text; the three names are used interchangeably in industry.

Introduced in 09.4 Speech-to-Text
SpeechMetadata / speech_config

Provider request structures carrying per-turn style and speaker annotations (Gemini TTS).

Introduced in 09.5 Text-to-Speech
Spend breaker

A guard that trips a scope when spend in a sliding window crosses a limit

Introduced in 11B.7 Rate Limits Across Teams, Throughput Options, Kill Switches and Spend Alerts
Spend limit / spend alert

A hard monthly cap that stops requests / a notification at a spending threshold.

Introduced in 03.1 The Provider APIs and Your First Calls
Spend roll-up

Adding a child agent's usage to its parent's total

Introduced in 08A.11 Reflection, Parallel Fan-Out and Agent-as-a-Tool
Spillover

Routing overflow from a full provisioned deployment to a standard one

Introduced in 11B.7 Rate Limits Across Teams, Throughput Options, Kill Switches and Spend Alerts
Spoken confirmation

Readback + explicit yes bound to exact {tool, args} before a mutation.

Introduced in 13B.5 Capstone Build C: The Realtime Voice Agent Product
Spot / preemptible GPU

Discounted GPU capacity the provider can reclaim with only seconds to about two minutes of warning — cheap for checkpointable batch work, hazardous for interactive serving.

Introduced in 11C.6 Open-Weight and Local Models
Spotlighting

A family of prompt-engineering techniques that mark untrusted text so the model can distinguish it from instructions — via delimiting, datamarking or encoding. Reduces attack success probabilistically; not a security boundary.

Introduced in 12.2 Prompt Injection: Direct and Indirect
Spreadsheet augmentation

OpenAI's processing of spreadsheet files sent as input_file: it parses the first 1,000 rows per sheet and adds a model-generated summary and header metadata.

Introduced in 03.6 Images, PDFs and Files
Sprint

A fixed planning window (often 1–2 weeks) in iterative teams.

Introduced in 00.9 Working Like an Engineer: Debugging, Asking for Help and Learning Habits
Spy

A real object that also records how it was called.

Introduced in 01B.8 Testing with pytest
SQL / Structured Query Language

The declarative language for storing and querying relational data.

Introduced in 00.7 SQL Basics with SQLite
SQL injection

Attacker-controlled input rewriting your SQL.

Introduced in 00.7 SQL Basics with SQLite
sqlite-vec

Vector KNN extension for SQLite (prototype) / Postgres vector extension with ANN indexes.

Introduced in 00.7 SQL Basics with SQLite
SqliteSaver / AsyncSqliteSaver

SQLite-file checkpointers from langgraph-checkpoint-sqlite, sync and async.

Introduced in 08F.11 Persistence, Durable Execution and Memory
Squared L2

The squared Euclidean distance FAISS's METRIC_L2 reports — monotonic with L2 (same ranking) but different values, which matters for thresholds.

Introduced in 06.3 Similarity Metrics and Nearest-Neighbour Search
Squash merge

Collapsing a PR's commits into one on main; keeps history readable for portfolio repos.

Introduced in 14B.3 GitHub Presence and Project READMEs
src/ layout

Project layout placing source under src/ so only installed packages are importable, preventing accidental imports of the working tree.

Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Library
SSE

Server-Sent Events — one-directional text/event-stream for live server→client data.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
SSH key pair

A private key that stays on your machine plus a public key registered on GitHub, enabling passwordless git authentication.

Introduced in 00.4 GitHub and Collaboration
ssh-agent

A helper that holds decrypted SSH keys so you type the passphrase once per session.

Introduced in 00.4 GitHub and Collaboration
SSML

Speech Synthesis Markup Language — the XML dialect cloud TTS services use for pronunciation and prosody control.

Introduced in 09.5 Text-to-Speech
Stability (sort)

Equal-keyed items keep their original relative order.

Introduced in 01A.4 Core Data Structures: Lists, Tuples, Dictionaries and Sets
Stability label

The annotation on an API: stable (no prefix), beta, alpha, deprecated or internal (leading underscore).

Introduced in 08F.4 The LangChain Ecosystem and Your Setup
Stable prefix / volatile facts

Cache-friendly prompt layout: identical instruction content first, per-request data (date, plan, user) last.

Introduced in 04.5 System Prompts, Roles and Personas
Stack Overflow

A Q&A site where debugging answers are voted on; read dates and versions critically.

Introduced in 00.9 Working Like an Engineer: Debugging, Asking for Help and Learning Habits
Staff engineer

A senior IC level owning technical direction across teams, without direct reports.

Introduced in 14B.1 The AI Engineering Landscape: Roles, Teams and Career Paths
Stage contract

The versioned shape+quality promise one pipeline stage makes to the next.

Introduced in 05.10 Data Quality Checks
stage sources (stage_sources)

The per-stage provenance list rrf_fuse records on fused hits — the unit source_mix counts.

Introduced in 07.2 Retrieval Strategies for RAG
Staged rollout

Gradual traffic increase (1% → 5% → 25% → 50% → 100%) with guardrail checks per stage.

Introduced in 13A.6 Product Metrics, Experiments and Unit Economics
StageRun

evalkit's per-case record of what each pipeline stage produced — the input every metric reads.

Introduced in 10A.6 Evaluating RAG Pipelines in Depth
Staging area / index

.git/index: the preview of the next commit; git add copies worktree content into it.

Introduced in 00.3 Git Fundamentals
Stagnation

A run that stays busy without making progress

Introduced in 08A.3 Loop Control, Budgets and Stagnation Detection in the Raw Loop
Stale memory

A memory that was true once and is no longer; flagged by age rather than silently trusted

Introduced in 08B.5 Memory Failure Modes, Context Rot, Production State Stores and AGENTS.md-style Files
Stale-over-current inversion

A retrieval result in which a stale memory ranks above the current one; the key read-time failure of append-only memory designs.

Introduced in 10A.11 Evaluating Agent Memory and Context Management
Staleness lag

The freshness metric: source-change time → indexed time.

Introduced in 05.9 Ingestion Pipelines and Incremental Updates
Staleness rate

The share of update- or expiry-sensitive probes where a superseded or expired memory was retrieved (retrieval level) or stated in the answer (answer level); the retrieval-level rate is the leading indicator.

Introduced in 10A.11 Evaluating Agent Memory and Context Management
Standalone query

A self-contained question that needs no conversation context — the text retrieval actually embeds and ranks against.

Introduced in 07.6 Conversational RAG
Standalone server

An Agent Server you run yourself with your own PostgreSQL, Redis and a licence key, without a control plane.

Introduced in 11A.5 LangSmith, Testing and Deployment
Standard content block

A typed dictionary (text, reasoning, tool_call, image, file, refusal, ...) that normalizes provider-specific content.

Introduced in 08F.5 Chat Models, Messages and Content Blocks
Standard model exceptions

The langchain_core.exceptions family (ModelRateLimitError, ModelTimeoutError, ContextOverflowError, ...) with an is_retryable flag.

Introduced in 08F.5 Chat Models, Messages and Content Blocks
Standard Webhooks

An open specification (webhook-id, webhook-timestamp, webhook-signature headers, HMAC-SHA256) followed by OpenAI, Anthropic and Gemini.

Introduced in 03.9 Async, Concurrency and Batch Processing
Standing approval

A narrow, time-limited, revocable rule that pre-authorises a low-risk action type, evaluated by the policy layer, never covering rung-3 actions.

Introduced in 13A.3 AI UX II: Trust, Transparency, Feedback and Human-in-the-Loop
Standup

A short daily sync: what I did, what I'm doing, what's blocking me.

Introduced in 00.9 Working Like an Engineer: Debugging, Asking for Help and Learning Habits
STAR

Situation-Task-Action-Result: the standard four-beat structure for behavioural answers; STAR-L adds a Learning beat.

Introduced in 14B.8 Interview Prep III: Take-Homes, Behavioural Rounds and Offers
STAR-L

STAR plus a Learning beat — for failure, feedback and growth stories.

Introduced in 14B.8 Interview Prep III: Take-Homes, Behavioural Rounds and Offers
Starlette

The lightweight ASGI toolkit under FastAPI: routing, requests/responses, middleware, static files, TestClient.

Introduced in 01B.7 FastAPI Basics: Building a Small API
START and END

The virtual entry and exit nodes ("__start__" and "__end__").

Introduced in 08F.10 LangGraph Fundamentals
Start method

How multiprocessing creates a child process: fork, spawn or forkserver; the default differs by platform and changed on Linux in Python 3.14.

Introduced in 01C.7 Shared Memory and Inter-Process Communication
Start-up prompt

The prescriptive first message for a fresh window: where to look, what to run, which rules to obey

Introduced in 08B.3 Short-Term Memory: Truncation, Summarization and Compaction
Starvation

A ready thread, request or tenant is repeatedly passed over and never gets the resource while others make progress.

Introduced in 01C.4 Deadlocks, Livelock and Starvation
State

Everything the loop needs to continue one run; gone when the run ends

Introduced in 08A.1 Agent Definitions, the Autonomy Spectrum and Agent Anatomy
State machine

Explicit nodes/transitions modelling an agent flow instead of a free loop.

Introduced in 08A.10 Agent Patterns: ReAct, Plan-and-Execute, Routing and Orchestrator-Workers
State oracle

An oracle that checks environment state (actions taken, budgets spent, approvals logged) rather than response text — essential for agents.

Introduced in 12.8 Red Teaming and Security Testing
State schema

The TypedDict, dataclass or Pydantic model whose keys become the graph's channels.

Introduced in 08F.10 LangGraph Fundamentals
State-handle hijacking

Guessing or stealing an opaque state handle (cart/workflow ID) returned as a tool argument in stateless MCP, then acting as another user — mitigated by binding handles server-side to the authenticated principal.

Introduced in 12.6 Securing Tools, Agents and MCP
State-space model (SSM) / Mamba

Sequence layers with a fixed-size recurrent state, trainable in parallel.

Introduced in 02.4 Attention and Transformers
Stateful

Remembers state between requests (vs stateless HTTP); sessions and tokens are how apps fake it.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
StateGraph / ToolNode / tools_condition

LangGraph's graph builder, prebuilt tool-executing node, and router that decides tools-vs-end.

Introduced in 08F.1 Agent Frameworks and SDKs
Stateless / stateful

Remembers state between requests (vs stateless HTTP); sessions and tokens are how apps fake it.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Statelessness

The property that a model keeps nothing between requests, so every request must contain all the context the model needs, including the conversation so far.

Introduced in 02.7 Context Windows
Statement

Code that does something (x = 1, print(x), if ...:).

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
Statement of Applicability

The ISO/IEC 42001 record of which Annex A controls an organisation applies, and why any are excluded

Introduced in 12.9 Responsible AI, Policy and Compliance
StateSnapshot

The named tuple returned by get_state: values, next, config, metadata, created_at, parent_config, tasks, interrupts.

Introduced in 08F.11 Persistence, Durable Execution and Memory
Static breakpoint

A pause before or after a named node, set with interrupt_before or interrupt_after; meant for debugging.

Introduced in 08F.12 Human-in-the-Loop and Control Flow
Static embedding

One fixed vector per token, regardless of context.

Introduced in 02.3 Embeddings
Static processing

Gemini's default video mode: fixed 1 FPS frame extraction placed into context in one pass, with a timestamp every second.

Introduced in 09.8 Video Understanding
Static site

Pre-built files served as-is / server renders HTML per request / client-side app fetching JSON APIs.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Static site generator

A tool that builds a static site from Markdown or content files — MkDocs, Pelican, Sphinx, Hugo.

Introduced in 14B.4 Writing and Learning in Public
Static type checker

Mypy/pyright/basedpyright/ty/pyrefly — reads hints without running code.

Introduced in 01A.10 Type Hints and Writing Readable Code
Status code

The three-digit code in an HTTP response's start line; the first digit gives the class (1xx–5xx).

Introduced in 00.6 HTTP, REST and JSON
Status exception

An SDK exception for an HTTP 4xx/5xx response, carrying the status, body and request ID.

Introduced in 03.8 Errors, Rate Limits, Timeouts and Retries
Status page

The provider's live incident and uptime page ([glossary](glossary.md)).

Introduced in 00.8 Reading API Documentation
Status update

A four-part progress report: done, doing, blocked/risks, next.

Introduced in 14B.9 Your First 90 Days and Long-Term Growth
Statuspage API

Atlassian's JSON API for machine-readable status (/api/v2/status.json).

Introduced in 11A.2 Metrics, Dashboards, SLOs and Alerting
stdin / stdout / stderr

A command's three standard channels: input (fd 0), normal output (fd 1) and errors (fd 2).

Introduced in 00.2 The Terminal and Shell
stdio transport

Newline-delimited JSON-RPC over a subprocess's stdin/stdout.

Introduced in 08E.1 The Model Context Protocol (MCP)
stem / suffix / name / parent

Path anatomy: tickets.csv → stem tickets, suffix .csv.

Introduced in 01A.9 Files, Paths, JSON and CSV
Stemming / lemmatization

Crude suffix-stripping to a root / dictionary-based base-form reduction.

Introduced in 06.7 Keyword Search and BM25
Step

One typed element of an Interactions conversation, such as user_input, model_output, thought or function_call; the Interactions API uses step types instead of roles.

Introduced in 03.2 Messages, Roles and Conversation State
Step cap

The hard limit on loop iterations; the share of runs that hit it is a loop-health signal

Introduced in 11A.2 Metrics, Dashboards, SLOs and Alerting
Step events

Gemini Interactions' streaming style: step.start / step.delta / step.stop per step.

Introduced in 03.3 Streaming Responses
Step latency / run latency

Time for one model or tool call versus time for a whole agent run

Introduced in 11A.3 Latency Percentiles, Error Classification, Audit Logs, Session Replay, Dashboards and SLOs
Step-back prompting

Answering a more general question first, then reasoning to the specific answer (Zheng et al., ICLR 2024).

Introduced in 04.3 Reasoning Prompts: Chain-of-Thought and Friends
Step-up authorization

Getting a new token with more scopes after an insufficient_scope response

Introduced in 08E.3 Remote MCP: OAuth, Gateways and Many Servers
StepRecord / Step-level grading

One tool call's record; grading individual calls for right tool and right args.

Introduced in 10A.7 Evaluating Agents, Tool Use and Multimodal Systems
Steps per run

The number of loop iterations (model call plus tool calls) in one agent run, recorded as a histogram

Introduced in 11A.2 Metrics, Dashboards, SLOs and Alerting
Sticky filters

Durable user-set retrieval constraints (e.g. region=EU) persisted in session state and applied to every later retrieval.

Introduced in 07.6 Conversational RAG
Sticky hashing

Assigning users to arms by a stable hash so A/B and canary splits are consistent per user.

Introduced in 11B.5 Model Selection and Routing
Sticky routing

OpenRouter sending a conversation's requests to the same provider (keyed by session_id) so that provider's cache can hit.

Introduced in 03.7 Token Counting, Cost Tracking and Prompt Caching
Stop condition

The rule ending a loop — good (answer, finish tool, cancel) or bad (budget, loop detected).

Introduced in 08A.2 The Tool Loop: From One Round Trip to an Agent
Stop gate

A hook that runs when the agent says it is done and sends it back to work if a check fails.

Introduced in 08A.4 Harness Engineering: Everything Around the Model
Stop sequence

A string that ends generation when the model produces it.

Introduced in 02.5 Generation and Sampling
StopIteration

The exception an exhausted iterator raises; for catches it to end the loop.

Introduced in 01A.5 Comprehensions, Iterators and Generators
Stopping controller

A function, or the default expected-outcome check, that returns end or proceed before each simulated user turn.

Introduced in 10B.6 DeepEval Datasets, Synthetic Data, Conversation Simulation and Benchmarks
Stopword

A high-frequency low-value word often removed at analysis time.

Introduced in 06.7 Keyword Search and BM25
Store (BaseStore)

The cross-thread key-value memory interface with put, get, search, delete and list_namespaces.

Introduced in 08F.11 Persistence, Durable Execution and Memory
Store (Inspect)

A per-sample key-value scratchpad shared by solvers, tools and scorers and written to the log; StoreModel is its typed, Pydantic form.

Introduced in 10B.9 Inspect Datasets, Solvers and Task Configuration (optional)
store (Responses / Interactions)

The request flag that makes OpenAI's Responses API or Gemini's Interactions API keep a copy of the request and response on the provider's servers; it defaults to true on both.

Introduced in 03.2 Messages, Roles and Conversation State
Store payload

The flat, null-free projection of the rich metadata model written to a vector store, produced by a dedicated flattener.

Introduced in 05.8 Metadata Design
Store TTL

A time to live in minutes on a store item, supported by the SQLite and Postgres stores and enforced by a sweep.

Introduced in 08F.11 Persistence, Durable Execution and Memory
Story bank

A collection of prepared STAR stories mapped to competencies, so candidates can adapt real experience to whichever question is asked.

Introduced in 14B.8 Interview Prep III: Take-Homes, Behavioural Rounds and Offers
str dtype

Pandas 3's dedicated string dtype (PyArrow-backed when installed) replacing object for text columns.

Introduced in 01B.11 NumPy and pandas Essentials for AI Work
str.join

sep.join(list) builds a string; the fast idiom vs + in loops.

Introduced in 01A.2 Numbers, Strings and Text
str_replace_based_edit_tool

Anthropic's text-editor tool (text_editor_20250728) with view/create/str_replace/insert commands.

Introduced in 08A.15 Coding and Computer-Use Agents
Straggler

A branch still running after a quorum is reached

Introduced in 08A.11 Reflection, Parallel Fan-Out and Agent-as-a-Tool
Straight-through processing (STP)

Fraction of documents auto-approved with no human touch — the headline quality metric.

Introduced in 13B.3 Capstone Build B: The Document Intelligence App
Straight-through processing (STP) rate

The percentage of documents auto-approved with no human review.

Introduced in 09.2 Document Understanding with Vision Models
Strangler pattern

Replacing a system gradually by sending new traffic to the new one while the old one finishes what it started.

Introduced in 08F.15 Patterns, Pitfalls and Migration
Strategy / adapter / registry

Interchangeable algorithms / interface translation / name→implementation lookup.

Introduced in 01A.6 Classes, Dataclasses and Enums
Stratified sample

A sample taking files from every folder×format group, not just the biggest.

Introduced in 05.1 Data Sources, Formats and the Ingestion Mindset
Stratified sampling

Sampling a fixed quota per subgroup (doc type, source, topic) instead of uniformly at random.

Introduced in 10.2
Stream accumulator

Code that rebuilds a final message (text, tool calls, reasoning, finish reason, usage) from stream events.

Introduced in 03.3 Streaming Responses
Stream chunk

Chat Completions' streaming unit: a small completion object whose delta holds only the new content.

Introduced in 03.3 Streaming Responses
Stream cursor

The last sequence_number or event_id received, used to resume.

Introduced in 03.3 Streaming Responses
Stream helper

An SDK wrapper such as responses.stream() or messages.stream() that consumes the events, accumulates the final message and adds convenience events and methods.

Introduced in 03.3 Streaming Responses
Stream mode

A named kind of streamed output: values, updates, messages, custom, checkpoints, tasks, debug.

Introduced in 08F.14 The Functional API and Streaming
Stream obfuscation

OpenAI's random padding on stream events (stream_options.include_obfuscation) that hides token lengths from network observers.

Introduced in 03.3 Streaming Responses
Stream priming

Pulling the first forwardable stream event before the SSE response starts, so pre-byte failures stay HTTP statuses.

Introduced in 11C.1 Deploying LLM Services
Stream reset / broken stream

A started stream that is restarted on another route (the UI must clear what it showed) / one that failed after the first chunk and is surfaced with its partial text.

Introduced in 11C.3 Fallbacks, Gateways and Reliability
Stream writer

A callable (from get_stream_writer(), a writer parameter or runtime.stream_writer) that sends values into the custom stream.

Introduced in 08F.14 The Functional API and Streaming
Streamable HTTP

POST-per-message HTTP transport with optional per-request SSE replies.

Introduced in 08E.1 The Model Context Protocol (MCP)
StreamChannel

The iterable a transformer pushes items into; a named channel also emits custom:<name> events.

Introduced in 08F.14 The Functional API and Streaming
Streaming / SSE

Sending output to the client piece by piece as it's generated, usually as server-sent events. *(Introduced in [lesson 02.5](02-how-llms-work/05-generation-and-sampling.md#81-what-streaming-is))* The format itself, and how each provider uses it, is described under [Server-Sent Events (SSE)](#server-sent-events-sse). *(Extended in [lesson 03.3](03-llm-apis/03-streaming.md#21-sse-in-one-page))*

Streaming gateway

The BFF/application-API role that opens provider streams, normalises their dialects into the product's event contract, and re-emits client-safe events.

Introduced in 13A.5 Architecture Patterns for AI Applications
Streaming reasoning

Receiving a reasoning model's output incrementally: thinking (or empty placeholder) events arrive first, then answer text, so interfaces should route thinking and answer events separately.

Introduced in 02.8 Reasoning Models
StreamingResponse

Response class that sends an iterator's chunks as they're produced.

Introduced in 01B.7 FastAPI Basics: Building a Small API
StreamPart (v2)

The uniform chunk dict {"type", "ns", "data"} yielded when version="v2".

Introduced in 08F.14 The Functional API and Streaming
StreamTransformer

A class that observes protocol events and builds your own projection, registered through transformers=[...].

Introduced in 08F.14 The Functional API and Streaming
Strict majority (grader panel)

Inspect's default rule for combining a panel of graders: a grade wins only if more than half of the panel returns it, otherwise the sample is unscored.

Introduced in 10B.11 Model Grading in Inspect, and Validating the Grader (optional)
Strict mode

Validation accepting only exact types; per-field (StrictInt), per-model (strict=True) or per-call.

Introduced in 01B.6 Data Validation with Pydantic
Strict mode (DeepEval)

A DeepEval metric switch (strict_mode=True) that forces the threshold to 1 and turns any imperfect verdict-based score into 0, making the metric a hard gate; for G-Eval it also asks the judge for a binary 0 or 1 score, without normalization or log-probability weighting. *(Introduced in [lesson 10B.2](10b-eval-frameworks/02-deepeval-fundamentals.md#33-the-switches-every-metric-shares))* *(Extended in [lesson 10B.3](10b-eval-frameworks/03-deepeval-judges-geval-and-custom-metrics.md#47-strict-mode))*

Strict msgpack

The LANGGRAPH_STRICT_MSGPACK=true mode that blocks unregistered types when loading a checkpoint.

Introduced in 08F.11 Persistence, Durable Execution and Memory
strict outcome

The primary endpoint measuring task success in final state, excluding partial credit and process behaviour.

Introduced in 10B.16 Evaluating Agents with Inspect, and the Inspect Ecosystem (optional)
Strict table (STRICT)

SQLite 3.37+ real type enforcement / SQLite's "preferred type" per column.

Introduced in 00.7 SQL Basics with SQLite
Strict tool

A tool (function) definition whose arguments are constrained to its parameter schema; usable as a structured-output channel.

Introduced in 03.4 Structured Output
Strict tool use

Constrained generation that guarantees a tool call's arguments match the tool's JSON Schema (strict: true on OpenAI and Anthropic; Gemini's VALIDATED mode).

Introduced in 03.5 Tool Calling: The API Mechanics
Strictness ratchet

Gradual adoption of strict checking: signatures first, one flag at a time.

Introduced in 01A.10 Type Hints and Writing Readable Code
StrictUndefined

Jinja setting that makes a missing template variable an error rather than an empty string.

Introduced in 04.10 Prompt Templates, Versioning and a Prompt Library
STRIDE

Microsoft's six threat categories applied to LLM apps with three amendments: unpatchable model process, natural-language flows, tool-call actions.

Introduced in 12.1 Threat Modelling LLM Applications
Strike price

The fixed price at which options can be exercised.

Introduced in 14B.8 Interview Prep III: Take-Homes, Behavioural Rounds and Offers
string.Template

Stdlib $name-placeholder substitution for fill-in text; safer than f-strings when the template is data, not code.

Introduced in 01A.2 Numbers, Strings and Text
Strong typing

No implicit type conversion: "5" + 3 raises TypeError instead of coercing.

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
struct

The standard module that packs and unpacks values to bytes using format strings.

Introduced in 01C.7 Shared Memory and Inter-Process Communication
Structural pattern matching

Python's match/case (3.10+, PEP 634): dispatch on the shape of a value — literals, sequences, mappings, class patterns, alternatives and guards.

Introduced in 01A.3 Control Flow and Functions
Structure-aware chunking

Splitting on the document's own headings/sections/styles.

Introduced in 05.6 Chunking Strategies
Structured hand-off

A schema-checked record (fixed fields, no free text) that is the only thing allowed to pass from a quarantined reader to a privileged actor

Introduced in 12.1 Threat Modelling LLM Applications
Structured interviewing

Asking all candidates the same job-related questions and scoring against a rubric.

Introduced in 14B.8 Interview Prep III: Take-Homes, Behavioural Rounds and Offers
Structured log

One machine-readable record (usually a JSON object per line) written for every call with the same fields each time, instead of free text.

Introduced in 03.10 Logging, Debugging and Testing LLM Code
Structured logging

Machine-readable log records (JSON objects or key=value fields) that can be aggregated and queried, as opposed to free-text lines.

Introduced in 01A.8 Errors, Exceptions, Debugging and Logging
Structured output

Model output with a known, machine-checkable shape, usually JSON that matches a schema, so code can parse and validate it.

Introduced in 03.4 Structured Output
Structured Outputs (schema-constrained output)

A provider feature that constrains decoding to a JSON Schema you supply, so the reply matches it (within the provider's supported subset).

Introduced in 03.4 Structured Output
Structured-output method

json_schema (native), function_calling (forced tool) or json_mode (valid JSON only); defaults differ per provider class.

Introduced in 08F.6 Prompts, Output Parsers and Structured Output
structuredContent / outputSchema

A tool result's typed JSON value for client code / the JSON Schema it must conform to.

Introduced in 08E.1 The Model Context Protocol (MCP)
StructuredOutputValidationError

The agent error for a value that violates the schema; subclass of StructuredOutputError.

Introduced in 08F.6 Prompts, Output Parsers and Structured Output
StructuredPrompt

A prompt bundled with its output schema (langchain_core.prompts.structured).

Introduced in 08F.6 Prompts, Output Parsers and Structured Output
StructuredTool

The tool class @tool and StructuredTool.from_function build, with sync and async implementations.

Introduced in 08F.8 Tools and create_agent
Stub

A double returning canned answers without checking how it was called.

Introduced in 01B.8 Testing with pytest
Style transfer

Rewriting content in a different tone, voice or reading level while preserving all facts and caveats.

Introduced in 04.8 Prompt Patterns for Common Tasks
Sub-agent (context isolation)

A separate model call or agent that handles a focused sub-task in its own fresh context window and returns only a short summary, keeping the main conversation small.

Introduced in 02.7 Context Windows
Sub-context isolation

Delegating a sub-task to a fresh context that returns only a distilled summary, keeping the main window clean.

Introduced in 04.7 Context Engineering: Managing Context Over Time
Subagent

A separate agent instance spawned by a parent to handle a focused subtask in its own context window, returning only a condensed result.

Introduced in 08D.3 Multi-Agent Systems
Subagents pattern

The supervisor design recommended by the LangChain docs: a create_agent whose tools are create_agent subagents.

Introduced in 08F.13 Subgraphs and Multi-Agent Systems
Subgraph

A compiled graph used as a node of another graph, with shared keys (added as a node) or a state mapping (called inside a node).

Introduced in 08F.13 Subgraphs and Multi-Agent Systems
Subgraph persistence mode

The checkpointer setting of a subgraph's compile(): None (per-invocation), True (per-thread) or False (stateless).

Introduced in 08F.13 Subgraphs and Multi-Agent Systems
subgraphs=True

A stream option that also streams from subgraphs and agents used as nodes.

Introduced in 08F.14 The Functional API and Streaming
Subinterpreter

An isolated Python interpreter inside one process, with its own modules and optionally its own GIL (PEP 684).

Introduced in 01C.5 The Global Interpreter Lock (GIL)
Submit tool

The agent-visible tool that explicitly submits an answer and ends a react() run.

Introduced in 10B.14 Tools and Agents in Inspect: Custom Tools, MCP, react() and Multi-Agent Systems (optional)
`submit` trap

The failure mode where an approval policy unintentionally rejects the agent's own submission tool, so it cannot finish.

Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)
Submodule

A nested repository embedded at a pinned commit.

Introduced in 00.3 Git Fundamentals
subprocess

Run child processes; argv-list form is safe, shell=True is dangerous.

Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Library
Subprocessor

A third party that touches your data downstream of a vendor — part of the compliance chain.

Introduced in 11C.4 Operating LLM Systems: Governance, Incidents and the Production Checklist
Subquery / correlated subquery

A SELECT inside a statement; one referencing the outer row.

Introduced in 00.7 SQL Basics with SQLite
subscriptions/listen

Long-lived opted-in stream for server change notifications.

Introduced in 08E.1 The Model Context Protocol (MCP)
Subword tokenization

Splitting text into units between characters and whole words: frequent words stay whole and rare words are built from pieces.

Introduced in 02.2 Tokens and Tokenization
Success criteria

The definition of done for a prompt's output, stated concretely enough to check in a test.

Introduced in 04.1 Anatomy of a Good Prompt
success threshold (pass_at / pass_k)

The score at or above which Inspect's pass_at() and pass_k() reducers count an epoch as a success, set with value= and 1.0 by default, so partial credit counts as failure unless you lower it.

Introduced in 10B.16 Evaluating Agents with Inspect, and the Inspect Ecosystem (optional)
sudo

"Superuser do": run one command as the administrator on Unix-like systems.

Introduced in 00.1 Setting Up Your Computer for Development
Sufficiency check

A pre-generation gate asking whether the context can answer the question — a free query-term-coverage heuristic and/or a small model returning a structured verdict.

Introduced in 07.4 Grounded Generation: Prompts, Context Assembly and Abstention
Suggest

Autonomy level 1: the agent proposes; nothing runs

Introduced in 08A.1 Agent Definitions, the Autonomy Spectrum and Agent Anatomy
suggested_doc_type

The enrichment model's document-type guess stored as a proposal; promotion to the canonical doc.doc_type is a human review decision.

Introduced in 05.8 Metadata Design
Summarization / compaction

Replacing older parts of a conversation with a condensed summary to save tokens, either in your own code or through a provider feature. Also called summarization.

Introduced in 02.7 Context Windows
SummarizationMiddleware

Middleware that replaces old messages with a model-written summary once trigger is reached; does nothing if trigger is unset.

Introduced in 08F.8 Tools and create_agent
Summary

A metric with client-side quantiles — can't be aggregated across instances.

Introduced in 11A.2 Metrics, Dashboards, SLOs and Alerting
Summary drift / fact half-life

Loss accumulating over repeated compactions / the number of rounds until fidelity drops below half of the uncompressed baseline's.

Introduced in 10A.11 Evaluating Agent Memory and Context Management
Sunset (package)

The maintainers' decision to stop developing and releasing a package, as with langchain-community in May 2026.

Introduced in 08F.15 Patterns, Pitfalls and Migration
Super-step

One round of the runtime: plan, execute all triggered nodes in parallel, apply their writes together.

Introduced in 08F.10 LangGraph Fundamentals
Superposition

A network packing more concepts than it has neurons by overlapping their patterns. It's one reason models are hard to interpret.

Introduced in 02.1 Neural Network Basics
Superseded document

An old document version kept for history and marked by a superseded_by pointer, so current-truth and as-of queries can both be served.

Introduced in 05.8 Metadata Design
Supersession

Replacing a stale memory by marking the old record superseded_by the new one — temporal correctness without deletion.

Introduced in 08B.2 Memory for Agents: Short-Term and Long-Term
Supervised fine-tuning (SFT) / instruction tuning

Training a model on example prompt–response pairs, usually computing loss only on the responses; also called instruction tuning.

Introduced in 02.6 How LLMs Are Trained
Supervisor / hierarchical

Tree of agents where supervisors decompose, delegate, review and may re-delegate.

Introduced in 08D.3 Multi-Agent Systems
Supply-chain attack

An attack that compromises a dependency (for example a malicious package release) instead of your own code. LiteLLM's March and October 2026 PyPI incidents are the module's examples.

Introduced in 03.11 Building a Provider-Agnostic Client
Supported subset

The JSON Schema keywords and structures a provider's grammar engine accepts; anything outside it is rejected or silently ignored.

Introduced in 03.4 Structured Output
supported_parameters

OpenRouter's typed capability descriptors (enum/range/boolean) per model/endpoint.

Introduced in 09.3 Image Generation and Editing
Surprise log

The dated notes, with package versions, of cases where a docs page, a lesson and the package disagreed.

Introduced in 10B.18 Finish Learning DeepEval and Inspect from the Official Docs
Survivorship bias

Studying only survivors of a selection process; the AI graveyard problem.

Introduced in 13A.7 Case Studies: How Real AI Products Are Built, and How They Fail
Sustainable Use License

n8n's licence: use for internal business, non-commercial or personal purposes; free non-commercial redistribution only

Introduced in 08F.16 Low-Code Agent Platforms: n8n and Dify (awareness)
svg authoring object

svg.model + svg.reasoning.effort on gpt-image-2.6: selects the model and reasoning effort that writes SVG output from a reference image.

Introduced in 09.3 Image Generation and Editing
Swagger UI / Redoc

Interactive and read-only renderers for OpenAPI documents.

Introduced in 00.8 Reading API Documentation
Swarm

Peer agents handing off to each other with no supervisor, with the last active agent remembered across turns.

Introduced in 08F.13 Subgraphs and Multi-Agent Systems
SwiGLU

A gated MLP design used by most modern LLMs, with two paths, one passed through SiLU, multiplied together.

Introduced in 02.1 Neural Network Basics
Swiss-cheese model

Layering several imperfect quality checks (evals, monitoring, A/B tests, feedback, transcript review) so each catches what the others miss.

Introduced in 10A.1 Why Evals Matter: The Evaluation Mindset
Switch interval

CPython's requested time slice for handing the GIL between threads (sys.getswitchinterval(), 0.005 s observed).

Introduced in 01C.1 Concurrency, Parallelism and Context Switching
Switch signal

An observable fact that should move you off the default ([10.1](13a-product-engineering/08-prompting-rag-or-fine-tuning.md#101-four-habits))

Introduced in 13A.8 Decision Frameworks: Eight Decisions Plus One
Switchback design

Alternating variants over time for the same users to control carry-over effects in A/B tests.

Introduced in 04.10 Prompt Templates, Versioning and a Prompt Library
Switchback test

Alternating variants over time for the same units to control carry-over.

Introduced in 10A.9 Offline vs Online Evaluation
Sycophancy

A model's tendency to tell users what they want to hear (agreeing, flattering, abandoning correct answers under pushback), largely a side effect of preference training.

Introduced in 02.6 How LLMs Are Trained
Sycophancy by design

Tuning the system to never disagree, eroding user judgement.

Introduced in 13A.3 AI UX II: Trust, Transparency, Feedback and Human-in-the-Loop
Sync vs async

Caller waits for result vs hands off and continues; async ≠ parallel.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Sync vs async deployment shape

Sync keeps the caller's connection open until the work is done (a stream); async answers at once with a job ID and does the work elsewhere (in-process or queue + worker)

Introduced in 11C.1 Deploying LLM Services
Synchronous

A call that does not return until its result is ready; the caller's stack (and thread) waits.

Introduced in 01C.2 Synchronous vs Asynchronous Programming and the asyncio Event Loop
Synchronous vs asynchronous

Caller waits for result vs hands off and continues; async ≠ parallel.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Syndication

Cross-posting content to other platforms while pointing canonical links back to the original, so reach and ownership are both captured.

Introduced in 14B.4 Writing and Learning in Public
Syntax error

A parse failure — the file can't run at all (SyntaxError, IndentationError).

Introduced in 01A.8 Errors, Exceptions, Debugging and Logging
Syntax error vs runtime error

Compile-time parse failure (nothing runs) vs failure during execution (full traceback).

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
SyntaxWarning

Compile-time warning (e.g. is with a literal).

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
Synthesizer

DeepEval's generator of synthetic goldens from contexts, documents, existing goldens or a style description; a proposal generator with provenance, not a dataset factory.

Introduced in 10B.6 DeepEval Datasets, Synthetic Data, Conversation Simulation and Benchmarks
Synthetic data

Training data generated by models rather than written by people, usually filtered or verified before use.

Introduced in 02.6 How LLMs Are Trained
Synthetic examples

Examples generated by an LLM and curated by humans.

Introduced in 04.2 Zero-Shot, Few-Shot and Examples
Synthetic probe

A scheduled, controlled request testing the service end-to-end with a fixed input and known expected shape.

Introduced in 11A.2 Metrics, Dashboards, SLOs and Alerting
SynthID

Google's invisible pixel watermark on all Gemini-generated images.

Introduced in 09.3 Image Generation and Editing
sys module

Built-in module exposing interpreter state (sys.executable, sys.argv, sys.exit).

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
sys._is_gil_enabled()

Reports whether the GIL is on in the running process (3.13+).

Introduced in 01C.5 The Global Interpreter Lock (GIL)
sys.argv

Command-line arguments; argv[0] is the script name.

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
sys.excepthook

The function Python calls for an exception that nothing caught; replaceable, for routing uncaught errors into logs.

Introduced in 01A.8 Errors, Exceptions, Debugging and Logging
sys.executable

The exact interpreter binary running your code.

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
sys.exit() / SystemExit

End the program with a chosen exit code.

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
sys.getsizeof

Returns the size of one object in bytes, excluding the objects it refers to, so it understates the cost of containers.

Introduced in 01C.6 Python Memory Management
sys.modules

The cache of already-imported module objects; a second import returns the cached object instead of re-running the file.

Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Library
sys.path

The ordered list of directories the import system searches for modules; the script's directory is first, then PYTHONPATH, stdlib, site-packages.

Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Library
sys.stdlib_module_names

The authoritative set of standard-library module names (3.10+).

Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Library
System budget

A run-level cap on total tokens, cost, wall-clock and subagent count, enforced by code rather than prompts.

Introduced in 08D.3 Multi-Agent Systems
System call (syscall)

A request from a program to the operating-system kernel (read, recv, futex...).

Introduced in 01C.1 Concurrency, Parallelism and Context Switching
System card / model card

A provider's detailed document for a model release, covering capabilities, safety evaluations, safeguards and limitations; a fuller form of a model card.

Introduced in 02.6 How LLMs Are Trained
System inventory / AI-BOM

The registry of every model, prompt, tool, index, eval, key and data flow in production, with owners.

Introduced in 11C.4 Operating LLM Systems: Governance, Incidents and the Production Checklist
System prompt

The standing instructions your application sends with every request: identity, rules, style and scope.

Introduced in 04.5 System Prompts, Roles and Personas
System prompt blueprint

The section checklist (identity, audience, scope, capabilities, rules, style, format, refusal, missing-context, runtime facts) for assembling a system prompt.

Introduced in 04.5 System Prompts, Roles and Personas
System slot

The privileged part of a request (system, developer or instructions) where only text you wrote may go

Introduced in 04.5 System Prompts, Roles and Personas
system_instruction

Gemini's field for standing instructions: inside GenerateContentConfig for generate_content, and a top-level string for the Interactions API.

Introduced in 03.2 Messages, Roles and Conversation State

T

@task (Inspect decorator)

Inspect's decorator that registers a function returning a Task, so the CLI can find it by name, its arguments become task parameters, and the log records them.

Introduced in 10B.8 Inspect AI Fundamentals: Task = Dataset + Solver + Scorer (optional)
@task decorator

A Functional API decorator whose result is saved when it finishes and returned instead of re-running on replay.

Introduced in 08F.11 Persistence, Durable Execution and Memory
@traceable

The decorator that turns your own function into a run, nesting inside other traced runs.

Introduced in 11A.5 LangSmith, Testing and Deployment
`_trace_dict`

The nested JSON representation of a DeepEval span subtree passed to trace-aware metrics; it includes names, types, inputs, outputs, tool evidence and children but omits ids, exact timings, status and metadata.

Introduced in 10B.5 DeepEval Tracing, Component-Level Evals and Agent Evaluation
T-shaped profile

Broad competence across many skills with deep expertise in one or two.

Introduced in 14A.8 Skills Map and Gap Analysis
t-string / Template

t"..." literal (3.14+) that keeps literal text and interpolated values separate in a string.templatelib.Template instead of joining them into a str.

Introduced in 01A.2 Numbers, Strings and Text
Table / row / column / cell

The grid: a relation, one record, one attribute, one value.

Introduced in 00.7 SQL Basics with SQLite
Table card / row-group chunk

An overview chunk describing a table's title, shape, columns and sample rows, complementing row-level chunks for tabular data.

Introduced in 05.7 Advanced and Document-Specific Chunking
Table recovery rate

Tables correctly extracted (row↔column binding intact) ÷ tables present.

Introduced in 05.10 Data Quality Checks
table retriever

A Retriever that returns database rows as Hits, enabling SQL+docs fusion under one contract.

Introduced in 07.2 Retrieval Strategies for RAG
Table strategy (lines/text/explicit)

How pdfplumber and camelot detect table grids: from ruling lines, whitespace/text alignment, or user-supplied lines.

Introduced in 05.2 Parsing PDFs
Tabletop exercise

A facilitated walkthrough of an incident scenario against the actual runbooks, to find gaps.

Introduced in 11C.4 Operating LLM Systems: Governance, Incidents and the Production Checklist
Tag

A (usually permanent) name for a commit; annotated tags are objects with messages.

Introduced in 00.3 Git Fundamentals
Tag characters / ASCII smuggling

Invisible Unicode characters (U+E0000 to U+E007F) that map onto ASCII and can hide a sentence inside visible text; legitimate only in flag emoji sequences.

Introduced in 05.5 Cleaning and Normalization
Tagged output

Asking the model to wrap its answer in tags so code can parse it reliably.

Introduced in 04.4 Structuring Prompts: XML, Markdown and Delimiters
Tagged PDF

A PDF carrying a structure tree (/StructTreeRoot) that marks headings, tables, lists and image alt text for accessibility and extraction.

Introduced in 05.2 Parsing PDFs
Tailoring

Customising the top of a résumé (summary, ordering, keywords) per posting without changing facts.

Introduced in 14B.5 Résumé, LinkedIn and the Job Search
Taint

A flag on a run meaning untrusted text has entered the context

Introduced in 08A.7 Tool Safety in the Loop: Idempotency, Validation and Truncation
Taint tracking (prompt)

Tagging content with its provenance and carrying that tag into derived outputs, so tool calls containing untrusted-derived data can be flagged — an imperfect detection aid, not a boundary.

Introduced in 12.2 Prompt Injection: Direct and Indirect
TAKE IT DOWN Act

US federal law (signed May 2025) criminalising nonconsensual intimate imagery including AI deepfakes, and requiring covered platforms to remove such content within 48 hours (effective May 2026).

Introduced in 12.9 Responsible AI, Policy and Compliance
Take-home assignment

An asynchronous work-sample assessment: a written brief completed on the candidate's own time and submitted as a repo or document.

Introduced in 14B.8 Interview Prep III: Take-Homes, Behavioural Rounds and Offers
Tamper-evident log

A log where each record includes the previous record's hash, so edits are detectable

Introduced in 14A.6 Agent Inventory, Risk and Autonomy Classification, and Policy-as-Code
tar

Archive tool: -czf creates a gzipped tarball, -xzf extracts, -tzf lists.

Introduced in 00.2 The Terminal and Shell
Target (Inspect)

What a sample is scored against: a literal answer, a list of acceptable answers, a multiple-choice letter, or grading guidance for a model grader. It defaults to "", which text scorers treat as matched by any output.

Introduced in 10B.9 Inspect Datasets, Solvers and Task Configuration (optional)
Target adapter

The harness seam (TargetAdapter.respond) that knows how to call the system under test — fake, HTTP endpoint or agent loop.

Introduced in 12.8 Red Teaming and Security Testing
Target-role profile

A YAML description of the levels and weights a specific job requires.

Introduced in 14A.8 Skills Map and Gap Analysis
Task

A coroutine scheduled independently on the loop (asyncio.create_task, TaskGroup).

Introduced in 01B.3 Async Python: async/await and the Event Loop
Task (Inspect)

Inspect's complete definition of an eval: a dataset of samples, a solver that produces each sample's output and one or more scorers, plus defaults such as epochs and limits; returned by a @task function. It is not the system under test.

Introduced in 10B.8 Inspect AI Fundamentals: Task = Dataset + Solver + Scorer (optional)
Task argument (Inspect)

A parameter of an @task function, set with -T, --task-config or task_args, YAML-parsed on the CLI and recorded in the log.

Introduced in 10B.9 Inspect Datasets, Solvers and Task Configuration (optional)
Task future

The handle a task call returns; .result() (or await) gives the value, and the task's exception is raised only there.

Introduced in 08F.14 The Functional API and Streaming
Task identity (Inspect)

What makes two runs the same task for an eval set: the @task name and arguments, the model, its generation config and model args (not base URL or credentials).

Introduced in 10B.12 Running Inspect Evals for Real: Models, Configuration, Concurrency, Caching, Errors and Eval Sets (optional)
Task parameter (Inspect)

An argument of a @task function, set at run time with -T key=value, --task-config or task_args, and recorded in the log.

Introduced in 10B.8 Inspect AI Fundamentals: Task = Dataset + Solver + Scorer (optional)
Task scam

A gamified job scam ("rate videos for pay") documented by the FTC; losses topped $220M in H1 2024.

Introduced in 14B.5 Résumé, LinkedIn and the Job Search
Task state

One of SUBMITTED, WORKING, COMPLETED, FAILED, CANCELED, INPUT_REQUIRED, REJECTED, AUTH_REQUIRED (with a TASK_STATE_ prefix in v1.0)

Introduced in 08E.4 A2A Basics, Agent Skills (SKILL.md) and Tool Selection at Scale
Task success rate

Successes divided by trials, where success is judged by an outcome check

Introduced in 08D.2 Hands-On: Two-Agent vs Single-Agent, Built, Traced and Evaluated
Task type / input_type

A hint passed to an embedding model (Voyage input_type, Cohere input_type, Gemini task_type, or an open-model text prefix) telling it whether the input is a query or a document so it can embed the two asymmetrically for retrieval.

Introduced in 06.1 Embedding Models and APIs in Practice
task version (Inspect Evals)

The N-X version every Inspect Evals task carries: N, the comparability version, is bumped when scores stop being comparable with earlier runs, and X when the task's interface changes; the .eval log records it.

Introduced in 10B.16 Evaluating Agents with Inspect, and the Inspect Ecosystem (optional)
Task view (Inspect)

A ViewerConfig stored with a task that sets Inspect View's default sample columns, sort and score panel for every log the task writes.

Introduced in 10B.13 Inspect Logs, Analysis and Extending Inspect (optional)
task_done() / join()

Queue completion protocol: mark each get done; join waits for all.

Introduced in 01B.4 Concurrency Patterns for I/O-Heavy Work
task_with()

An Inspect function that overrides any parameter of an existing task, the only way to swap a live task's scorer; it modifies the task you pass rather than copying it.

Introduced in 10B.9 Inspect Datasets, Solvers and Task Configuration (optional)
TaskGroup

Structured concurrency: tasks live/die together; first failure cancels siblings.

Introduced in 01B.3 Async Python: async/await and the Event Loop
TaskNode (DeepEval)

A DAG node that asks the judge to produce text, such as extracted headings, which is passed to its direct child nodes; it never scores.

Introduced in 10B.3 Judges in DeepEval: Models, G-Eval, DAG and Custom Metrics
tasks

A stream mode that emits a start event and a result event for each node or task.

Introduced in 08F.14 The Functional API and Streaming
TaskState

The per-sample, per-epoch object Inspect's solvers transform and scorers read: the messages sent to the model, the output, the original input, target, metadata, store and limits. *(Introduced in [lesson 10B.8](10b-eval-frameworks/08-inspect-fundamentals.md#21-the-three-ingredients))* *(Extended in [lesson 10B.9](10b-eval-frameworks/09-inspect-datasets-solvers-and-tasks.md#52-taskstate-member-by-member))*

Taxonomy-first generation

Deciding the coverage grid before generating, so the model fills cells rather than choosing coverage.

Introduced in 10A.2 Building Evaluation Datasets
TCP

Reliable ordered byte-stream (three-way handshake) vs connectionless packets; DNS and QUIC use UDP.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Tech lead

An IC who coordinates technical work on a project or team without being an engineering manager.

Introduced in 14B.1 The AI Engineering Landscape: Roles, Teams and Career Paths
Tech radar

A personal, dated map of tools, models, libraries and techniques sorted into adopt/trial/assess/hold rings.

Introduced in 14A.9 Staying Current in a Fast-Moving Field
TEI / vLLM

Hugging Face's dedicated Rust server for hosting transformer embedding models over HTTP with continuous batching and quantization support.

Introduced in 06.1 Embedding Models and APIs in Practice
Temperature

A setting that divides logits before softmax, making the distribution sharper (below 1) or flatter (above 1).

Introduced in 02.5 Generation and Sampling
Template format

f-string (default), mustache or jinja2; selected with template_format.

Introduced in 08F.6 Prompts, Output Parsers and Structured Output
Template inheritance

Jinja {% extends %}/{% block %} composition: a base prompt layout that child templates override section by section — includes compose fragments, inheritance composes documents.

Introduced in 04.10 Prompt Templates, Versioning and a Prompt Library
Template rendering

Turning row fields into a controlled natural-language document.

Introduced in 05.1 Data Sources, Formats and the Ingestion Mindset
Template stickiness

How often a model obeys a required output template.

Introduced in 04.12 Prompt Hub, Research Findings and Model Notes
Template substitution (Inspect)

How Inspect's prompt solvers fill {name} placeholders from sample metadata, then the store, then solver parameters, leaving unknown or None-valued placeholders in place and mangling unescaped JSON braces.

Introduced in 10B.9 Inspect Datasets, Solvers and Task Configuration (optional)
Template variable / slot

A named placeholder (e.g. {{ name }}) filled when a template is rendered.

Introduced in 04.10 Prompt Templates, Versioning and a Prompt Library
tenacity

The standard Python retry library; policies built from stop/wait/retry pieces.

Introduced in 01B.9 Retries, Timeouts, Backoff and Resilience
Tenant

A customer/org whose data must be isolated within a shared deployment.

Introduced in 06.6 Filtering, Metadata and Multi-Tenant Search
Tenant fairness

Per-tenant sub-limits so one noisy tenant can't exhaust the shared pool.

Introduced in 11C.3 Fallbacks, Gateways and Reliability
Tenant isolation

The guarantee that one tenant cannot read, write or detect another's data

Introduced in 08B.1 Kinds of State and Session Management
tenant isolation test

Mechanical check that no hit escapes its permission scope, including adversarial queries.

Introduced in 07.2 Retrieval Strategies for RAG
Tenant shard

Qdrant's is_tenant payload-index marker enabling tenant-aware shard placement for isolated, efficient multi-tenant filtering.

Introduced in 06.5 Vector Databases: Choosing and Using One
Tensor

A grid of numbers with any number of dimensions (a vector has 1, a matrix 2); how frameworks and model files store weights.

Introduced in 02.1 Neural Network Basics
terminal condition

The reason a sample ended, such as completion, budget stop, policy stop, intervention, infrastructure error or external cancellation.

Introduced in 10B.16 Evaluating Agents with Inspect, and the Inspect Ecosystem (optional)
Terminal emulator

The window that hosts the shell; the "terminal" you see and type into.

Introduced in 00.1 Setting Up Your Computer for Development
Terminal event

The event that marks a stream's successful end (response.completed, message_stop, interaction.completed); a stream that ends without it was interrupted.

Introduced in 03.3 Streaming Responses
Terminal state / interrupted state

Terminal: the task is over. Interrupted: the task waits for the client to supply input or credentials

Introduced in 08E.4 A2A Basics, Agent Skills (SKILL.md) and Tool Selection at Scale
Test discovery

Pytest's rules for finding tests: test_*.py files, test_* functions, Test* classes.

Introduced in 01B.8 Testing with pytest
Test double

Anything standing in for a real dependency: dummy, stub, fake, spy or mock.

Introduced in 01B.8 Testing with pytest
Test-case matrix

Risk classes × channels × oracles organised so coverage is auditable against the OWASP LLM and Agentic Top 10 lists.

Introduced in 12.8 Red Teaming and Security Testing
Test-time compute (inference-time compute)

Computation spent while answering a request rather than during training, for example by thinking longer or sampling several answers.

Introduced in 02.8 Reasoning Models
Test-time scaling

Improving results by spending more compute at answer time; accuracy typically rises roughly with the logarithm of the compute, with diminishing returns.

Introduced in 02.8 Reasoning Models
TestClient / ASGITransport

In-process test clients: sync TestClient for def tests, httpx.ASGITransport + pytest.mark.anyio for async tests.

Introduced in 01B.7 FastAPI Basics: Building a Small API
TestModel / FunctionModel / agent.override

Pydantic AI's fakes for key-free unit testing.

Introduced in 08F.1 Agent Frameworks and SDKs
Text coverage / coverage ratio

Heuristic ratio of extracted characters to expected density for a page area, used to detect scanned or image-only pages.

Introduced in 05.2 Parsing PDFs
Text layer

Invisible, searchable text embedded in a PDF, separate from the visible page image; produced by OCR or born-digital export.

Introduced in 05.4 OCR and Scanned Documents
Text normalisation

Rewriting text — numbers, dates, abbreviations, IDs — into speakable form before synthesis.

Introduced in 09.5 Text-to-Speech
Text region / bounding box

Page + coordinates locating text on a page, for citation highlights.

Introduced in 05.8 Metadata Design
Text splitter

An object that cuts documents into chunks (split_text, split_documents, create_documents).

Introduced in 08F.9 RAG with LangChain
Text watermarking / SynthID / textGrain

Techniques that embed invisible statistical signals in generated text (or images/audio) to signal AI provenance — OpenAI's textGrain and Google's SynthID — useful for attribution and compliance, not for preventing abuse or theft.

Introduced in 12.7 Securing RAG Data, Keys and the AI Supply Chain
Text-to-image (T2I) model

A generative model that produces an image from a text prompt.

Introduced in 09.3 Image Generation and Editing
Text-to-speech (TTS)

Converting written text into spoken audio via a model or service.

Introduced in 09.5 Text-to-Speech
Text-to-SQL

Letting the model write SQL queries against a live database instead of retrieving chunks.

Introduced in 05.1 Data Sources, Formats and the Ingestion Mindset
textGrain

OpenAI's text watermarking approach for generated text: automatic for EU ChatGPT users, opt-in for API customers globally.

Introduced in 12.9 Responsible AI, Policy and Compliance
Textual gradient

TextGrad's natural-language critique treated as a gradient for rewriting text variables — "autograd for text".

Introduced in 04.9 Iterating, Debugging and Porting Prompts
TF-IDF

The predecessor family: tf × idf without BM25's saturation/length norm.

Introduced in 06.7 Keyword Search and BM25
Theoretical saturation

The point in error analysis where new traces stop revealing new failure modes or changing existing categories.

Introduced in 10A.1 Why Evals Matter: The Evaluation Mindset
Thin wrapper

The design rule for such a layer: normalize what you use everywhere, keep an escape hatch to provider-specific features, never silently drop an unsupported option, and never hide the provider's own IDs and raw values.

Introduced in 03.11 Building a Provider-Agnostic Client
Thinking block / signature

The Claude response block that holds reasoning (a summary or empty text) plus an encrypted signature that must be passed back unchanged.

Introduced in 02.8 Reasoning Models
Thinking budget

A cap or target on the number of thinking tokens; legacy or deprecated on most current APIs in favour of effort levels.

Introduced in 02.8 Reasoning Models
Thinking signature

The encrypted copy of Claude's reasoning on a thinking block, which must be sent back unchanged. See also [Thought signature](#thought-signature).

Introduced in 03.2 Messages, Roles and Conversation State
Thinking-block prefix check

On Claude 5.1 and later, a thinking block is valid only while system, tools and every earlier message are unchanged.

Introduced in 03.5 Tool Calling: The API Mechanics
Thompson sampling

A bandit method sampling each arm's success probability from its posterior.

Introduced in 10A.9 Offline vs Online Evaluation
Thought / Action / Observation

The three text blocks of original ReAct; superseded by reasoning channel, tool_calls, tool-result messages.

Introduced in 08A.10 Agent Patterns: ReAct, Plan-and-Execute, Routing and Orchestrator-Workers
Thought signature

Gemini's encrypted representation of its reasoning state, attached to response parts and required when continuing function-calling conversations. *(Introduced in [lesson 02.8](02-how-llms-work/08-reasoning-models.md#33-google-gemini-thinking-levels-and-thought-summaries))* Claude's equivalent is the signature on a thinking block ([Thinking signature](#thinking-signature)). With either, append the model's full output to the history, not just its text. *(Extended in [lesson 03.2](03-llm-apis/02-messages-and-conversations.md#36-append-the-full-output-not-just-the-text))*

Thread

A sequence of runs that share accumulated state, identified by thread_id.

Introduced in 08F.11 Persistence, Durable Execution and Memory
Thread-safe

Behaves correctly under concurrent use without extra locking by the caller; it is a spectrum of five levels (immutable, unconditionally safe, conditionally safe, not safe, hostile).

Introduced in 01C.3 Race Conditions and Thread Safety
thread_id

The key in config["configurable"] that selects a thread, the checkpointer's primary key.

Introduced in 08F.11 Persistence, Durable Execution and Memory
threading.local / contextvars

Per-thread slot / per-context (per-task) slot.

Introduced in 01C.3 Race Conditions and Thread Safety
ThreadPoolExecutor / ProcessPoolExecutor

concurrent.futures pools for threads / separate interpreters.

Introduced in 01B.4 Concurrency Patterns for I/O-Heavy Work
Threat model

A structured analysis of what a system protects, who might attack it, and how — assets, actors, trust boundaries and risks, produced at design time.

Introduced in 12.1 Threat Modelling LLM Applications
Threat scenario

A concrete "attacker with capability X tries to achieve goal Y" story derived from the threat model, used to seed test cases.

Introduced in 12.8 Red Teaming and Security Testing
Three tiers

Front end (browser), back end (server logic), data (DB + services).

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Three-pass read

A paper-reading method: pass 1 skim (abstract/figures/conclusion), pass 2 extract (intro/method/results/limits), pass 3 deep read only what you will actually use.

Introduced in 14A.9 Staying Current in a Fast-Moving Field
Three-valued logic

TRUE/FALSE/UNKNOWN; only TRUE passes WHERE.

Introduced in 00.7 SQL Basics with SQLite
Threshold (semantic cache)

The similarity score above which a semantic cache serves a hit; a quality dial tuned on a labelled set.

Introduced in 11B.3 Caching Strategies
Throughput

Total tokens a server produces per second across all users.

Introduced in 02.5 Generation and Sampling
Throwaway sandbox

A disposable virtual machine or container with no credentials, used to run code you do not trust.

Introduced in 14B.8 Interview Prep III: Take-Homes, Behavioural Rounds and Offers
Thundering herd

Many clients retrying/arriving at once, overloading a recovering service.

Introduced in 01B.4 Concurrency Patterns for I/O-Heavy Work
Ticket / issue

A unit of work — a bug report, feature request or chore — tracked in a system like GitHub Issues.

Introduced in 00.9 Working Like an Engineer: Debugging, Asking for Help and Learning Habits
Ticket lock

A FIFO lock: each arriving thread takes a number and waits until its number is served.

Introduced in 01C.4 Deadlocks, Livelock and Starvation
Tied embeddings / weight tying

Using the same table of token vectors at a model's input (embedding lookup) and at its output (scoring every possible next token).

Introduced in 02.2 Tokens and Tokenization
Tier

A size or capability level within a generation (frontier, mid, small).

Introduced in 02.9 Model Landscape
Tiered judging

A cost pattern where a cheap judge clears easy cases and a strong judge or jury handles borderline and high-stakes slices.

Introduced in 10A.4 LLM-as-Judge
Tiered suite

Smoke / PR / nightly / pre-release eval tiers of increasing cost and depth.

Introduced in 10A.8 Regression Testing, CI and Experiment Tracking
TIL log

"Today I learned" journal — dated notes on things you figured out.

Introduced in 00.9 Working Like an Engineer: Debugging, Asking for Help and Learning Habits
Time horizon

METR's capability measure: the human-time length of tasks a model completes at a stated success rate; not how long it works unattended.

Introduced in 10A.7 Evaluating Agents, Tool Use and Multimodal Systems
Time series

A metric's values over time for one label combination.

Introduced in 11A.2 Metrics, Dashboards, SLOs and Alerting
Time to first token (TTFT)

Time from sending a request to receiving the first output token.

Introduced in 02.5 Generation and Sampling
Time to first visible token (TTFVT)

Time from the request to the first answer text a user can read, after any thinking; on reasoning models it can be seconds later than TTFT.

Introduced in 03.3 Streaming Responses
Time to useful

When the user can act on the result.

Introduced in 13A.2 AI UX I: Streaming, Latency and Perceived Speed
Time travel

Resuming from an earlier checkpoint, by replay or fork.

Introduced in 08F.11 Persistence, Durable Execution and Memory
Time-aware split

Holding out the newest cases as test, to measure performance on the future rather than a shuffle of the past.

Introduced in 10A.2 Building Evaluation Datasets
Time-box

A fixed deadline that scope conforms to.

Introduced in 13B.1 Capstone Planning and Scoping
Time-boxed experiment

A roadmap probe with fixed duration, budget and pre-registered decision rule.

Introduced in 13A.6 Product Metrics, Experiments and Unit Economics
Time-to-first-audio (TTFA)

Latency from request start to first playable audio byte.

Introduced in 09.5 Text-to-Speech
Timeout (connect/read/total)

Bounds on how long a network call may wait; every call needs one.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
TimeoutPolicy

A node timeout with run_timeout (hard cap), idle_timeout (no-progress limit) and refresh_on.

Introduced in 08F.12 Human-in-the-Loop and Control Flow
Timer heap

The min-heap of TimerHandles ordered by due time.

Introduced in 01C.2 Synchronous vs Asynchronous Programming and the asyncio Event Loop
Timestamp grounding

A video model's ability to map events to correct MM:SS positions in its answers — useful but unreliable without verification.

Introduced in 09.8 Video Understanding
Timestamp IoU

Interval-overlap F1 for predicted vs gold time spans (video events, segments).

Introduced in 10A.7 Evaluating Agents, Tool Use and Multimodal Systems
TinyStories

A synthetic dataset built from a small vocabulary with randomly sampled story slots (Eldan and Li).

Introduced in 04.12 Prompt Hub, Research Findings and Model Notes
TLB

The CPU cache of address translations; a process switch invalidates much of it.

Introduced in 01C.1 Concurrency, Parallelism and Context Switching
tldr

Community cheat-sheet pages with command examples.

Introduced in 00.2 The Terminal and Shell
TLS / SSL

Encryption + integrity + server authentication for a connection; SSL is the dead predecessor's name; https:// is HTTP inside TLS.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
TLS handshake

Negotiates version/ciphers, verifies the certificate, derives session keys — one extra round trip after TCP.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
tmp_path

Pytest fixture giving each test a private temporary directory.

Introduced in 01B.8 Testing with pytest
TOCTOU

"Time of check to time of use": check-then-act applied to files and permissions.

Introduced in 01C.3 Race Conditions and Thread Safety
Todo/task-list tool

Agent-maintained structured task list as working memory (coding-agent pattern).

Introduced in 08A.10 Agent Patterns: ReAct, Plan-and-Execute, Routing and Orchestrator-Workers
Token

One entry in a model's vocabulary: a whole word, part of a word, punctuation, whitespace, or a sequence of bytes. LLMs read, write and bill text in tokens.

Introduced in 02.2 Tokens and Tokenization
Token bucket

Rate limiter: capacity refills at rate/sec, calls spend tokens.

Introduced in 01B.4 Concurrency Patterns for I/O-Heavy Work
Token budget

The number of input tokens allowed for a request after reserving room for the output, any reasoning and a safety margin.

Introduced in 02.7 Context Windows
Token convention

The module's one meaning for token usage fields: input is uncached input (billed at the plain input rate), cached reads and cache writes are separate fields, total_input is every prompt token, and output includes reasoning tokens. Providers' raw fields differ: OpenAI, Gemini and OpenRouter include cached tokens in their input count, and Anthropic does not.

Introduced in 03.7 Token Counting, Cost Tracking and Prompt Caching
Token exchange

Trading one credential for a narrower, shorter-lived downstream token at an identity provider (RFC 8693) — how tools act on behalf of users without holding user keys.

Introduced in 12.6 Securing Tools, Agents and MCP
Token healing

A generation technique for local models that backs up one token and constrains the next token to start with the removed text, fixing prompt-boundary problems.

Introduced in 02.2 Tokens and Tokenization
Token hit ratio

Cache-read tokens divided by all input tokens. It is a better measure of caching than the request hit rate, because it weights each request by its size.

Introduced in 03.7 Token Counting, Cost Tracking and Prompt Caching
Token ID

The whole number that identifies a token: its position in the vocabulary. The model uses it to look up the token's row in its embedding table.

Introduced in 02.2 Tokens and Tokenization
Token limit

A cap on metered token usage, either total tokens or a declared type/formula.

Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)
Token multiplier

A multi-agent run's tokens divided by a single agent's tokens on the same task, the headline cost of orchestration.

Introduced in 10A.12 Evaluating Multi-Agent Systems and Validating User Simulators
Token passthrough

An MCP server accepting tokens not issued for it and forwarding them downstream — explicitly forbidden by the MCP authorization spec because it breaks audience binding and auditability.

Introduced in 12.6 Securing Tools, Agents and MCP
Token pool

A shared budget that several loops draw from

Introduced in 08A.11 Reflection, Parallel Fan-Out and Agent-as-a-Tool
Token tax

The extra tokens, and therefore cost, latency and context space, that some languages need to express the same content, because of how the tokenizer was trained.

Introduced in 02.2 Tokens and Tokenization
Token throughput

Tokens per second — the real capacity unit for LLM services.

Introduced in 11A.2 Metrics, Dashboards, SLOs and Alerting
Token-aware batching

Packing texts into embedding requests under a per-request token budget, not just an item-count limit.

Introduced in 06.2 Embedding Pipelines: Batching, Caching, Scale and Cost
Token-aware throttling

Rate limiting by estimated/actual tokens, not just request count.

Introduced in 11C.3 Fallbacks, Gateways and Reliability
Token-aware truncation

Dropping the oldest messages until the total fits a token budget

Introduced in 08B.3 Short-Term Memory: Truncation, Summarization and Compaction
token-budgeted selection

Keeping hits in rank order until the next would exceed a token budget.

Introduced in 07.2 Retrieval Strategies for RAG
Token-denominated quota

A per-tenant token budget per window, reserve-then-settle, in tokens not dollars.

Introduced in 11B.1 Cost and Latency Optimization
Tokenization

The process of splitting text into tokens.

Introduced in 02.2 Tokens and Tokenization
Tokenization artefact

A failure caused by the model seeing tokens rather than characters or digits.

Introduced in 02.10 Limitations and Failure Modes
Tokenization artifact

A failure caused by the model seeing tokens rather than characters or digits, such as miscounting letters or mangling reversed strings.

Introduced in 02.10 Limitations and Failure Modes
Tokenization premium

The extra tokens a language needs for the same content (Petrov et al.).

Introduced in 11B.2 Tokenomics: The Unit Economics of LLM Applications
Tokenizer

The separate program that converts text into token IDs (encode) and token IDs back into text (decode). Every model must be used with its own tokenizer.

Introduced in 02.2 Tokens and Tokenization
Tokenizer-free (byte-level) model

A model that reads raw bytes instead of tokens, such as ByT5 or Meta's Byte Latent Transformer. As of 2026 these are mainly research.

Introduced in 02.2 Tokens and Tokenization
Tokenomics

The unit economics of an LLM product, whose cost of goods is metered in tokens.

Introduced in 11B.2 Tokenomics: The Unit Economics of LLM Applications
Tokens per second (TPS / OTPS)

How fast output tokens are generated once generation has started.

Introduced in 02.5 Generation and Sampling
Tolerant parser

A parser handling messy model output (missing tags, duplicates, preamble) instead of assuming clean structure.

Introduced in 04.4 Structuring Prompts: XML, Markdown and Delimiters
Tombstone

A record that a source item was deleted, so its chunks can be removed.

Introduced in 05.1 Data Sources, Formats and the Ingestion Mindset
Tool

Model-controlled callable function / application-controlled URI-addressed data / user-controlled message template exposed by an MCP server.

Introduced in 08E.1 The Model Context Protocol (MCP)
Tool (Inspect)

A Python callable plus metadata that Inspect exposes to a model as a structured callable interface.

Introduced in 10B.14 Tools and Agents in Inspect: Custom Tools, MCP, react() and Multi-Agent Systems (optional)
Tool allowlist

The set of tools the agent may call; everything else is refused

Introduced in 08A.5 Required Agent Security
Tool annotations

Untrusted behavioural hints: readOnlyHint, destructiveHint, idempotentHint, openWorldHint.

Introduced in 08E.1 The Model Context Protocol (MCP)
Tool artifact

Extra data (such as the retrieved Documents) attached to a ToolMessage for your application and not sent to the model.

Introduced in 08F.9 RAG with LangChain
Tool budget

The maximum number of tools visible to an agent at once

Introduced in 08E.4 A2A Basics, Agent Skills (SKILL.md) and Tool Selection at Scale
Tool call (function call)

A structured request the model writes (a tool name plus JSON arguments) before stopping; your code runs the tool and sends the result back as a new message ([4.7](02-how-llms-work/05-generation-and-sampling.md#47-what-a-tool-call-really-is)). *(Introduced in [lesson 02.5](02-how-llms-work/05-generation-and-sampling.md#47-what-a-tool-call-really-is))* The model emits the call and stops; your code runs the function and returns a [tool result](#tool-result) matched by call ID. Lesson 03.5 covers the API mechanics on every provider. *(Extended in [lesson 03.5](03-llm-apis/05-tool-calling.md#part-1-what-tool-calling-is))*

Tool calling (function calling)

An API feature in which the model returns a structured request to run one of your functions, and you send back the result.

Introduced in 03.5 Tool Calling: The API Mechanics
Tool definition

The name, description and JSON Schema of a function, sent with every request so the model knows what it may call; billed as input tokens each time.

Introduced in 03.5 Tool Calling: The API Mechanics
Tool description

The plain-text prompt inside a tool definition telling the model what the tool does, when to use it and when not to.

Introduced in 08A.6 Designing Tools Models Can Use
Tool exchange

The call turn, your result and the final answer, kept (or dropped) together in a stored conversation.

Introduced in 03.5 Tool Calling: The API Mechanics
Tool factory

The outer function in the @tool pattern; calling it returns the configured tool implementation.

Introduced in 10B.14 Tools and Agents in Inspect: Custom Tools, MCP, react() and Multi-Agent Systems (optional)
Tool gateway

A shared proxy through which every agent's tool calls pass, applying policy and audit centrally

Introduced in 14A.6 Agent Inventory, Risk and Autonomy Classification, and Policy-as-Code
Tool Permission (DeepEval)

A deterministic DeepEval metric that scores the share of tool calls allowed by allow-list and deny-list rules; argument-level effects need separate checks.

Introduced in 10B.5 DeepEval Tracing, Component-Level Evals and Agent Evaluation
Tool pinning

Hashing an MCP server's complete tool definitions (name, description, input/output schemas, annotations) and detecting drift on reconnect — the defence against rug pulls.

Introduced in 12.6 Securing Tools, Agents and MCP
Tool poisoning

Malicious instructions hidden in MCP tool descriptions, schemas or annotations that the model obeys but users can't see — Invariant Labs' April 2025 disclosure named the attack class.

Introduced in 12.6 Securing Tools, Agents and MCP
Tool result

The output of your function, sent back in the provider's result shape (function_call_output, a tool message, a tool_result block, a function_response part or a function_result step).

Introduced in 03.5 Tool Calling: The API Mechanics
Tool result review

Inspection of a tool result after execution and before the model consumes it.

Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)
Tool round trip

One complete tool-call cycle: the model asks for a call, your code runs it, and you send the result back so the model can answer. It takes at least two API requests, and the second resends everything from the first.

Introduced in 03.5 Tool Calling: The API Mechanics
Tool runner

Anthropic's beta SDK helper (client.beta.messages.tool_runner) that runs the tool-calling loop for you.

Introduced in 03.5 Tool Calling: The API Mechanics
Tool shadowing

One server's tool description or name steering the model's use of another server's tools.

Introduced in 08E.1 The Model Context Protocol (MCP)
Tool success ratio / tool error rate

The SLI "ok tool calls over counted calls" per tool, and its complement; denied calls are excluded

Introduced in 11A.2 Metrics, Dashboards, SLOs and Alerting
Tool timeout

A per-tool limit on how long the loop waits for a result; it stops the waiting, not necessarily the work

Introduced in 08A.6 Designing Tools Models Can Use
Tool view

A renderer that controls how a call is shown to a human approver or log viewer without changing execution.

Introduced in 10B.14 Tools and Agents in Inspect: Custom Tools, MCP, react() and Multi-Agent Systems (optional)
Tool-call correctness

How well the tool calls made match a reference set, measured as precision, recall and F1 over (tool, arguments) pairs

Introduced in 08D.2 Hands-On: Two-Agent vs Single-Agent, Built, Traced and Evaluated
Tool-call parser

A parser that reads an AIMessage's tool_calls (JsonOutputToolsParser, JsonOutputKeyToolsParser, PydanticToolsParser).

Introduced in 08F.6 Prompts, Output Parsers and Structured Output
Tool-call validation

Three-stage checking of proposed calls: schema, semantic (does it make sense / exist), policy (is it permitted).

Introduced in 08A.14 Reliable, Safe and Observable Agents
Tool-count scaling

Eval curve of selection accuracy vs number of exposed tools (MCP/large tool catalogues).

Introduced in 10A.7 Evaluating Agents, Tool Use and Multimodal Systems
Tool-definition pinning

Hashing approved tool definitions and blocking or flagging any change

Introduced in 08E.3 Remote MCP: OAuth, Gateways and Many Servers
Tool-failure control

A validation run that breaks one tool on purpose and replays a correct script, to prove the scorer reads the world rather than the agent's claim.

Introduced in 10B.14 Tools and Agents in Inspect: Custom Tools, MCP, react() and Multi-Agent Systems (optional)
Tool-list pinning

Anthropic connector feature (mcp-client-2026-09-15): record or copy a server's tool list so later changes cannot reach the model.

Introduced in 08E.1 The Model Context Protocol (MCP)
Tool-result clearing

Replacing old, bulky tool outputs with a short placeholder

Introduced in 08B.3 Short-Term Memory: Truncation, Summarization and Compaction
Tool-use eval

A behavioural test measuring whether a model picks the right tool with the right arguments on realistic tasks.

Introduced in 08A.6 Designing Tools Models Can Use
Tool-using agent

A program that loops: model picks a tool, your code runs it, the result goes back to the model, until the model finishes

Introduced in 13B.4 Capstone Build D: a Tool-Using or Two-Agent App with One Outside System
tool_addition / tool_removal

Blocks in a mid-conversation system message that offer or withdraw a tool without editing tools.

Introduced in 03.5 Tool Calling: The API Mechanics
tool_call_id

The id on a ToolMessage that must match the id of the tool call it answers.

Introduced in 08F.5 Chat Models, Messages and Content Blocks
tool_call_prf

Precision/recall/F1 of an agent's tool calls vs a reference call sequence.

Introduced in 10A.7 Evaluating Agents, Tool Use and Multimodal Systems
tool_choice

The request parameter that lets the model decide whether to call a tool, forces a call or a specific tool, or forbids tools.

Introduced in 03.5 Tool Calling: The API Mechanics
tool_reference block

Anthropic's pointer returned by tool search that the API expands inline into a full tool definition at that point in the conversation.

Introduced in 08A.8 Provider Built-in and Server-Side Tools
`tool_reference`

The block Anthropic's API returns for a discovered tool, expanded into its full definition

Introduced in 08E.4 A2A Basics, Agent Skills (SKILL.md) and Tool Selection at Scale
`tool_state_scope()`

A context manager that supplies separate default state instances to concurrent agents or workers.

Introduced in 10B.14 Tools and Agents in Inspect: Custom Tools, MCP, react() and Multi-Agent Systems (optional)
`ToolCallError` type

The category Inspect records on a failed tool call, such as parsing, unknown (a raised ToolError), timeout, file_not_found, limit or approval; grouping failures by it separates schema, environment and policy problems from model behaviour.

Introduced in 10B.14 Tools and Agents in Inspect: Custom Tools, MCP, react() and Multi-Agent Systems (optional)
ToolCallLimitMiddleware

Agent middleware that caps tool calls per run or thread, with continue, end or error behaviour.

Introduced in 08F.9 RAG with LangChain
`ToolDef`

Inspect's lower-level tool definition object, used to adapt existing functions or introspect and override metadata.

Introduced in 10B.14 Tools and Agents in Inspect: Custom Tools, MCP, react() and Multi-Agent Systems (optional)
ToolError / MCPError

SDK exception types for tool handlers: ToolError surfaces its message to the model as an isError result; MCPError fails the whole request as a JSON-RPC error.

Introduced in 08E.1 The Model Context Protocol (MCP)
`ToolError`

An expected, recoverable tool failure reported back to the model instead of ending the sample.

Introduced in 10B.14 Tools and Agents in Inspect: Custom Tools, MCP, react() and Multi-Agent Systems (optional)
ToolErrorMiddleware

Middleware that turns tool exceptions into error ToolMessages through a function you supply, or lets them propagate when it returns None.

Introduced in 08F.8 Tools and create_agent
ToolException

An exception a tool raises to signal an error the model can act on; converted to a tool message when handle_tool_error is set.

Introduced in 08F.8 Tools and create_agent
ToolNode and tools_condition

The prebuilt node that runs the last AIMessage's tool calls, and the router that loops to it while tool calls remain.

Introduced in 08F.10 LangGraph Fundamentals
`ToolResult`

The documented result type of a tool: a scalar, content object or list of content objects.

Introduced in 10B.14 Tools and Agents in Inspect: Custom Tools, MCP, react() and Multi-Agent Systems (optional)
ToolRetryMiddleware

Middleware that retries failing tool calls with exponential backoff and jitter.

Introduced in 08F.8 Tools and create_agent
ToolRuntime

An injected, model-invisible parameter giving a tool its state, context, store, tool-call id, stream writer and execution info.

Introduced in 08F.8 Tools and create_agent
ToolSpec

A framework-neutral tool contract — name, description, JSON Schema parameters and callable — used to keep tools portable across frameworks.

Introduced in 08F.1 Agent Frameworks and SDKs
ToolStrategy

Agent structured output via a schema exposed as a tool; handle_errors controls retry feedback.

Introduced in 08F.6 Prompts, Output Parsers and Structured Output
Top-k sampling

Sampling only from the k most likely tokens.

Introduced in 02.5 Generation and Sampling
Top-p (nucleus) sampling

Sampling from the smallest set of tokens whose probabilities add up to p.

Introduced in 02.5 Generation and Sampling
Total compensation

Base + bonus + equity + benefits — the full value of an offer before tax.

Introduced in 14B.8 Interview Prep III: Take-Homes, Behavioural Rounds and Offers
Total deadline

A limit on a whole operation's duration, e.g. asyncio.timeout(), independent of read timeouts. See also [Deadline](#deadline).

Introduced in 03.3 Streaming Responses
Total input

input + cached + written: every prompt token, however billed.

Introduced in 03.7 Token Counting, Cost Tracking and Prompt Caching
Total vs active parameters

All parameters in an MoE model (decides memory) vs those used per token (decides compute).

Introduced in 02.1 Neural Network Basics
TOTP

Time-based one-time password: the 6-digit codes authenticator apps generate.

Introduced in 00.1 Setting Up Your Computer for Development
TPM / RPM budgeting

Tokens-per-minute vs requests-per-minute rate-limit arithmetic.

Introduced in 06.2 Embedding Pipelines: Batching, Caching, Scale and Cost
TPR / TNR

Judge sensitivity (catches true passes) / specificity (catches true fails) vs human labels.

Introduced in 10A.5 Calibrating and Validating Judges
Trace

The per-request record of pipeline stages, latencies, token estimates, ranked retrieved hits with scores and sources, and prompt identity used to debug answers.

Introduced in 07.1 RAG Architecture: From Question to Grounded Answer
Trace (LangSmith)

The tree of runs for one operation, tied together by a trace id (at most 25,000 runs).

Introduced in 11A.5 LangSmith, Testing and Deployment
Trace and span

The automatic record of a run and of each generation, tool call, guardrail and handoff within it

Introduced in 08F.2 OpenAI Agents SDK
Trace grading

Scoring an end-to-end record (spans) of a real run with the same graders used in the harness; needs the end state fetched separately.

Introduced in 10A.7 Evaluating Agents, Tool Use and Multimodal Systems
Trace ID (correlation ID)

An ID created once per user request, put on every log line and sent to providers that accept one, so all the work for that request can be found. See also [Correlation ID](#correlation-id).

Introduced in 03.10 Logging, Debugging and Testing LLM Code
Trace processor

An object that receives traces and spans; add_trace_processor adds one, set_trace_processors replaces the defaults

Introduced in 08F.2 OpenAI Agents SDK
Trace sampling

Logging all failures plus a random sample of successes in production, to catch silent prompt regressions without logging everything.

Introduced in 04.9 Iterating, Debugging and Porting Prompts
Trace viewer / JSONL trace store

The dependency-free debugging path: spans as JSON Lines + a CLI that renders trees and aggregates.

Introduced in 11A.1 Tracing and Observability for LLM Applications
Trace-aware metric (DeepEval)

A metric whose instance sets requires_trace = True, causing DeepEval to attach the nested span-tree evidence _trace_dict to its test case.

Introduced in 10B.5 DeepEval Tracing, Component-Level Evals and Agent Evaluation
Trace-driven debugging

Diagnosing failures by finding and reading the request trace, not guessing.

Introduced in 14B.9 Your First 90 Days and Long-Term Growth
Trace-to-dataset / trace-to-eval-case

Exporting a production trace as an eval dataset example; the trace↔eval convergence.

Introduced in 11A.1 Tracing and Observability for LLM Applications
Trace-to-golden

The process of turning production traces into reviewed test cases

Introduced in 11A.4 Production Traces into Eval Datasets
Trace/span for a RAG request

One request's spans across auth→plan→retrieve→rerank→assemble→generate→cite→cost, the unit of debugging.

Introduced in 07.11 Production RAG: Security, Freshness, Cost and Operations
Traceback / stack trace

The list of function calls that led to an error, printed when a program crashes.

Introduced in 00.9 Working Like an Engineer: Debugging, Asking for Help and Learning Habits
tracemalloc

Stdlib memory-allocation tracer; snapshot diffs show which line allocated the memory.

Introduced in 01B.10 Logging, Debugging and Packaging: Putting the Toolkit Together
TracePolicy

A per-node setting (process_inputs, process_outputs) that changes what that node's own run records; omit_payload drops it.

Introduced in 11A.5 LangSmith, Testing and Deployment
Tracer / trace event

One JSON line per workflow step carrying trace_id, step name, ok flag, detail and elapsed milliseconds — the minimum viable trajectory log.

Introduced in 08A.9 Workflows vs Agents
Tracer bullet

*The Pragmatic Programmer*'s name for the same thin end-to-end probe as a walking skeleton.

Introduced in 13B.1 Capstone Planning and Scoping
tracing_context

A context manager that switches tracing, tags, metadata, client or agent address for a block, overriding the environment.

Introduced in 11A.5 LangSmith, Testing and Deployment
track

The SharedMemory parameter (3.13+) that controls resource-tracker registration.

Introduced in 01C.7 Shared Memory and Inter-Process Communication
trafilatura / readability / justext

Main-content extractors (cascade / Mozilla algorithm / stopword classifier).

Introduced in 05.3 Parsing HTML, Web Pages and Office Files
TRAIGA

The Texas Responsible Artificial Intelligence Governance Act (HB 149), effective 1 January 2026: prohibitions on manipulative AI, government social scoring, certain biometric capture and intentional unlawful discrimination, plus disclosure duties.

Introduced in 12.9 Responsible AI, Policy and Compliance
Training / validation / test set

Data used to adjust the weights; to tune hyperparameters and decide when to stop; and to get a final, honest score.

Introduced in 02.1 Neural Network Basics
Training-data extraction

An attack recovering verbatim memorised training examples by querying a model, demonstrated at scale by Carlini et al. (2021) and Nasr et al. (2023).

Introduced in 12.4 PII, Privacy and Data Leakage
Trajectory

The full record of a run: every call, result, token count and latency.

Introduced in 08A.2 The Tool Loop: From One Round Trip to an Agent
Trajectory (evaluation)

A flat ordered list of the messages of a thread or run, used to evaluate the path an agent took.

Introduced in 11A.5 LangSmith, Testing and Deployment
Trajectory eval

Grading whether the agent's path was acceptable (right tools, no forbidden calls, in budget).

Introduced in 08A.14 Reliable, Safe and Observable Agents
Trajectory match mode

strict, unordered, subset or superset: how an agent's tool calls are compared with a reference.

Introduced in 11A.5 LangSmith, Testing and Deployment
trajectory_align

Grader comparing a trajectory to a reference in exact/multiset/subsequence modes with exact/subset arg matching.

Introduced in 10A.7 Evaluating Agents, Tool Use and Multimodal Systems
Transaction

All-or-nothing statement bundle; Atomicity, Consistency, Isolation, Durability.

Introduced in 00.7 SQL Basics with SQLite
transcript audit

Systematic human or scanner-assisted review of execution evidence for process, safety and failure modes.

Introduced in 10B.16 Evaluating Agents with Inspect, and the Inspect Ecosystem (optional)
transcript database (Scout)

A Parquet-backed store of transcripts from any source (Inspect logs, observability platforms, Claude Code sessions, Harbor trajectories, captured SDK calls or your own app's traces) that Inspect Scout scanners can read with transcripts_from().

Introduced in 10B.16 Evaluating Agents with Inspect, and the Inspect Ecosystem (optional)
Transcript normalisation

Lowercasing, punctuation stripping before WER.

Introduced in 09.4 Speech-to-Text
Transcript normalization

Lowercasing, punctuation stripping and standardisation applied before computing WER.

Introduced in 09.4 Speech-to-Text
TranscriptRedactor

Three views of an utterance: model-safe, log-safe, speech-safe.

Introduced in 13B.5 Capstone Build C: The Realtime Voice Agent Product
Transfer-of-skills table

A mapping of what carries over from a previous career and what must be relearned for AI engineering.

Introduced in 14B.1 The AI Engineering Landscape: Roles, Teams and Career Paths
Transformer

The neural network architecture behind modern LLMs, built from stacked attention + MLP blocks.

Introduced in 02.4 Attention and Transformers
Transformer block / layer

Attention + MLP, each with a residual connection and normalization.

Introduced in 02.4 Attention and Transformers
Transient failure

A failure caused by timing or load — the same request may succeed if retried later (timeout, connection reset, 429, 5xx).

Introduced in 01B.9 Retries, Timeouts, Backoff and Resilience
Transitive dependency

A dependency of a dependency — the reason lockfiles exist.

Introduced in 01B.1 Project Setup with uv: Environments, Dependencies and Tooling
translate / maketrans

str.translate applies a str.maketrans character map — substitution or deletion without regex.

Introduced in 01A.2 Numbers, Strings and Text
Transport

The layer under an httpx client's API: HTTPTransport, MockTransport, WSGITransport, ASGITransport and friends.

Introduced in 01B.5 HTTP Clients with httpx
Transport failure

A failure below HTTP, such as a DNS error, a TLS error, a refused or reset connection, or a timeout, so no status code ever arrives.

Introduced in 03.8 Errors, Rate Limits, Timeouts and Retries
Tree

Git object storing a directory listing (names → blob/tree hashes).

Introduced in 00.3 Git Fundamentals
Tree-of-thought (ToT)

Searching over branching reasoning paths with self-evaluation and backtracking (Yao et al., 2023).

Introduced in 04.3 Reasoning Prompts: Chain-of-Thought and Friends
Triage queue

The review list deciding which production signals become eval cases.

Introduced in 10A.2 Building Evaluation Datasets
Triage rule

The keeping-current filter applied to any information item: does this change a decision I own? For changelog entries it expands to four questions — does it break me, cost/save money, could I use it, do I need to know it exists.

Introduced in 14A.9 Staying Current in a Fast-Moving Field
Trigger

What starts a run: an event or webhook, a schedule, or a queue message

Introduced in 08A.13 Background and Long-Running Agents
Trigger model

What starts an agent run — interactive request, schedule, webhook/event or queue message — and the ops consequences each carries.

Introduced in 08A.14 Reliable, Safe and Observable Agents
trim_messages

A function that returns a shorter copy of a message list by token or message budget without changing state.

Introduced in 08F.11 Persistence, Durable Execution and Memory
Tripwire

A cheap check that notices obvious attacks for logging and escalation; not a defence

Introduced in 08A.5 Required Agent Security
Trivial-turn fast path

A deterministic regex skip of condense and retrieval for obvious greetings and acknowledgements, routing straight to chat.

Introduced in 07.6 Conversational RAG
Truncation

Dropping part of the input, usually the oldest messages, so a request fits within a limit; some APIs can do this silently.

Introduced in 02.7 Context Windows
Truncation marker

An explicit "truncated": true field telling the model a result was cut and how to get more — the positive counterpart to "silent truncation".

Introduced in 08A.6 Designing Tools Models Can Use
Trunk-based / GitHub Flow / Git Flow

Branching workflow models: commit small changes to main continuously, feature-branch-then-merge, or the heavier main+develop+release-branch scheme.

Introduced in 00.4 GitHub and Collaboration
Trust boundary

A line data crosses between zones of different trust; each crossing is where untrusted content can enter or trusted data can leak.

Introduced in 12.1 Threat Modelling LLM Applications
Trust label

Metadata on a content block (for example trust="untrusted" and a source) set by your code, not by the content

Introduced in 04.5 System Prompts, Roles and Personas
Trust level / authority

A label marking how authoritative a source is (official_policy, internal_doc, user_generated, web).

Introduced in 04.6 Context Engineering: Selecting and Ordering Context
Trust order

The ranking of memory sources (user explicit, agent inferred, tool observed) used to resolve conflicts

Introduced in 08B.5 Memory Failure Modes, Context Rot, Production State Stores and AGENTS.md-style Files
Trust repair

Acknowledge, scope, correct in place and prevent recurrence after a visible failure.

Introduced in 13A.3 AI UX II: Trust, Transparency, Feedback and Human-in-the-Loop
trust_env

Client flag honouring proxy/SSL/netrc environment variables.

Introduced in 01B.5 HTTP Clients with httpx
trust_remote_code

A Hugging Face Transformers option that downloads and runs Python model code from a model's repository. Enable it only for sources you trust.

Introduced in 02.1 Neural Network Basics
Trusted Publishing / attestation

PyPI's keyless publishing from a CI identity (OIDC) and the signed statement (PEP 740) recording which workflow published a file — evidence of origin, not of safety.

Introduced in 12.7 Securing RAG Data, Keys and the AI Supply Chain
Trusted variant

A rewrite class (translation, step-back) exempt from lexical drift checks.

Introduced in 07.3 Query Understanding, Rewriting and Expansion
TrustLLM

A benchmark of language-model trustworthiness across six measured dimensions.

Introduced in 04.12 Prompt Hub, Research Findings and Model Notes
Truthiness / falsy

Every value's boolean reading; falsy values are 0, 0.0, "", empty containers, None, False.

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
Truths extraction

The step in DeepEval's Faithfulness and Summarization metrics that summarizes the context into a list of facts, against which the answer's claims are then checked instead of against the raw text.

Introduced in 10B.4 DeepEval's Built-in Metrics, Opened Up: RAG, Safety, Conversations and More
Try-lock / timed acquire

Attempting to take a lock without waiting indefinitely (acquire(blocking=False) or acquire(timeout=...)).

Introduced in 01C.4 Deadlocks, Livelock and Starvation
try/except/else/finally

The four clauses: risky code, handlers, success path, guaranteed cleanup.

Introduced in 01A.8 Errors, Exceptions, Debugging and Logging
tsvector / tsquery / ts_rank

PostgreSQL's lexeme vector, query AST, and ranking functions (not BM25).

Introduced in 06.7 Keyword Search and BM25
TTFT (time to first token)

Latency from request sent to first content token in a streaming response.

Introduced in 11A.2 Metrics, Dashboards, SLOs and Alerting
TTFVT

Time to first *visible* token / first readable answer text.

Introduced in 13A.2 AI UX I: Streaming, Latency and Perceived Speed
TTL

Time-to-live on a DNS record — how long resolvers may cache the answer.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
ttlMs / cacheScope

Cache freshness hint / sharing scope on complete results.

Introduced in 08E.1 The Model Context Protocol (MCP)
tuned baseline

A simple comparison system given a fair prompt, tools and budget rather than a deliberately weak configuration.

Introduced in 10B.16 Evaluating Agents with Inspect, and the Inspect Ecosystem (optional)
Tuple

Ordered, immutable sequence; used for records, keys and multi-value returns.

Introduced in 01A.4 Core Data Structures: Lists, Tuples, Dictionaries and Sets
Turn limit

A cap on top-level model generations, excluding compaction generations.

Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)
Turn manager

The glue logic in a cascade deciding when turns start/end and handling interruptions.

Introduced in 09.7 Realtime Voice Agents
Turn merging

Anthropic's rule that consecutive messages with the same role are combined into a single turn.

Introduced in 03.2 Messages, Roles and Conversation State
Turn overhead (O%)

Extra model calls of a multi-agent system relative to a single agent on the same task, as a percentage (Kim et al.'s definition).

Introduced in 10A.12 Evaluating Multi-Agent Systems and Validating User Simulators
TurnRecord

One turn's audit unit: raw user text, standalone query, route, answer, served hits, source map, filters used and cache/carried flags.

Introduced in 07.6 Conversational RAG
Twilio ConversationRelay

Twilio's telephony bridge streaming transcripts to your app for STT→LLM→TTS.

Introduced in 09.7 Realtime Voice Agents
Two-factor authentication (2FA)

Password + a second proof (app code, passkey, security key) at sign-in.

Introduced in 00.1 Setting Up Your Computer for Development
Two-pass locate-then-zoom

A cost pattern: cheap sparse pass finds relevant time ranges, then a dense high-resolution pass inspects only those ranges.

Introduced in 09.8 Video Understanding
Two-step RAG

Retrieval always runs once before generation; the shape of FAQ and documentation bots.

Introduced in 08F.9 RAG with LangChain
Two-tower model

A multimodal embedder with separate encoders per modality (CLIP-style), prone to modality gap and same-modality bias.

Introduced in 09.9 Multimodal Embeddings and Retrieval
Type affinity

SQLite's "preferred type" per column (not a hard constraint).

Introduced in 00.7 SQL Basics with SQLite
Type alias / type statement

A name for a complex type; type X = ... (3.12+) creates a lazily-evaluated TypeAliasType.

Introduced in 01A.10 Type Hints and Writing Readable Code
Type checker

Static verification of type hints (mypy, Pyright, ty, Pyrefly).

Introduced in 01B.1 Project Setup with uv: Environments, Dependencies and Tooling
Type conversion

Explicit int(x), str(x), float(x), bool(x), list(x).

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
Type hint / annotation

An expression attached to a name (parameter, return, variable) declaring its type; stored on __annotations__, never enforced at run time.

Introduced in 01A.10 Type Hints and Writing Readable Code
Type juggling

Silent cross-type conversion (PHP ==, JS ==, Number()) — absent in Python.

Introduced in 01A.11 Coming from PHP, JavaScript or Java: Side by Side
type() / isinstance()

Get a value's class / test membership in a class.

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
Type-token ratio

Unique words ÷ total words; a crude lexical-diversity measure.

Introduced in 10A.2 Building Evaluation Datasets
TYPE_CHECKING

True for static checkers, False at run time — import-only-for-typing idiom.

Introduced in 01A.10 Type Hints and Writing Readable Code
TypeAdapter

Validates any type expression (list[Model], unions, primitives); reuse instances — construction compiles validators.

Introduced in 01B.6 Data Validation with Pydantic
Typed metadata (Inspect)

Sample metadata validated at load time by a frozen Pydantic model passed to FieldSpec(metadata=...) and read with metadata_as().

Introduced in 10B.9 Inspect Datasets, Solvers and Task Configuration (optional)
TypedDict

A dict with declared keys/types — still a plain dict at run time; no validation.

Introduced in 01A.10 Type Hints and Writing Readable Code
TypeError

Operation applied to wrong kinds of values.

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
TypeForm

Marks a parameter as accepting a type expression (3.15, PEP 747); identity function at run time.

Introduced in 01A.10 Type Hints and Writing Readable Code
TypeGuard / TypeIs

Return-type markers for user-defined type predicates; TypeIs (3.13+, PEP 742) narrows both branches, TypeGuard (3.10+) only the True branch.

Introduced in 01A.10 Type Hints and Writing Readable Code
types.GenericAlias

The runtime object list[int] produces; inspect with get_origin()/get_args().

Introduced in 01A.10 Type Hints and Writing Readable Code
TypeVar / Generic

Classic generics spelling — T links input and output types across a signature.

Introduced in 01A.10 Type Hints and Writing Readable Code
typing.Protocol

Structural interface — satisfied by shape, not inheritance; @runtime_checkable enables isinstance.

Introduced in 01A.6 Classes, Dataclasses and Enums
Typo-squat

A malicious package published under a name that looks like a popular one (for example reqeusts).

Introduced in 02.10 Limitations and Failure Modes
Typosquatting

Registering malicious packages on misspellings of popular PyPI names to catch typing errors.

Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Library

U

"Uncertain" verdict

An explicit "cannot determine" escape in a judge's output schema; counted separately rather than averaged into scores.

Introduced in 10A.4 LLM-as-Judge
@unique / @verify

Decorators validating enum definitions at class-creation time.

Introduced in 01A.6 Classes, Dataclasses and Enums
UDP

Connectionless packet protocol — faster, unreliable; DNS and QUIC/HTTP-3 use it.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
unable_to_evaluate

The Expectations verdict for a condition the judge cannot decide from the evidence; DeepEval treats it as an error rather than a pass or a fail.

Introduced in 10B.3 Judges in DeepEval: Models, G-Eval, DAG and Custom Metrics
Unallocated bucket

The named owner of spend that arrived without a required tag

Introduced in 11B.6 Budgets, Quotas, Cost Attribution and Chargeback
Unattributed failure

A failing memory probe outside the attribution matrix's scope (no gold memory to find, an as-of or a conflict probe), counted separately and graded by the abstention, leak and gate metrics.

Introduced in 10A.11 Evaluating Agent Memory and Context Management
Uncached input

Input billed at the plain input rate: the raw input field minus (OpenAI, Gemini, OpenRouter) or without (Anthropic) the cached and written tokens. This lesson's meaning of input.

Introduced in 03.7 Token Counting, Cost Tracking and Prompt Caching
Under-triage

Rating an incident less severe than it is; the costly error in classification

Introduced in 14A.5 The Incident Process for AI Systems
Under-trust / disuse

Users ignore the feature because they don't trust it enough (algorithm aversion).

Introduced in 13A.3 AI UX II: Trust, Transparency, Feedback and Human-in-the-Loop
Underfitting

A model too simple to capture the real pattern, so it does badly on both training data and new data.

Introduced in 02.1 Neural Network Basics
Unfaithful explanation

A stated chain of reasoning that doesn't reflect what actually drove the model's answer.

Introduced in 02.10 Limitations and Failure Modes
Unhelpful-user control

A scripted user who answers "I don't know" to everything; agent success against it should be near zero, and tasks that succeed do not test interaction.

Introduced in 10A.12 Evaluating Multi-Agent Systems and Validating User Simulators
Unicode normalization forms

NFC/NFD compose/decompose canonically; NFKC/NFKD additionally fold compatibility variants (fullwidth, ligatures, superscripts).

Introduced in 05.5 Cleaning and Normalization
UnicodeDecodeError

Raised when bytes aren't valid in the claimed encoding; errors= controls recovery (strict/replace/ignore/backslashreplace).

Introduced in 01A.2 Numbers, Strings and Text
UnicodeEncodeError

Raised when str.encode can't represent a character in the target encoding; errors= offers replace/ignore/backslashreplace/xmlcharrefreplace/namereplace.

Introduced in 01A.2 Numbers, Strings and Text
Unigram

A subword algorithm that starts with many candidate pieces, prunes the least useful ones, and splits text into its most probable pieces.

Introduced in 02.2 Tokens and Tokenization
Union (X \| Y)

"One of these types"; X | None means "X or None".

Introduced in 01A.10 Type Hints and Writing Readable Code
UNION/UNION ALL

Stacking result sets, deduplicated / not.

Introduced in 00.7 SQL Basics with SQLite
Unit economics (cost per resolved outcome)

Cost divided by successful results, not calls — retries/refusals/failures still bill.

Introduced in 11A.1 Tracing and Observability for LLM Applications
Unit economics review

The recurring check of cost per request/resolution/user to confirm a feature is economically viable.

Introduced in 11C.4 Operating LLM Systems: Governance, Incidents and the Production Checklist
unit interaction

A conversational unit constructed by multi-turn metrics before scoring

Introduced in 10B.5 DeepEval Tracing, Component-Level Evals and Agent Evaluation
unit vector

A vector divided by its norm — length 1, direction preserved.

Introduced in 01B.11 NumPy and pandas Essentials for AI Work
unittest

Stdlib test framework; awareness here, pytest owns testing later.

Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Library
unittest.mock

Stdlib mocking library: Mock, MagicMock, patch, autospec, side_effect.

Introduced in 01B.8 Testing with pytest
Universal approximation theorem

The result that a network with enough neurons can approximate almost any continuous input-to-output relationship. It says nothing about whether training will find those weights.

Introduced in 02.1 Neural Network Basics
Unjudged documents / "holes"

Corpus items never labelled as relevant or not, which get scored as irrelevant and silently distort retrieval metrics; pooling mitigates them.

Introduced in 06.10 Evaluating and Tuning Retrieval
Unknown outcome

A write whose effect cannot be confirmed; handled by reconciliation, not by retrying

Introduced in 08A.7 Tool Safety in the Loop: Idempotency, Validation and Truncation
Unknown token ([UNK], <unk>)

A placeholder token ([UNK], <unk>) that some tokenizers use for text they can't represent. The original text is lost. Byte-level tokenizers never need it.

Introduced in 02.2 Tokens and Tokenization
Unpack[TypedDict]

Types the allowed keys of **kwargs (PEP 692).

Introduced in 01A.10 Type Hints and Writing Readable Code
Unpacking / multiple assignment

first, second = "ab" — distribute values across names.

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
unreadable_fields

A schema escape hatch: the model names fields it couldn't read instead of guessing.

Introduced in 09.2 Document Understanding with Vision Models
Unscored score

An Inspect score created with Score.unscored(reason=...), whose value is NaN; it marks a failure of the measuring instrument (for example a grader that gave no verdict), is left out of metrics, and is counted in unscored_samples.

Introduced in 10B.10 Inspect Scorers, Metrics, Epochs and the Statistics Inspect Reports (optional)
Unsupported summary entry

A line in a compaction summary that the summarised history does not support, such as an invented decision; agents act on them.

Introduced in 10A.11 Evaluating Agent Memory and Context Management
`UnsupportedProtocolVersion` (`-32022`)

The error for a version the server does not speak, with the supported list in data

Introduced in 08E.2 MCP in Depth: Primitives, Servers, Clients and Transports
Untrusted content (Inspect View)

The trust_content=False setting that makes the viewer show model-controlled content as literal text and media as placeholders, protecting reviewers.

Introduced in 10B.13 Inspect Logs, Analysis and Extending Inspect (optional)
Untrusted content block

A fenced, encoded wrapper around third-party text (email, web page, file, tool output)

Introduced in 04.5 System Prompts, Roles and Personas
Untrusted envelope

A wrapper labelling a result as third-party data

Introduced in 08A.7 Tool Safety in the Loop: Idempotency, Validation and Truncation
Untrusted input

Text supplied to the model that it did not author — user messages, documents, tickets, web pages — which must be treated as data rather than instructions, typically wrapped in explicit delimiters.

Introduced in 04.8 Prompt Patterns for Common Tasks
Untrusted text

Text written by people outside your control (a ticket body) that a model might treat as instructions

Introduced in 13B.4 Capstone Build D: a Tool-Using or Two-Agent App with One Outside System
`update_current_span` / `update_current_trace`

DeepEval runtime functions that write input, output, retrieval context, expected values, tools and metadata onto the active span or whole trace while application code executes.

Introduced in 10B.5 DeepEval Tracing, Component-Level Evals and Agent Evaluation
update_state

The method that writes values into a thread as a new checkpoint (through reducers), optionally as a named node.

Introduced in 08F.11 Persistence, Durable Execution and Memory
updates

A stream mode that emits {node_or_task_name: update} per step, plus __interrupt__ and __metadata__ keys.

Introduced in 08F.14 The Functional API and Streaming
UploadFile

Starlette's spooled file-upload type; stream to disk in chunks with your own size cap.

Introduced in 01B.7 FastAPI Basics: Building a Small API
upstream eval repository

The external repository that owns and maintains an eval implementation listed in the Register.

Introduced in 10B.16 Evaluating Agents with Inspect, and the Inspect Ecosystem (optional)
Upstream tracking

The link between a local branch and its remote counterpart, set by git push -u, so plain git push/git pull know where to go.

Introduced in 00.4 GitHub and Collaboration
URL

Uniform Resource Locator — the complete address: scheme, host, port, path, query, fragment.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
url_citation

OpenAI/Gemini/OpenRouter annotation binding an answer span to a web URL.

Introduced in 07.5 Citations and Attribution
url_citation annotation

An inline citation object (url, title, character offsets) attached to model output text by web-search tools on OpenAI, Anthropic and OpenRouter.

Introduced in 08A.8 Provider Built-in and Server-Side Tools
Usage chunk

The extra last Chat Completions chunk carrying token usage; its choices is empty on OpenAI but not on OpenRouter.

Introduced in 03.3 Streaming Responses
Usage normalization

Converting each provider's usage fields into one shape before pricing

Introduced in 08A.3 Loop Control, Budgets and Stagnation Detection in the Raw Loop
Usage object

The token counts a provider returns with every API response (input, output, cached and reasoning tokens). It's the basis of billing.

Introduced in 02.2 Tokens and Tokenization
Usage policy / AUP

The provider's or your own acceptable-use contract: prohibited uses, enforcement model, appeal path.

Introduced in 12.3 Jailbreaks and Model-Level Safety
UsageMetadata

The normalized token-usage dictionary on an AIMessage (input_tokens, output_tokens, total_tokens, optional detail breakdowns).

Introduced in 08F.5 Chat Models, Messages and Content Blocks
Use case

A specific task done by specific people that an AI feature helps with

Introduced in 14A.10 Your First-90-Days Project on an Internal Use Case
`USE_*` flag

A setting such as USE_OPENAI_MODEL written by deepeval set-<provider> that selects the default judge provider

Introduced in 10B.3 Judges in DeepEval: Models, G-Eval, DAG and Custom Metrics
`use_tools()`

The solver that installs tools and tool-choice settings in ordinary solver chains.

Introduced in 10B.14 Tools and Agents in Inspect: Custom Tools, MCP, react() and Multi-Agent Systems (optional)
User simulator

A model playing a persona with a hidden goal against your system under test.

Introduced in 10A.2 Building Evaluation Datasets
User-facing metric / system-level metric

Measures what the user experiences (task success, correctness, satisfaction) / measures the machinery (latency, cost, error rate, parse rate) — a scorecard needs both.

Introduced in 10A.1 Why Evals Matter: The Evaluation Mindset
User-simulator probe

An LLM playing a persona to test multi-turn behaviour on a schedule.

Introduced in 10A.9 Offline vs Online Evaluation
UserMessage

The typed failure-state object (severity, copy key, actions, retryable) that failure_ui maps internal signals to.

Introduced in 13B.2 Capstone Build A: The Support Copilot
uses: / run:

In a workflow step: uses: invokes a prebuilt action; run: executes a shell command.

Introduced in 00.4 GitHub and Collaboration
UTF-8

The standard encoding: 1–4 bytes per code point.

Introduced in 01A.2 Numbers, Strings and Text
Utilisation

The fraction of provisioned GPU-hours actually serving requests; the swing factor in self-hosting economics.

Introduced in 11B.1 Cost and Latency Optimization
uuid5

Deterministic UUID derived from a namespace + name.

Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Library
uv / uvx

Astral's Python/package manager and tool runner used throughout the path.

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
uv pip

Uv's pip-compatible interface for arbitrary environments.

Introduced in 01B.1 Project Setup with uv: Environments, Dependencies and Tooling
uv tool / uvx

Installing/running CLI applications in isolated tool environments.

Introduced in 01B.1 Project Setup with uv: Environments, Dependencies and Tooling
uv workspace

Multiple packages in one repo sharing a lockfile (tool.uv.workspace + tool.uv.sources).

Introduced in 13B.1 Capstone Planning and Scoping
Uvicorn

The ASGI server that listens on a port and runs your FastAPI/Starlette app; uvicorn[standard] adds C extensions.

Introduced in 01B.7 FastAPI Basics: Building a Small API
uvloop

A faster drop-in asyncio event loop (libuv-based), used via server config.

Introduced in 01B.3 Async Python: async/await and the Event Loop

V

@validate_call

Decorator that validates (and coerces) a function's arguments against its annotations, raising ValidationError; validate_return=True also checks the result.

Introduced in 01B.6 Data Validation with Pydantic
VAD

Detector for whether someone is speaking *now* — distinct from end-of-turn detection.

Introduced in 09.6 Audio-Native Models and Realtime Foundations
valid_from / valid_until

Metadata bounds describing when a document version is in force; enable "current" and "as of" queries.

Introduced in 06.6 Filtering, Metadata and Multi-Tenant Search
Validate-and-retry

Re-asking the model with the exact validation errors, a bounded number of times, before escalating or sending the item for human review.

Introduced in 03.4 Structured Output
validate_embeddings

A per-batch integrity check for NaN/inf, all-zero, wrong-dimension, non-unit-norm and near-duplicate vectors.

Introduced in 06.2 Embedding Pipelines: Batching, Caching, Scale and Cost
VALIDATED mode

Gemini's function-calling mode that constrains calls to the declared schemas while still allowing a text answer.

Introduced in 03.5 Tool Calling: The API Mechanics
Validation

Checking untrusted input against a declared shape and producing typed objects or precise errors — Pydantic's core job.

Introduced in 01B.6 Data Validation with Pydantic
validation_alias / AliasChoices

Field-level list of accepted input names for a settings field; the first name found wins, letting one field read several env-var spellings (e.g. GOOGLE_API_KEY and GEMINI_API_KEY).

Introduced in 01B.2 Environment Variables, Configuration and Secrets
ValidationError

The exception collecting all failures; errors() yields type/loc/msg/input/url/ctx per problem.

Introduced in 01B.6 Data Validation with Pydantic
ValidationInfo

Validator context (.data, .field_name, .context) and custom error codes/templates.

Introduced in 01B.6 Data Validation with Pydantic
Validator

A check on a cascade step's answer: finish reason, schema validity, business rules, judge.

Introduced in 11B.5 Model Selection and Routing
Validity card

A one-screen PASS/PROVISIONAL/WARN summary of a user simulator's validation checks against thresholds written down before the checks run; the ranking check passes only on the lower bound of its confidence interval.

Introduced in 10A.12 Evaluating Multi-Agent Systems and Validating User Simulators
Value object

An immutable object defined by its fields (Money, Point) — equal ⟺ interchangeable.

Introduced in 01A.6 Classes, Dataclasses and Enums
value_to_float

Inspect's converter from score values to numbers: C 1, P 0.5, I and N 0, numbers cast, "yes"/"no" understood, and any unknown value 0 with only a warning.

Introduced in 10B.10 Inspect Scorers, Metrics, Epochs and the Statistics Inspect Reports (optional)
values

A stream mode that emits the full state after each step (once, at the end, for an entrypoint).

Introduced in 08F.14 The Functional API and Streaming
Vamana / DiskANN

SSD-friendly graph algorithm for indexes larger than RAM.

Introduced in 06.4 Vector Indexes: HNSW, IVF, Quantization and Trade-offs
Vanishing / exploding gradients

Training signals shrinking towards zero / growing out of control as they pass back through many layers.

Introduced in 02.1 Neural Network Basics
Vanishing gradient

See [Vanishing / exploding gradients](#vanishing--exploding-gradients).

Vanity metric

A number that rises whether things are going well or badly; classic AI examples: total tokens, "AI feature" pageviews, raw thumbs-up count.

Introduced in 13A.6 Product Metrics, Experiments and Unit Economics
Vanity metrics

Attention metrics (pageviews, followers, likes) that measure reach but not value; contrasted with conversations, referrals and feedback quality.

Introduced in 14B.4 Writing and Learning in Public
Vapi / Retell / Bland / ElevenLabs Agents

Hosted voice-agent platforms.

Introduced in 09.7 Realtime Voice Agents
Variable frame rate (VFR)

Footage whose real frame timestamps drift from the container's nominal frame rate (r_frame_rate vs avg_frame_rate); breaks naive per-N-seconds sampling and frame-index scene detection.

Introduced in 09.8 Video Understanding
Variance decomposition

Splitting score variance into example variance vs judge variance (k-repeat design).

Introduced in 10A.5 Calibrating and Validating Judges
Variety control

Techniques — angle assignment, banned-phrase lists, N-sample-and-pick — for preventing samey, repetitive creative output.

Introduced in 04.8 Prompt Patterns for Common Tasks
Vector

A list of numbers, such as [0.2, -1.3, 0.8].

Introduced in 02.1 Neural Network Basics
Vector bucket / vector index (S3 Vectors)

AWS S3 Vectors' object-storage containers: a vector bucket holds up to 10,000 vector indexes, each searchable partition holding up to ~2B vectors.

Introduced in 06.5 Vector Databases: Choosing and Using One
Vector database

Stores embeddings and answers "nearest neighbours" — the retrieval engine of RAG.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Vector library

An in-process ANN index such as FAISS or hnswlib that provides fast similarity search but no persistence, CRUD, filtering service or operations layer.

Introduced in 06.5 Vector Databases: Choosing and Using One
Vector memory

Memories embedded once at write time and retrieved by similarity combined with recency, importance and confidence scoring.

Introduced in 08B.2 Memory for Agents: Short-Term and Long-Term
Vector quantization

Storing each component of an embedding vector in fewer bits (int8, binary) to reduce storage and bandwidth at some quality cost; binary quantization usually requires rescoring candidates with full-precision vectors.

Introduced in 06.1 Embedding Models and APIs in Practice
Vector store

The indexed container a managed tool or platform builds from your files.

Introduced in 07.7 Managed RAG: Provider Tools, Platforms and Frameworks
Vector-backed memory

A memory store that finds records by embedding similarity

Introduced in 08B.4 Long-Term Memory and Memory Operations
Vector-index overhead

Extra memory beyond raw vectors for graph links, IVF lists, metadata, quantisation tables and allocator overhead.

Introduced in 14B.7 Interview Prep II: LLM System Design
VectorStore

The interface for storing chunks with vectors and searching them (add_documents, similarity_search, as_retriever).

Introduced in 08F.9 RAG with LangChain
VectorStore protocol

The adapter interface defined in this lesson (upsert/query/get/delete over VectorRecord/ScoredRecord) that keeps application code store-agnostic and testable.

Introduced in 06.5 Vector Databases: Choosing and Using One
Vendor assessment

A structured review of a vendor's data handling, security and contracts

Introduced in 14A.3 Security, Data and Compliance Policy
Vendor file

The per-vendor record of contract, certifications, subprocessors, data posture, SLA and exit plan.

Introduced in 11C.4 Operating LLM Systems: Governance, Incidents and the Production Checklist
Vendor lock-in

The cost of leaving a *vendor or platform* — data gravity, re-ingestion, rebuilt integrations — distinct from framework lock-in ([lesson 08F.1](08f-frameworks-and-platforms/01-agent-frameworks.md)).

Introduced in 13A.1 Product Thinking for AI Features: What to Build and When Not to Use AI
Vendor register

The inventory of external vendors with data classes sent, terms, region, review date and exit plan

Introduced in 14A.7 Data, Vendor and Supply-Chain Governance, plus NIST AI RMF and ISO/IEC 42001 Awareness
Vendor risk questionnaire

The standard list of questions about data, security, subprocessors, telemetry and exit

Introduced in 14A.7 Data, Vendor and Supply-Chain Governance, plus NIST AI RMF and ISO/IEC 42001 Awareness
Vendor-neutral tracing

Recording spans in your own format so the backend can be swapped

Introduced in 13B.4 Capstone Build D: a Tool-Using or Two-Agent App with One Outside System
Verbalised confidence

The model *saying* "I'm 90% sure" — poorly calibrated, treat as decoration.

Introduced in 13A.3 AI UX II: Trust, Transparency, Feedback and Human-in-the-Loop
Verbalized confidence

Confidence a model states in words ("I'm 90% sure"), which is generated text and usually poorly calibrated, unlike token probabilities.

Introduced in 02.10 Limitations and Failure Modes
Verbatim vs smart mode

Exact disfluency-preserving transcription versus cleaned, formatted output (Gemini terminology).

Introduced in 09.4 Speech-to-Text
verbose_logs (DeepEval)

The per-metric record of the extracted items and every verdict with its reason, the audit trail for checking a score.

Introduced in 10B.4 DeepEval's Built-in Metrics, Opened Up: RAG, Safety, Conversations and More
Verbosity (parameter)

A request setting (low, medium, high) that asks the model for shorter or longer answers, offered by OpenAI and passed through by OpenRouter.

Introduced in 02.5 Generation and Sampling
Verbosity bias

The tendency of models, human raters and LLM judges to favour longer answers.

Introduced in 02.10 Limitations and Failure Modes
Verdict

The evaluator's structured output in evaluator-optimizer: passed flag, score and actionable feedback.

Introduced in 08A.9 Workflows vs Agents
Verdict cache

An exact-match memo of classifier verdicts keyed on normalised text + classifier id/version/threshold, used to skip redundant classifier calls while the policy engine still decides per request.

Introduced in 12.5 Guardrails and Output Validation
Verdict flip rate

The share of test cases whose pass or fail changes across repeated runs of the same metric and judge; a measure of how much a judged metric's verdicts can be trusted for gating. Not to be confused with Flip rate (sycophancy).

Introduced in 10B.4 DeepEval's Built-in Metrics, Opened Up: RAG, Safety, Conversations and More
Verdict polarity (DeepEval)

Which verdicts count as passing in a QAG metric: yes for "yes is good" metrics such as Contextual Recall, no for "yes is bad" metrics such as Toxicity, and yes or borderline for lenient ones such as Answer Relevancy.

Introduced in 10B.4 DeepEval's Built-in Metrics, Opened Up: RAG, Safety, Conversations and More
Verdict vocabulary

The three-way claim verdicts supported / unsupported / contradicted used in claim-level faithfulness judging; contradicted (context asserts the opposite) is scored and reported separately from unsupported (context silent).

Introduced in 10A.6 Evaluating RAG Pipelines in Depth
VerdictNode (DeepEval)

A DAG leaf or link that holds either an integer score from 0 to 10 (divided by 10 for the metric score) or a child node or metric.

Introduced in 10B.3 Judges in DeepEval: Models, G-Eval, DAG and Custom Metrics
Verification loop

Re-checking an agent's result against the environment (recompute, tests, DB) with bounded retries.

Introduced in 08A.10 Agent Patterns: ReAct, Plan-and-Execute, Routing and Orchestrator-Workers
Verification prompt

A prompt asking the model to check its work against explicit criteria before giving the final answer.

Introduced in 04.3 Reasoning Prompts: Chain-of-Thought and Friends
Verification rate

Share of shown outputs the user checks before relying on them.

Introduced in 13A.3 AI UX II: Trust, Transparency, Feedback and Human-in-the-Loop
Verify-before-trust routine

Read → run → test edges → check docs/versions → check licence, before using generated code.

Introduced in 00.9 Working Like an Engineer: Debugging, Asking for Help and Learning Habits
Version

A program's release number (e.g. git version 2.54.0); matters because requirements say "3.11 or newer".

Introduced in 00.1 Setting Up Your Computer for Development
Version control

Recording code history so you can undo, experiment and collaborate; git locally, GitHub remotely.

Introduced in 00.1 Setting Up Your Computer for Development
Version control system (VCS)

Software that records every state of a project so you can return, compare and share them.

Introduced in 00.3 Git Fundamentals
Version effect

A change in an eval score caused by upgrading a package rather than by a change in your code or data; recorded as such, not as a regression.

Introduced in 10B.18 Finish Learning DeepEval and Inspect from the Official Docs
Version snapshot

The "Versions" line of a lesson: the package versions it was verified against, dated; the baseline for staleness checks.

Introduced in 08F.17 Finish Learning from the Official Docs
Versioned key

Putting model/prompt/index versions inside the cache key so changes invalidate entries for free.

Introduced in 11B.3 Caching Strategies
Vertical slice

A thin but complete feature for one user job, vs a horizontal layer built in isolation.

Introduced in 13B.1 Capstone Planning and Scoping
Vesting

The schedule by which equity becomes yours over time.

Introduced in 14B.8 Interview Prep III: Take-Homes, Behavioural Rounds and Offers
Vibe check

Unrepeatable manual assessment of outputs — the practice evals replace.

Introduced in 10A.1 Why Evals Matter: The Evaluation Mindset
Video Q&A tool

Product pattern: upload → chapters → questions answered with timestamp citations.

Introduced in 09.8 Video Understanding
video_metadata

Gemini generate_content per-part options for video: start_offset/end_offset clipping strings and fps (0.0–24.0, default 1.0).

Introduced in 09.8 Video Understanding
ViDoRe

The visual document retrieval benchmark the ColPali line was built for.

Introduced in 09.9 Multimodal Embeddings and Retrieval
View

A named, stored SELECT; holds no data of its own.

Introduced in 00.7 SQL Basics with SQLite
View bundle (Inspect)

A static website containing Inspect View and a set of logs, made with inspect view bundle, for sharing results without a server.

Introduced in 10B.8 Inspect AI Fundamentals: Task = Dataset + Solver + Scorer (optional)
view vs copy

A NumPy slice that shares the parent's memory (writes go through) versus an independent duplicate.

Introduced in 01B.11 NumPy and pandas Essentials for AI Work
Virtual clock

A counter advanced by code instead of the wall clock, so timings are reproducible

Introduced in 08D.2 Hands-On: Two-Agent vs Single-Agent, Built, Traced and Evaluated
Virtual environment (venv)

A private directory containing its own Python executable, site-packages and installed packages, so projects' dependencies stay isolated.

Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Library
Virtual key

A gateway-issued scoped credential standing in for real provider keys.

Introduced in 11C.3 Fallbacks, Gateways and Reliability
Visibility

Whether one thread is guaranteed to see another thread's write, and in what order (synchronization objects provide the guarantee).

Introduced in 01C.3 Race Conditions and Thread Safety
Vision mode

Playwright MCP's optional coordinate/screenshot tools for canvas and ARIA-poor pages.

Introduced in 08A.15 Coding and Computer-Use Agents
Vision Transformer (ViT)

A transformer that treats image patches as tokens.

Introduced in 02.4 Attention and Transformers
Vision-language model (VLM)

A model that takes images and text and produces text.

Introduced in 09.1 Vision Applications: Understanding Images
vLLM

An inference server that serves open-weight models behind an OpenAI-compatible HTTP API, so pipeline code only changes base_url.

Introduced in 05.4 OCR and Scanned Documents
VLM judge

A vision-language model used as an LLM-judge for image/video outputs, with vision-specific limits.

Introduced in 10A.7 Evaluating Agents, Tool Use and Multimodal Systems
VLM-as-OCR

Using a vision-language model to transcribe an image or page directly, trading per-page cost for accuracy on hard layouts and handwriting.

Introduced in 05.4 OCR and Scanned Documents
Vocabulary

The fixed list of all tokens a tokenizer knows. Modern LLM vocabularies have about 32,000 to 262,000 entries.

Introduced in 02.2 Tokens and Tokenization
Vocabulary drift

Share of enrichment tag values outside the controlled reference vocabulary.

Introduced in 05.10 Data Quality Checks
Vocoder

The component that converts acoustic-model predictions into an audio waveform.

Introduced in 09.5 Text-to-Speech
Voice

A named acoustic identity a TTS model conditions on — a preset, not a parameter tweak.

Introduced in 09.5 Text-to-Speech
Voice activity detection (VAD)

Detecting speech versus silence — energy-based heuristics or learned models like Silero VAD.

Introduced in 09.4 Speech-to-Text
Voice agent

A program that conducts a spoken conversation: hears audio, decides, speaks back, uses tools.

Introduced in 09.7 Realtime Voice Agents
Voice cloning

Creating a synthetic voice from a person's audio; providers require documented consent.

Introduced in 09.5 Text-to-Speech
Volatile fact

A value that changes faster than docs can track — model IDs, prices, rate limits, deprecation dates — always recorded "as of" a date.

Introduced in 00.8 Reading API Documentation
Volatile-facts map

A dated table of the fastest-churning facts in a curriculum or project, each row paired with the official page that owns its re-verification.

Introduced in 14A.9 Staying Current in a Fast-Moving Field
Voluntary / involuntary context switch

Voluntary: the thread gave up the CPU to wait. Involuntary: the scheduler took the CPU away.

Introduced in 01C.1 Concurrency, Parallelism and Context Switching
Voting

Running the same model call N times and aggregating — majority vote for comparable answers, synthesis for prose.

Introduced in 08A.9 Workflows vs Agents
VQA

Answering questions about image content.

Introduced in 09.1 Vision Applications: Understanding Images
Vulnerability (red teaming)

A named failure category with types, such as Bias with gender or race, that red teaming attacks and grades; 39 classes and 133 types in DeepEval 4.3.6, plus CustomVulnerability for your own policy.

Introduced in 10B.7 DeepEval in Production: Red Teaming, CI/CD, Prompt Optimization and Confident AI
Vulnerability disclosure policy (VDP)

A published statement of how a project receives, triages and discloses vulnerability reports, including safe-harbour terms.

Introduced in 12.10 Security Operations, Incident Response and the Safety Checklist

W

"What I remember" surface

User-visible, inspectable view of what the AI remembers about them.

Introduced in 13A.3 AI UX II: Trust, Transparency, Feedback and Human-in-the-Loop
"Works on my machine"

Reproducibility failure: the environment wasn't captured in the artefact.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Wait-for graph

A graph with an edge from A to B when A is waiting for something B holds; a cycle in it is a deadlock for single-unit resources.

Introduced in 01C.4 Deadlocks, Livelock and Starvation
wait_none

A tenacity wait strategy that sleeps zero seconds — used to test retry logic without real delays.

Introduced in 01B.9 Retries, Timeouts, Backoff and Resilience
WAL (write-ahead log) mode

journal_mode = WAL: readers and the writer no longer block each other; still one writer.

Introduced in 00.7 SQL Basics with SQLite
Walking skeleton

The thinnest end-to-end version of a product that proves the whole system hangs together.

Introduced in 13A.1 Product Thinking for AI Features: What to Build and When Not to Use AI
Wall-clock time

Real elapsed time, as measured by a stopwatch (time.perf_counter).

Introduced in 01C.1 Concurrency, Parallelism and Context Switching
Walrus operator :=

Assignment inside an expression, e.g. if (n := len(x)) > 3: (Python 3.8+).

Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics
Warm handoff

Transfer to a human with AI-generated call summary.

Introduced in 13B.5 Capstone Build C: The Realtime Voice Agent Product
Warm the cache

Send one request and wait for its first response before fanning out, so later requests hit

Introduced in 11B.8 The Cost of Agents and Long Contexts, Prompt Caching per Provider, and the Cost of Running Evals
Warm transfer

Handing a call to a human with AI-generated context summary.

Introduced in 09.7 Realtime Voice Agents
Warm-up / pre-warming

Writing hot cache entries before traffic arrives so the first users don't all miss.

Introduced in 11B.3 Caching Strategies
warnings

Non-fatal alerts via warnings.warn; filters can escalate them to errors.

Introduced in 01A.8 Errors, Exceptions, Debugging and Logging
Watchdog

A separate thread or process that expects regular heartbeats from the code it guards and dumps state or restarts when they stop.

Introduced in 01C.4 Deadlocks, Livelock and Starvation
Watcher problem

The limitation that an LLM-based injection detector reading the same untrusted text is itself injectable — mitigated by purpose-built classifiers, different model families, and never relying on detection alone.

Introduced in 12.2 Prompt Injection: Direct and Indirect
Watermark

The "processed up to here" marker (timestamp, ID, feed date) for incremental sources.

Introduced in 05.1 Data Sources, Formats and the Ingestion Mindset
WAV / RIFF

A container that wraps PCM samples with a small header; what wave writes and what Gemini unary TTS returns.

Introduced in 09.5 Text-to-Speech
Weak reference

A reference that does not keep its target alive; it returns None once the target is freed.

Introduced in 01C.6 Python Memory Management
weakref.finalize

Registers a cleanup callback that runs when an object is collected or at exit, without keeping the object alive; a safer alternative to __del__.

Introduced in 01C.6 Python Memory Management
Web app

A program split between a client (usually a browser) and a server exchanging HTTP requests/responses, with durable state in a database.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
Webhook

Provider-initiated callback to your endpoint on events; needs signature verification + idempotency.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
WebMCP

A proposed browser API for a web page to register tools an AI agent can call ([Part 5](08e-protocols-and-extensibility/04-a2a-agent-skills-and-tool-selection-at-scale.md#part-5-protocol-watchlist))

Introduced in 08E.4 A2A Basics, Agent Skills (SKILL.md) and Tool Selection at Scale
WebRTC

Browser media protocol with built-in jitter buffer, AEC, codecs.

Introduced in 09.6 Audio-Native Models and Realtime Foundations
WebSocket

A persistent bidirectional channel (WS/WSS) for realtime data.

Introduced in 00.6 HTTP, REST and JSON
Weight

A learned number expressing how much a particular input influences a neuron's output.

Introduced in 02.1 Neural Network Basics
Weight initialization

Setting a network's starting weights to small random numbers, scaled to the layer size, so that neurons differ and training signals neither vanish nor explode.

Introduced in 02.1 Neural Network Basics
Weight-level backdoor

A model whose weights were trained or fine-tuned to behave differently on trigger inputs — no code execution required, and persistent through standard safety training.

Introduced in 12.7 Securing RAG Data, Keys and the AI Supply Chain
Weighted aggregation

run_graders(weights=...) — per-grader weights on the soft mean; they tune the aggregate but can never outvote a hard gate.

Introduced in 10A.3 Deterministic Metrics and Code-Based Graders
Weighted kappa

Kappa for ordinal scales where near-misses count less than far misses.

Introduced in 10A.2 Building Evaluation Datasets
Weighted RRF

RRF with a per-retriever multiplier on each list's contribution — the standard way to tilt fusion toward one side.

Introduced in 06.8 Hybrid Search
Weighted sum

The total of each input multiplied by its weight, plus the bias: the number a neuron computes before applying its activation function.

Introduced in 02.1 Neural Network Basics
Well-known port

Conventionally assigned ports: 22 SSH, 53 DNS, 80 HTTP, 443 HTTPS, 3306 MySQL, 5432 Postgres, 6379 Redis.

Introduced in 00.5 How Web Apps Work: Client, Server and Database
WER

Word error rate — (substitutions+deletions+insertions)/reference words; used here for TTS→STT round-trip intelligibility.

Introduced in 09.5 Text-to-Speech
What-if run

Re-running an evaluation after changing one assumption, to see which assumption drives the verdict

Introduced in 08D.2 Hands-On: Two-Agent vs Single-Agent, Built, Traced and Evaluated
Wheel (.whl)

The prebuilt package format installers use / the raw source distribution built on install.

Introduced in 01B.1 Project Setup with uv: Environments, Dependencies and Tooling
Wheel vs sdist

A wheel (.whl) is the installable zip with .dist-info metadata; an sdist (.tar.gz) is the source archive — uv build produces both, users install the wheel.

Introduced in 01B.10 Logging, Debugging and Packaging: Putting the Toolkit Together
where / where_document

Chroma's metadata-filter and full-text-filter query arguments.

Introduced in 06.5 Vector Databases: Choosing and Using One
Whistleblowing

Reporting suspected wrongdoing through formal channels; protections vary by jurisdiction.

Introduced in 14B.9 Your First 90 Days and Long-Term Growth
Whitening

Decorrelating dimensions via inverse-covariance transform (stronger, riskier than centring).

Introduced in 06.3 Similarity Metrics and Nearest-Neighbour Search
Who&When

A benchmark of 184 multi-agent failure logs labelled with the responsible agent and decisive step, used to measure failure attributors (ICML 2025).

Introduced in 10A.12 Evaluating Multi-Agent Systems and Validating User Simulators
Wilson interval

A confidence interval for a binomial proportion (e.g. a pass rate) that stays honest at small sample sizes.

Introduced in 04.9 Iterating, Debugging and Porting Prompts
Win rate / Elo / Bradley-Terry

The naive pairwise aggregation: wins plus half-ties over games, excluding untrusted verdicts.

Introduced in 10A.4 LLM-as-Judge
Window function

Aggregate/rank over a row partition without collapsing rows.

Introduced in 00.7 SQL Basics with SQLite
Window/chunk expansion

Query-time expansion of a hit to its neighbours or parent.

Introduced in 05.7 Advanced and Document-Specific Chunking
Windowed threshold

An alert condition evaluated over a rolling time window — e.g. at least five matching events per user per hour — so bursts and slow drips produce different alerts.

Introduced in 12.10 Security Operations, Incident Response and the Safety Checklist
Wire capture

Recording the exact HTTP request a library sends.

Introduced in 03.1 The Provider APIs and Your First Calls
with_catalog

Adapter enriching thin Hit.metadata with doc_id/section/title for citations.

Introduced in 07.1 RAG Architecture: From Question to Grounded Answer
with_options

An SDK method returning a copy of the client with some settings changed.

Introduced in 03.1 The Provider APIs and Your First Calls
with_retry / with_fallbacks

Runnable wrappers that retry on chosen exceptions and fall back to other runnables.

Introduced in 08F.5 Chat Models, Messages and Content Blocks
with_structured_output

Returns a runnable that yields parsed data (Pydantic object, TypedDict or dict) instead of an AIMessage; takes method and include_raw.

Introduced in 08F.5 Chat Models, Messages and Content Blocks
Wizard-of-Oz prototype

A human performing the AI's job while users believe software is doing it — testing the interaction before the technology.

Introduced in 13A.1 Product Thinking for AI Features: What to Build and When Not to Use AI
Word error rate (WER)

Edit distance between hypothesis and reference words divided by reference length — the standard ASR accuracy metric.

Introduced in 09.4 Speech-to-Text
word2vec / GloVe

Early (2013/2014) methods for learning static word vectors.

Introduced in 02.3 Embeddings
WordPiece

A subword tokenization algorithm used by BERT that marks pieces continuing a word with ##.

Introduced in 02.2 Tokens and Tokenization
Work sample

Evidence of how someone actually works, as opposed to how they answer questions; the basis of take-home assessments and structured interviewing.

Introduced in 14B.8 Interview Prep III: Take-Homes, Behavioural Rounds and Offers
Worked example / worked CoT

An example showing reasoning steps plus the answer, not just the answer.

Introduced in 04.2 Zero-Shot, Few-Shot and Examples
Worker pool

Fixed set of long-lived tasks pulling items from a queue.

Introduced in 01B.4 Concurrency Patterns for I/O-Heavy Work
Workflow / job / step

An Actions file / a runner plus an ordered list of steps / one command or action inside a job.

Introduced in 00.4 GitHub and Collaboration
Workflow state

A typed record of where a business process is; the source of truth for business facts

Introduced in 08B.1 Kinds of State and Session Management
Workflow-First Rule

Use a deterministic workflow unless an agent is clearly needed; build an agent only when you can name why a fixed path will not do

Introduced in 08A.9 Workflows vs Agents
Working / short-term memory

What the agent needs right now: conversation, loop state, plan, recent tool results — lives in the context window.

Introduced in 08B.2 Memory for Agents: Short-Term and Long-Term
Working directory

The directory the shell is currently in; relative paths resolve against it.

Introduced in 00.2 The Terminal and Shell
Working limit

A cap on time excluding specified waiting such as concurrency slots, retry backoff, approval and human input.

Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)
Working memory / session state

A small structured JSON object (goal, stage, facts, decisions, open tasks) injected as pinned context to survive compaction.

Introduced in 04.7 Context Engineering: Managing Context Over Time
Working tree

The files you see and edit on disk.

Introduced in 00.3 Git Fundamentals
Workload identity

Keyless auth exchanging a cloud identity token for short-lived credentials.

Introduced in 01B.2 Environment Variables, Configuration and Secrets
Workload identity federation

Authenticating a workload with short-lived tokens from its own platform instead of a long-lived key.

Introduced in 03.1 The Provider APIs and Your First Calls
Workspace

A multi-package repo sharing one lockfile and .venv.

Introduced in 01B.1 Project Setup with uv: Environments, Dependencies and Tooling
Workspace Trust

VS Code's security prompt deciding whether a folder's code may run automatically.

Introduced in 00.1 Setting Up Your Computer for Development
Worktree isolation

Running the agent in a separate git worktree/clone so your checkout is untouched.

Introduced in 08A.15 Coding and Computer-Use Agents
World / simulated environment

The resettable fake environment (state + tools + policy) an agent acts on during eval.

Introduced in 10A.7 Evaluating Agents, Tool Use and Multimodal Systems
World fingerprint

A hash of the state the tools change, used to tell whether a write did anything

Introduced in 08A.3 Loop Control, Budgets and Stagnation Detection in the Raw Loop
Worst-case estimate

Counted input times input price plus the output cap times output price, assuming nothing is cached

Introduced in 11B.6 Budgets, Quotas, Cost Attribution and Chargeback
Worst-case model

A test model that obeys injected instructions, used to check that the walls hold

Introduced in 13B.4 Capstone Build D: a Tool-Using or Two-Agent App with One Outside System
Worst-slice metric

The minimum pass rate across data slices — exposes the tail that an overall mean conceals.

Introduced in 10A.3 Deterministic Metrics and Code-Based Graders
Wrap hook

A wrap_model_call or wrap_tool_call middleware that receives a request and a handler and decides how often to call the handler.

Introduced in 08F.8 Tools and create_agent
Wrap-up call

The reserved final model call, with tools off, that summarizes what was found and what is missing

Introduced in 08A.3 Loop Control, Budgets and Stagnation Detection in the Raw Loop
Write / select / compress / isolate

The LangChain team's four moves for managing context: save it outside the window, pull it in, keep only the needed tokens, split it across windows ([1.6](04-prompt-context-engineering/06-context-selection-and-ordering.md#16-a-shared-vocabulary-four-ways-context-fails-four-moves-that-fix-it)).

Introduced in 04.6 Context Engineering: Selecting and Ordering Context
Write policy

The rules deciding what may be stored as a memory: durable facts and explicit requests in; secrets, unneeded PII, transient state and smuggled instructions out.

Introduced in 08B.2 Memory for Agents: Short-Term and Long-Term
Write premium

The extra cost of writing a prompt-cache entry (1.25–2.5× base input) vs reading it (~0.1×).

Introduced in 11B.3 Caching Strategies
Write-back

The extract → validate → store → retrieve → inject pipeline that creates long-term memory.

Introduced in 04.7 Context Engineering: Managing Context Over Time
Write-time vs read-time resolution

Two ways memory systems handle contradictions: update or invalidate the old fact when the new one is written, or store everything and rely on retrieval to rank the current fact first; they must be graded at different stages.

Introduced in 10A.11 Evaluating Agent Memory and Context Management
Writer

A role that turns facts into the final answer in the required format

Introduced in 08D.1 One Agent or Several: Roles and the Two Basic Patterns
Writer starvation

A writer repeatedly overtaken by new readers in a reader-preferring read-write lock and never admitted.

Introduced in 01C.4 Deadlocks, Livelock and Starvation
Wrong synthesis

Combining real facts from different passages into a false conclusion.

Introduced in 07.4 Grounded Generation: Prompts, Context Assembly and Abstention
WSGI

The older synchronous Python web standard (Flask/Django); one request occupies one worker for its duration.

Introduced in 01B.7 FastAPI Basics: Building a Small API
WSL 2

Windows Subsystem for Linux: a lightweight real-Linux environment inside Windows 10/11.

Introduced in 00.1 Setting Up Your Computer for Development
`WWW-Authenticate` challenge

The 401 or 403 response header telling a client where to find metadata and which scope is needed

Introduced in 08E.3 Remote MCP: OAuth, Gateways and Many Servers

X

X-Accel-Buffering

Response header that tells proxies (nginx) not to buffer a stream.

Introduced in 01B.7 FastAPI Basics: Building a Small API
x-should-retry

A non-standard response header from OpenAI and Anthropic that tells their SDKs whether to retry a failed request, overriding the usual status-code rules.

Introduced in 03.8 Errors, Rate Limits, Timeouts and Retries
xargs

Builds command lines from stdin.

Introduced in 00.2 The Terminal and Shell
XML-style tags

Angle-bracketed text markers (<instructions>, <document>) used to structure prompts; plain text conventions, not parsed XML.

Introduced in 04.4 Structuring Prompts: XML, Markdown and Delimiters
XSS / CSRF

Script injection in a page vs forged cross-site requests — mitigated by HttpOnly/SameSite.

Introduced in 00.5 How Web Apps Work: Client, Server and Database

Y

yaml.safe_load

YAML parse restricted to plain types — the only safe load (yaml.load constructs arbitrary objects).

Introduced in 01A.9 Files, Paths, JSON and CSV
yield

Suspends the generator, emits one value, resumes on next next().

Introduced in 01A.5 Comprehensions, Iterators and Generators
Yield fixture

A fixture using yield to split setup (before) from teardown (after).

Introduced in 01B.8 Testing with pytest
yield from

Delegates: yields everything a sub-iterator produces, then continues.

Introduced in 01A.5 Comprehensions, Iterators and Generators
YOLO / DETR / RT-DETR / SAM

Dedicated CV model families: real-time detector / transformer detector / promptable segmentation.

Introduced in 09.1 Vision Applications: Understanding Images
Youden's J

TPR + TNR − 1; the judge's overall skill; correction needs J > 0.

Introduced in 10A.5 Calibrating and Validating Judges

Z

Z-score

(value - trailing mean) / trailing std; a dimensionless score for flagging values unusual relative to recent history.

Introduced in 11A.2 Metrics, Dashboards, SLOs and Alerting
ZDR (Zero Data Retention)

Provider policy where prompts/outputs aren't retained; eligibility varies per tool version.

Introduced in 08A.8 Provider Built-in and Server-Side Tools
Zero data retention (ZDR)

An arrangement under which a provider doesn't store prompts or outputs after returning the response.

Introduced in 02.9 Model Landscape
Zero-copy

Passing or slicing data without duplicating it in memory.

Introduced in 01C.7 Shared Memory and Inter-Process Communication
Zero-event upper bound

The highest event rate still plausible at a stated confidence after observing no events in n independent trials; for leak tests, n counts only the probes that could have revealed a leak.

Introduced in 10A.11 Evaluating Agent Memory and Context Management
Zero-result rate

Online retrieval-health signals: the fraction of queries returning nothing, and how often users re-ask differently — proxies for retrieval failure.

Introduced in 06.10 Evaluating and Tuning Retrieval
Zero-retention mode

Provider option that does not store request audio or text (e.g. ElevenLabs enterprise).

Introduced in 09.5 Text-to-Speech
Zero-shot / one-shot / few-shot / many-shot

Prompting with 0 / 1 / a few (~2–10) / hundreds+ input-output demonstrations in the context.

Introduced in 04.2 Zero-Shot, Few-Shot and Examples
Zero-shot chain-of-thought (zero-shot CoT)

Eliciting step-by-step reasoning with an instruction phrase such as "think step by step" and no worked examples.

Introduced in 04.3 Reasoning Prompts: Chain-of-Thought and Friends
Zero-shot classification

Classifying by similarity to label descriptions, without training examples.

Introduced in 02.3 Embeddings
Zero-shot CoT

CoT elicited by an instruction phrase ("think step by step") with no examples.

Introduced in 04.3 Reasoning Prompts: Chain-of-Thought and Friends
Zero-width space / joiner / BOM

Invisible format characters (U+200B, U+200D, U+FEFF).

Introduced in 05.5 Cleaning and Normalization
Zeroing (Inspect)

Counting a sample as a failure in a finished log by copying in the verdicts of an empty attempt (zero_samples()), with the reason recorded.

Introduced in 10B.13 Inspect Logs, Analysis and Extending Inspect (optional)
zip

Pairs items from multiple iterables; stops at shortest.

Introduced in 01A.3 Control Flow and Functions
zip bomb

Archive whose tiny compressed size hides huge uncompressed content.

Introduced in 05.3 Parsing HTML, Web Pages and Office Files
zip_longest

zip variant that pads shorter iterables with fillvalue.

Introduced in 01A.5 Comprehensions, Iterators and Generators
Zombie worker

A worker that lost its lease but is still running and may try to write results

Introduced in 08A.13 Background and Long-Running Agents
zoneinfo

Stdlib timezone database access (ZoneInfo("Asia/Kolkata")).

Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Library
Esc
02.2Tokens and TokenizationHow LLMs Work · 21k wordsLesson
02.3EmbeddingsHow LLMs Work · 18k wordsLesson
07Retrieval-Augmented Generation (RAG)11 lessons · Everyone who will build LLM features that must answer from knowledge the model doesn't have in its weights: internal handbooks and help centres, contracts, ticket histories, product docs, or any corpus that changes faster than a training run. The module covers the full RAG stack — architecture, retrieval strategy, query understanding, grounded generation, citations, conversation, managed services, advanced patterns, evaluation, debugging and production operation — and shows where each major provider's managed retrieval and citation features fit (OpenAI, Anthropic, Google Gemini and OpenRouter). All code is Python.Overview
08E.1The Model Context Protocol (MCP)Protocols and Extensibility · 12k wordsLesson
↑ ↓ navigate↵ openesc close