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
Introduced in 01B.7 FastAPI Basics: Building a Small APIdetaillist of Pydantic-style errors.- ~, ., ..
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
Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Libraryfrom module import *.- __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
Introduced in 08E.4 A2A Basics, Agent Skills (SKILL.md) and Tool Selection at Scaleid, acontextId, a status, artifacts and a history- 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 (
Introduced in 00.2 The Terminal and Shell/…,C:\…) vs from the working directory.- Absolute agreement
Pointwise score agreement —
Introduced in 10A.5 Calibrating and Validating Judgesmean_bias,mae,within_one, score spread (sd) — what rank correlations can't see.- 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 —
Introduced in 10A.6 Evaluating RAG Pipelines in Depthanswered_unanswerableandabstained_answerableare the two error cells.- Abstention accuracy
Correctness of refuse-vs-answer decisions over cases where abstention was expected or exercised (
Introduced in 07.9 Evaluating RAGexpect_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.- Abstention curve
Answer accuracy vs abstention rate as the threshold sweeps — the calibration trade-off.
Introduced in 07.9 Evaluating RAG- Abstract base class
Introduced in 01A.6 Classes, Dataclasses and Enumsabc.ABC+@abstractmethod— an interface that can't be instantiated.- 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
Introduced in 11C.1 Deploying LLM ServicesGETfor the result.- 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 —
Introduced in 13B.1 Capstone Planning and Scopingeval:-linked for model behaviour,harness:-linked for deterministic checks.- 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
Introduced in 05.8 Metadata Design{principal_type, principal_id, effect}where principals are users, groups or roles; deny always wins and no match means deny.- 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 (
Introduced in 08F.13 Subgraphs and Multi-Agent Systemsactive_agent) naming which agent handles the next turn; persisted by a checkpointer.- 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
Introduced in 02.1 Neural Network Basics35B-A3Bgive both.- 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
Introduced in 08F.10 LangGraph FundamentalsRemoveMessage.- 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
Introduced in 08F.9 RAG with LangChainmetadata["start_index"].- 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
Introduced in 10A.2 Building Evaluation Datasetsnotes.- 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
Introduced in 08F.1 Agent Frameworks and SDKsrun_asyncover sessions/events.- Agent address
The pair (agent id, environment) built with
Introduced in 11A.5 LangSmith, Testing and Deploymentls.agent_address, sent aslrn:agents/<id>/environments/<environment>.- 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
Introduced in 08F.2 OpenAI Agents SDKagent.as_tool(...): another agent exposed as a single tool, so the caller keeps control- 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
Introduced in 10B.5 DeepEval Tracing, Component-Level Evals and Agent Evaluationagent_handoffs, the implemented 4.3.5 agent-span field recording possible handoff targets- 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
Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)run()step.- 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
Introduced in 08A.10 Agent Patterns: ReAct, Plan-and-Execute, Routing and Orchestrator-Workerscall_model: ordering, prompts, state and stop conditions.- 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
Introduced in 08E.4 A2A Basics, Agent Skills (SKILL.md) and Tool Selection at ScaleSKILL.mdand optional scripts, references and assets, loaded by an agent on demand- Agent Skills
Anthropic's instruction+script bundles (pre-built
Introduced in 08A.8 Provider Built-in and Server-Side Toolspptx/xlsx/docx/pdfor custom via the Skills API) mounted throughcontainer.skills, requiring code execution; not ZDR-eligible.- 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
Introduced in 08F.1 Agent Frameworks and SDKsruncall (e.g. OpenAI Agents SDK, Pydantic AI, Google ADK agent mode).- 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
Introduced in 10B.5 DeepEval Tracing, Component-Level Evals and Agent Evaluationhandoff_agentsspelling is silently ignored.- `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
Introduced in 10A.7 Evaluating Agents, Tool Use and Multimodal Systems(task, world) -> Trajectory— any agent, scripted or live, plugs in.- 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
Introduced in 07.7 Managed RAG: Provider Tools, Platforms and Frameworksai_search()); billed per token or per agentic call, not per plain query.- 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
Introduced in 10B.7 DeepEval in Production: Red Teaming, CI/CD, Prompt Optimization and Confident AIscoreis the fraction of criteria breached- 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 (
Introduced in 08D.3 Multi-Agent SystemsAgent.as_tool()in the OpenAI Agents SDK).- 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
Introduced in 08F.8 Tools and create_agentTypedDictbase for agent state:messages(append-only),jump_toandstructured_response.- `AgentState` (Inspect)
The narrow state of an Inspect agent:
Introduced in 10B.14 Tools and Agents in Inspect: Custom Tools, MCP, react() and Multi-Agent Systems (optional)messagesplusoutput.- `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
Introduced in 00.7 SQL Basics with SQLiteCOUNT/SUM/AVG/MIN/MAXcollapsing rows to one value.- 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
Introduced in 08F.5 Chat Models, Messages and Content BlocksAIMessage; chunks combine with+and the last haschunk_position == "last".- aiohttp backend
An optional HTTP transport for the async SDK clients, instead of
Introduced in 03.9 Async, Concurrency and Batch Processinghttpx/httpx2.- 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
Introduced in 00.4 GitHub and Collaboration[!NOTE],[!TIP],[!IMPORTANT],[!WARNING]or[!CAUTION], rendered as a coloured callout.- Alert fatigue
Ignoring alerts because too many are noise
Introduced in 11B.7 Rate Limits Across Teams, Throughput Options, Kill Switches and Spend Alerts- 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 asfastorsmartis 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 —
Introduced in 08A.8 Provider Built-in and Server-Side Tools"direct","programmatic"or"code_execution_20260120"— the approval boundary for programmatic calling.- `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
Introduced in 08B.2 Memory for Agents: Short-Term and Long-Termmemory_searchwhen it needs the archive — the production pattern uses both, tiered.- 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 (
Introduced in 01B.7 FastAPI Basics: Building a Small APIQuery,Header,Depends…) insideAnnotated[T, ...]— the current recommended form.- Annotated validators
Introduced in 01B.6 Data Validation with PydanticAfterValidator/BeforeValidator/PlainValidator/WrapValidator— reusable rules attached to a type.- 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
Introduced in 11A.5 LangSmith, Testing and DeploymentClient(anonymizer=...)that rewrites matching strings in run inputs and outputs before upload.- 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
Introduced in 07.4 Grounded Generation: Prompts, Context Assembly and Abstentionanswered/partial/abstained/needs_clarificationfield that makes abstention machine-readable.- 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
Introduced in 10B.10 Inspect Scorers, Metrics, Epochs and the Statistics Inspect Reports (optional)answer()scorer uses (letter,word,line), each reading what follows the lastANSWER:in a reply.- 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 (
Introduced in 00.7 SQL Basics with SQLiteNOT EXISTS,LEFT JOIN ... IS NULL).- 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
Introduced in 03.1 The Provider APIs and Your First Callsanthropic-version: 2026-10-21or Gemini'sv1beta.- 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
Introduced in 01B.7 FastAPI Basics: Building a Small APIapp.include_router.- App factory
Introduced in 11C.1 Deploying LLM Servicescreate_app()pattern: build the app in a function so tests can inject fakes and config.- 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
Introduced in 01B.10 Logging, Debugging and Packaging: Putting the Toolkit Togetherdependenciesare written.- Application-level model alias
A role name such as
Introduced in 03.11 Building a Provider-Agnostic Clientfastorsmartthat your code uses instead of a provider model ID, resolved through the registry.- 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
Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)ToolCalls and checks each decision against the written policy, with no eval or model.- Approximate nearest-neighbour (ANN) index
A data structure that finds nearly the closest vectors without comparing against every one.
Introduced in 02.3 Embeddings- Arbitrary precision
Python ints never overflow.
Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics- archive member / ! provenance
A file inside a
Introduced in 05.3 Parsing HTML, Web Pages and Office Files.zip/.tar/.gz;outer.zip!inner/pathrecords where it really lived.- 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;
Introduced in 10B.3 Judges in DeepEval: Models, G-Eval, DAG and Custom Metricscompare()turns many such judgements into win counts.- argparse
Stdlib CLI argument parser: positionals, flags, choices,
Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Library--help.- argparse subparsers
Introduced in 01B.10 Logging, Debugging and Packaging: Putting the Toolkit Togetherargparse's nested-subcommand mechanism (add_subparsers+set_defaults(func=...)) behindprog <subcommand> <args>.- 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
Introduced in 01A.3 Control Flow and Functions*/**at a call site to spread a sequence or dict into positional/keyword arguments (f(*seq),f(**d)).- 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 /
Introduced in 01B.3 Async Python: async/await and the Event Loop(done, pending)sets withFIRST_COMPLETED.- as_node
The
Introduced in 08F.11 Persistence, Durable Execution and Memoryupdate_stateargument naming which node the update stands in for, which decides what runs next.- `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
Introduced in 01B.8 Testing with pytesthttpxtransport calling an ASGI app directly, for async tests.- Assembled context
The
Introduced in 07.4 Grounded Generation: Prompts, Context Assembly and Abstention<context>...</context>block actually sent to the model, with kept/truncated/dropped passages recorded for traces.- assert
Invariant check; stripped by
Introduced in 01A.3 Control Flow and Functionspython -O.- assert_never
"Unreachable" marker — raises
Introduced in 01A.10 Type Hints and Writing Readable CodeAssertionError, satisfiesNever.- assert_test()
DeepEval's pytest assertion: scores one test case with its metrics and raises
Introduced in 10B.2 DeepEval Fundamentals: Test Cases, Metrics and the Test RunnerAssertionErrorlisting every failing metric.- assert_type
Checker probes:
Introduced in 01A.10 Type Hints and Writing Readable Codeassert_typeverifies inferred type equals T;assert_nevermarks unreachable branches (raisesAssertionError).- 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
Introduced in 01B.8 Testing with pytestassertfailures show every sub-expression's value.- 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 (
Introduced in 08F.5 Chat Models, Messages and Content Blocksversion="v2") reporting start, stream and end events for a model or a whole chain.- Asymmetric embedding
Embedding queries and documents differently (via
Introduced in 02.3 Embeddingsinput_type,task_typeor prefixes).- 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
Introduced in 03.9 Async, Concurrency and Batch Processingasynctwin of an SDK client (AsyncOpenAI,AsyncAnthropic,genai.Client().aio) whose methods youawait, so many requests can wait on the network at once.- 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
Introduced in 01B.3 Async Python: async/await and the Event Loopasync defwithyield; consumed byasync for;aclose()cleans up early exit.- Async iterator
The
Introduced in 01A.5 Comprehensions, Iterators and Generators__aiter__/__anext__counterpart used byasync for(preview; Module 01B).- 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;
Introduced in 01B.3 Async Python: async/await and the Event Loopreturn_exceptionscollects failures.- 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
Introduced in 01B.3 Async Python: async/await and the Event LoopTimeoutError.- 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
Introduced in 01B.8 Testing with pytestpytest-asyncioconfig:"strict"(default) or"auto".- 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
Introduced in 00.3 Git Fundamentalstype(scope): subjectmachine-readable message convention.- 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
Introduced in 10B.13 Inspect Logs, Analysis and Extending Inspect (optional)attachment://<hash>; resolve withresolve_sample_attachments().- 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
Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basicsx += y— rebind for immutables, mutate for mutables.- 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
Introduced in 03.7 Token Counting, Cost Tracking and Prompt Cachingcache_controlon the request that places the breakpoint on the last cacheable block, which suits growing conversations. It uses one of the four breakpoint slots.- Automatic continuation
Introduced in 03.3 Streaming Responsesgoogle-genai's default behaviour of chaining long-generation "hops" and resuming a dropped stream from acontinuation_token;FinishReason.CONTINUATIONis not an ending.- 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
Introduced in 01B.8 Testing with pytestMockmode enforcing the real signature, catching wrong-argument calls.- AutoStrategy
Picks
Introduced in 08F.6 Prompts, Output Parsers and Structured OutputProviderStrategyorToolStrategyfrom the model profile.- 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
Introduced in 01B.3 Async Python: async/await and the Event Loopasync def.- Awaitable
Anything you can put after
Introduced in 01C.2 Synchronous vs Asynchronous Programming and the asyncio Event Loopawait: a coroutine object, a Future or Task, or an object with an__await__method returning an iterator.- Aware vs naive datetime
A datetime with
Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Librarytzinfodenotes an instant; without it, only a wall-clock reading — the two cannot be subtracted.- 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
Introduced in 03.9 Async, Concurrency and Batch Processingbackground=True, Gemini Interactionsbackground=True) and fetching the result by polling or webhook.- 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
Introduced in 01A.2 Numbers, Strings and Textround()rounds half to even (2.5→2, 3.5→4), not half up; useDecimalROUND_HALF_UPfor money.- 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
Introduced in 00.3 Git Fundamentals.git-only repo (no worktree) — what remotes usually are.- 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
Introduced in 08F.5 Chat Models, Messages and Content Blockslangchain-corebase class that gives every provider classinvoke,stream,batch, async methods,rate_limiter,cacheanddisable_streaming.- 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
Introduced in 08F.8 Tools and create_agentlangchain-corebase class for all tools.- 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 tier
A 50%-off asynchronous pricing tier.
Introduced in 11B.2 Tokenomics: The Unit Economics of LLM Applications- Batch, step, epoch
A group of training examples processed together in one training step.
Introduced in 02.1 Neural Network Basics- Beam search
Decoding that keeps several best partial sequences and returns the most probable complete one.
Introduced in 02.5 Generation and Sampling- Bearer token
Introduced in 00.5 How Web Apps Work: Client, Server and DatabaseAuthorization: Bearer <token>— "holder is authenticated".- 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
Introduced in 03.1 The Provider APIs and Your First Callsanthropic-beta.- 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
Introduced in 08F.5 Chat Models, Messages and Content Blocks.tool_calls.- Binding
Fixing keyword arguments, config or types on a Runnable (
Introduced in 08F.7 Runnables and LCELbind,with_config,with_types), returning a new Runnable.- Bisect
Binary-searching history to find the first "bad" point;
Introduced in 00.9 Working Like an Engineer: Debugging, Asking for Help and Learning Habitsgit bisectautomates it for commits.- 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- 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
Introduced in 01A.11 Coming from PHP, JavaScript or Java: Side by Side{ }-delimited scope — absent in Python (function/module/class/comprehension only).- 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;
Introduced in 01A.2 Numbers, Strings and Textutf-8-sigstrips it, plainutf-8keeps\ufeff.- bool is int
Introduced in 01A.2 Numbers, Strings and TextTrue == 1andisinstance(True, int); booleans are anintsubclass.- 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
Introduced in 06.8 Hybrid SearchN − rank + 1points per list; linear rather than reciprocal decay, less top-heavy than RRF.- 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
Introduced in 01A.3 Control Flow and Functionselseclause on afor/whilethat runs only when the loop finishes withoutbreak.- 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
Introduced in 08F.4 The LangChain Ecosystem and Your Setuplangchain_classicimport used temporarily to keep pre-1.0 code running while you migrate.- Bridge package
A compatibility package (here
Introduced in 08F.15 Patterns, Pitfalls and Migrationlangchain-classic) that keeps old imports working while you port.- 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 (
Introduced in 00.2 The Terminal and Shellsed -i,--help).- 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
Introduced in 10A.8 Regression Testing, CI and Experiment Trackingmax_calls/max_cost_usdlimit that stops a run before the invoice does.- 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)- 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
Introduced in 01B.10 Logging, Debugging and Packaging: Putting the Toolkit Together[build-system](uv_build,hatchling,setuptools) that turns a source tree into wheel/sdist distributions.- 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
Introduced in 03.5 Tool Calling: The API Mechanicstype, with its results inside the same response and billed on top of tokens.- Built-in tools
The file, shell and web tools Claude Code ships with; removed with
Introduced in 08F.3 Claude Agent SDKtools=[]- Builtin
Names available without import (
Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basicsprint,len,str...).- bulk_update_state
Applies several
Introduced in 08F.11 Persistence, Durable Execution and MemoryStateUpdatesuper-steps in one call.- 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
Introduced in 00.7 SQL Basics with SQLitedatabase is locked.- 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
Introduced in 01A.2 Numbers, Strings and Textbytesyields ints, not one-byte strings.
C
- -c / -m / -i
Interpreter flags: run inline code, run a module as
Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics__main__, or enter the REPL after the main action.- @classmethod / @staticmethod
Methods bound to the class (
Introduced in 01A.6 Classes, Dataclasses and Enumscls) or to nothing — factories vs namespaced functions.- @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 (
Introduced in 04.10 Prompt Templates, Versioning and a Prompt Library{# cache-boundary #}) that separates a template's prefix from its suffix- Cache breakpoint
A marker (Anthropic
Introduced in 03.7 Token Counting, Cost Tracking and Prompt Cachingcache_control, OpenAIprompt_cache_breakpoint) that ends a cacheable prefix. Everything up to it can be written to and later read from the cache.- 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 hit ratio
Cached read tokens divided by total input tokens
Introduced in 11B.8 The Cost of Agents and Long Contexts, Prompt Caching per Provider, and the Cost of Running Evals- 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:
Introduced in 03.7 Token Counting, Cost Tracking and Prompt Caching5mor1hon Anthropic,30mor12hon OpenAI. A longer lifetime costs a higher write price.- 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
Introduced in 03.7 Token Counting, Cost Tracking and Prompt Cachingmax_tokens: 0; OpenAI usesprewarm: true.- 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-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
Introduced in 08F.9 RAG with LangChainnamespace; lives inlangchain-classic.- 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
Introduced in 08F.12 Human-in-the-Loop and Control Flowkey_funcand attlthat lets a node's result be reused, given a cache oncompile().- CachePolicy (Inspect)
The options of Inspect's response cache:
Introduced in 10B.12 Running Inspect Evals for Real: Models, Configuration, Concurrency, Caching, Errors and Eval Sets (optional)expiry(default one week),per_epoch(default on) and extrascopesadded to the key. Not the same as LangGraph'sCachePolicy.- 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 (
Introduced in 03.5 Tool Calling: The API Mechanicscall_id,tool_call_id,tool_use_id, Gemini'sid), so the provider can pair results with calls.- 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;
Introduced in 01A.10 Type Hints and Writing Readable CodeCallable[..., T]= any args.- 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
Introduced in 01C.2 Synchronous vs Asynchronous Programming and the asyncio Event LoopTask.cancelling(), incremented bycancel()and decremented byuncancel().- Cancellation counter (cancelling / uncancel)
A per-task count of cancellation requests that lets
Introduced in 01C.2 Synchronous vs Asynchronous Programming and the asyncio Event Loopasyncio.timeoutandTaskGrouptell their own cancellation from an outside one.- CancelledError
Raised inside a task at its next
Introduced in 01B.3 Async Python: async/await and the Event Loopawaitaftertask.cancel(); inheritsBaseException.- 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 (
Introduced in 07.2 Retrieval Strategies for RAGcandidate_k).- 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
Introduced in 09.4 Speech-to-TextTranscript/Segmentdata shape that every provider's response is parsed into, keeping downstream stages provider-agnostic.- 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
Introduced in 08E.3 Remote MCP: OAuth, Gateways and Many Serversresourcevalue- Canonical URL
The
Introduced in 14B.4 Writing and Learning in Public<link rel="canonical">tag telling search engines and aggregators which version of a piece of content is the original.- 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
Introduced in 12.1 Threat Modelling LLM Applicationsthreatmodel.py.- 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
Introduced in 08E.2 MCP in Depth: Primitives, Servers, Clients and Transports2026-07-28, per request, not once per connection- Capability probe
A small script that sends the exact features your app uses (
Introduced in 11C.6 Open-Weight and Local Modelsresponse_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)).- 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
Introduced in 01B.8 Testing with pytestloggingrecords for assertions.- 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
Introduced in 13B.1 Capstone Planning and Scopingscope_check.pyand scaffolds byscaffold.py.- 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 (
Introduced in 01A.2 Numbers, Strings and Textß→ss, Turkishİ→i+dot); prefer overlower()for matching.- 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
Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basicsa = b = value— one object, two names.- Chained comparison
Introduced in 01A.3 Control Flow and Functionsa < b < cmeaninga < b and b < c, middle evaluated once.- 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
Introduced in 05.9 Ingestion Pipelines and Incremental Updateschanges, GraphdeltaLink, replication slots).- 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 (
Introduced in 05.5 Cleaning and Normalizationfrom_bytes).- Chat model (LangChain)
An object (a
Introduced in 08F.5 Chat Models, Messages and Content BlocksBaseChatModelsubclass, such asChatOpenAI) that takes messages and returns anAIMessagethrough theRunnableinterface.- Chat template / generation config
The
Introduced in 02.1 Neural Network Basicsgeneration_config.jsonfile shipped with an open model, holding its default generation settings (such as temperature, top-p and end-of-reply tokens).- 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;
Introduced in 08F.6 Prompts, Output Parsers and Structured Outputinvokereturns aChatPromptValuethat chat models accept.- 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
Introduced in 08F.11 Persistence, Durable Execution and Memorycheckpoint_nsidentifying which graph or subgraph a checkpoint belongs to (""for the parent).- 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
Introduced in 08F.14 The Functional API and Streamingget_state-shaped snapshot per checkpoint; needs a checkpointer.- 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 (
Introduced in 10B.9 Inspect Datasets, Solvers and Task Configuration (optional)shuffle_choices), with a fixed integer seed (shuffle_choices=Trueis unseeded and changes on every run or retry), to break position bias; logged letters then refer to the shuffled order.- 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
Introduced in 05.10 Data Quality Checks[char_start, char_end)spans vs source length — detects content that never reached the index.- 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
Introduced in 05.9 Ingestion Pipelines and Incremental Updateschunk_ids so only changed chunks re-embed.- chunk_size and chunk_overlap
The maximum chunk length and the amount repeated between neighbours, both measured by
Introduced in 08F.9 RAG with LangChainlength_function(characters by default).- 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
Introduced in 10B.10 Inspect Scorers, Metrics, Epochs and the Statistics Inspect Reports (optional)ci()for accuracy.- 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
Introduced in 07.5 Citations and Attributioncite.pymodel: answer text + itsClaimCitations.- 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
Introduced in 07.5 Citations and Attributioncite.pymodel: one[n]marker bound to a claim span + evidence list.- ClaimEvidence
Introduced in 07.5 Citations and Attributioncite.pymodel: the quoted span expected inside a chunk.- 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
Introduced in 10B.3 Judges in DeepEval: Models, G-Eval, DAG and Custom MetricsRefusalClassifier), passing or failing only when the test case names an expected label.- 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 (
Introduced in 08F.3 Claude Agent SDKclaude-agent-sdk) and TypeScript library that runs the Claude Code agent as a child process, with its tools, permissions, hooks, subagents and sessions- 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;
Introduced in 08A.15 Coding and Computer-Use AgentsCLAUDE.mdcan importAGENTS.md.- 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
Introduced in 08F.3 Claude Agent SDKinterrupt()- Cleaning / normalization
Removing extraction noise and canonicalizing form while preserving content.
Introduced in 05.5 Cleaning and Normalization- Cleaning magnitude
Introduced in 05.10 Data Quality Checkslen(cleaned)/len(raw)per doc — detects over-cleaning that destroys signal.- Cleaning pipeline
Ordered pure-function steps with change log, dry-run, idempotency.
Introduced in 05.5 Cleaning and Normalization- Cleanup mode
The
Introduced in 08F.9 RAG with LangChainindexoption (None,incremental,full,scoped_full) that decides which stored chunks are deleted.- 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 (
Introduced in 03.2 Messages, Roles and Conversation Stateprevious_response_id, a conversation ID,previous_interaction_id).- 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
Introduced in 00.2 The Terminal and Shellpbcopy/pbpaste(macOS),xclip/wl-copy(Linux),clip/Set-Clipboard(Windows) — pipe text to/from the clipboard.- 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- close() versus unlink()
Introduced in 01C.7 Shared Memory and Inter-Process Communicationclose()releases one process's handle;unlink()removes the segment's name, once.- 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.
Introduced in 04.4 Structuring Prompts: XML, Markdown and Delimiters</document>) to break out of its wrapper early.- 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
Introduced in 10B.10 Inspect Scorers, Metrics, Epochs and the Statistics Inspect Reports (optional)stderr(cluster="key").- COALESCE/NULLIF/IFNULL
NULL-handling functions.
Introduced in 00.7 SQL Basics with SQLite- Code point
A character's Unicode number (e.g.
Introduced in 01A.2 Numbers, Strings and TextU+00E9);ord/chrconvert to and from it.- 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 (
Introduced in 01B.6 Data Validation with Pydantic"17"→17); happens in lax mode before constraint checks.- 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
Introduced in 01A.6 Classes, Dataclasses and Enums__len__,__iter__,__getitem__,__contains__— making an object quack like a built-in.- collections.abc interfaces
Introduced in 01A.10 Type Hints and Writing Readable CodeIterable,Iterator,Sequence,Mapping,Callable— behaviour contracts usable withisinstanceunsubscripted.- 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
Introduced in 10B.13 Inspect Logs, Analysis and Extending Inspect (optional)SampleSummaryorEvalModel, combined with+to choose what a log dataframe contains.- Column-major results
Chroma's query result shape: one list per result field (
Introduced in 06.5 Vector Databases: Choosing and Using Oneids,documents,distances, …) parallel to the query list, rather than one object per hit.- Column/field filter
Restricting a query clause to specific fields (FTS5
Introduced in 06.7 Keyword Search and BM25title:x, EStitle:x).- 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
Introduced in 08F.8 Tools and create_agentToolMessagefor the call it answers.- Command (LangGraph)
A return value (and a resume input) carrying a state
Introduced in 08F.10 LangGraph Fundamentalsupdate, agotoand optionally agraphtarget.- Command Palette
VS Code's searchable command launcher (
Introduced in 00.1 Setting Up Your Computer for DevelopmentCmd/Ctrl+Shift+P).- Command substitution
Introduced in 00.2 The Terminal and Shell$(cmd)— inserts a command's output as text.- Comment
Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics#to end-of-line note for humans.- 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
Introduced in 08F.6 Prompts, Output Parsers and Structured Outputprod) attached to a prompt commit, used to promote and roll back.- 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
Introduced in 03.2 Messages, Roles and Conversation Statecontext_managementorresponses.compact, which you pass back unchanged.- 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,
Introduced in 10B.1 The Eval Framework Track: DeepEval, Inspect AI and Your Setupinspect-k8s-sandboxandinspect-sandboxesare Inspect companions.- 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
Introduced in 10B.3 Judges in DeepEval: Models, G-Eval, DAG and Custom MetricsArenaTestCases that returns win counts per contestant- 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
Introduced in 08E.2 MCP in Depth: Primitives, Servers, Clients and Transportsinitializeonly if the server is not a modern one- 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 (
Introduced in 09.3 Image Generation and Editinglow/medium/high, defaulthigh), independent ofqualityand free.- 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
Introduced in 10B.5 DeepEval Tracing, Component-Level Evals and Agent Evaluation@observe,update_current_spanornext_*_span; component failures roll up into the golden's result.- 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
Introduced in 10B.3 Judges in DeepEval: Models, G-Eval, DAG and Custom Metricsmeasure()and combines their results, for example a cheap gate followed by a judge grade.- 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 (
Introduced in 01A.5 Comprehensions, Iterators and Generators[x for x in xs if c]).- 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
Introduced in 01A.3 Control Flow and Functionsx if cond else y— anifthat produces a value.- Conditional request
Introduced in 05.1 Data Sources, Formats and the Ingestion MindsetETag/If-None-MatchorLast-Modified/If-Modified-Sincefetches that get304 Not Modifiedfor unchanged content.- 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: ~
Introduced in 10A.2 Building Evaluation Datasets1.96·√(p(1−p)/n); the sizing argument.- 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
Introduced in 10B.5 DeepEval Tracing, Component-Level Evals and Agent Evaluation@observeboth feed spans through it.- config.json fields
Introduced in 02.4 Attention and Transformershidden_size,num_hidden_layers,num_attention_heads,num_key_value_heads,intermediate_size,vocab_size,max_position_embeddings.- ConfigDict / model_config
Class-level options:
Introduced in 01B.6 Data Validation with Pydanticextra,frozen,strict,str_strip_whitespace,validate_assignment,from_attributes,use_enum_values,validate_by_name/validate_by_alias(the olderpopulate_by_namespelling is still seen).- Configurable alternatives
A Runnable whose parts (fields or whole sub-Runnables) the caller can swap per call through
Introduced in 08F.7 Runnables and LCELconfig["configurable"].- Configurable model
An
Introduced in 08F.5 Chat Models, Messages and Content Blocksinit_chat_modelresult whose model and settings are chosen per call throughconfig["configurable"], controlled byconfigurable_fieldsandconfig_prefix.- 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,
Introduced in 10B.9 Inspect Datasets, Solvers and Task Configuration (optional)task_with(), environment variables (INSPECT_EVAL_*, read by the CLI), theneval()arguments or CLI flags.- 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
Introduced in 03.3 Streaming Responsesbreakwithoutwith), keeping its pooled connection until the pool is exhausted.- 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- Consent flag
A field recording whether a user's data may be used for evaluation
Introduced in 11A.4 Production Traces into Eval Datasets- Console script / entry point
A
Introduced in 01B.10 Logging, Debugging and Packaging: Putting the Toolkit Together[project.scripts]mapping that installs an executable callingmodule:function— howaitoolkitlands on PATH.- Consolidation
Merging several small tools on one resource into fewer, more capable tools (often via an
Introduced in 08A.6 Designing Tools Models Can Useactionparameter).- Constant (convention)
Introduced in 01A.1 Running Python: Programs, the REPL and Syntax BasicsUPPER_CASEname intended never to be reassigned.- Constant folding
A compile-time optimisation where the interpreter precomputes expressions built only from literals (e.g.
Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics"op" + "en"becomes the single constant"open"), which is whyiscomparisons on such values are meaningless.- 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 (
Introduced in 00.7 SQL Basics with SQLiteNOT NULL,UNIQUE,CHECK,FK,PK).- 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
Introduced in 08F.5 Chat Models, Messages and Content BlocksAIMessage.- 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
Introduced in 11A.1 Tracing and Observability for LLM Applicationsgen_ai.input/output.messagesattributes holding prompt/completion text — off by default.- 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
Introduced in 00.6 HTTP, REST and JSONAcceptandContent-Typeheaders.- Content Provenance API
OpenAI's
Introduced in 09.3 Image Generation and EditingPOST /v1/content_provenance_checksfor verifying C2PA/SynthID signals.- 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:
Introduced in 03.3 Streaming Responsescontent_block_start/_delta/_stopper block insidemessage_start…message_stop.- 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
Introduced in 00.6 HTTP, REST and JSONapplication/jsonortext/event-stream.- 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
Introduced in 09.7 Realtime Voice Agentssession.instructions/thinking/commentary.appendfor mid-call context.- 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
Introduced in 01A.8 Errors, Exceptions, Debugging and Logging__enter__/__exit__used viawith, guaranteeing cleanup on success and exception.- 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
Introduced in 10B.5 DeepEval Tracing, Component-Level Evals and Agent Evaluationcontextvars; it survivesasyncio.gatherandasyncio.to_threadbut not a plain thread-pool call, which silently loses the span unless the context is copied.- 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
Introduced in 07.1 RAG Architecture: From Question to Grounded Answer[n]for citation, and the assembled token-budgeted set of them.- 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 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:
Introduced in 01A.3 Control Flow and Functionsif, loops,match.- 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
Introduced in 03.1 The Provider APIs and Your First Callsoutput_textor.textthat extracts the text from a response.- Conventional Commits
Introduced in 00.3 Git Fundamentalstype(scope): subjectmessage convention for machine-readable history.- 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
Introduced in 10B.3 Judges in DeepEval: Models, G-Eval, DAG and Custom MetricsConversationalTestCase, returning one score for the conversation rather than one per turn.- 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
Introduced in 10B.2 DeepEval Fundamentals: Test Cases, Metrics and the Test RunnerTurns plus fields such aschatbot_role,scenarioandexpected_outcome.- Conversations API
OpenAI's durable server-side conversation object, whose items you can add, list and delete, and which
Introduced in 03.2 Messages, Roles and Conversation Stateresponses.create(conversation=...)reads and updates automatically.- 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
Introduced in 10B.5 DeepEval Tracing, Component-Level Evals and Agent EvaluationConversationalTestCase.expected_tools, optionally pinned to assistant turns withToolCall.turn, without calling a judge; the final score is the mean of the per-turn checks.- 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,
Introduced in 06.8 Hybrid Searchα·dense + (1−α)·lexical, over normalised scores; Bruch et al. (2023) found it beat RRF when tuned on a few labelled queries.- 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
Introduced in 01B.3 Async Python: async/await and the Event Loopawait; the loop can't preempt.- 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 (
Introduced in 13A.4 AI UX III: Failure States, Edge Cases and Inclusive Designcopy_catalog.py) that all user-facing failure copy resolves through.- Copy rule (DeepEval)
In their default async mode,
Introduced in 10B.2 DeepEval Fundamentals: Test Cases, Metrics and the Test Runnerevaluate()andassert_test()(and thereforedeepeval 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.- 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
Introduced in 01A.11 Coming from PHP, JavaScript or Java: Side by Sideasync defcall returns; it does nothing until awaited or scheduled, unlike an eager JS Promise.- Coroutine function / coroutine object
An
Introduced in 01B.3 Async Python: async/await and the Event Loopasync deffunction / the paused computation calling it returns, before anything runs.- 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
Introduced in 03.8 Errors, Rate Limits, Timeouts and RetriesX-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).- 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
Introduced in 01B.7 FastAPI Basics: Building a Small API*with credentials.- 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
Introduced in 06.3 Similarity Metrics and Nearest-Neighbour Search1 − cosine similarity; returned by pgvector<=>, Chroma'scosinespace, sqlite-vec'svec_distance_cosineand Annoy'sangular— lower means more similar despite the cosine-sounding name.- cosine similarity
Angle-based similarity
Introduced in 01B.11 NumPy and pandas Essentials for AI Work(a·b)/(‖a‖·‖b‖)in [-1, 1]; equals the dot product for unit-normalized vectors.- 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
Introduced in 11A.1 Tracing and Observability for LLM Applicationssum(cost_usd)/count(outcome=ok)— retries/refusals/failures still bill, so success is the denominator.- 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
Introduced in 05.10 Data Quality Checkslen(chunks) == len(vectors)— detects partial index writes.- 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- Crash recovery
Rebuilding a
Introduced in 10B.12 Running Inspect Evals for Real: Models, Configuration, Concurrency, Caching, Errors and Eval Sets (optional)startedlog from its file and the sample buffer- 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
Introduced in 08F.4 The LangChain Ecosystem and Your SetupAgentExecutorand the LangGraph prebuiltcreate_react_agent.- create_retriever_tool
A helper in
Introduced in 08F.9 RAG with LangChainlangchain_core.toolsthat wraps a retriever as a tool, optionally returning documents as an artifact.- 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
Introduced in 12.8 Red Teaming and Security TestingLLM06:2025toLLM03:2026- Crypto-shredding
Erasing data by destroying the key that encrypts it
Introduced in 08B.5 Memory Failure Modes, Context Rot, Production State Stores and AGENTS.md-style Files- 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
Introduced in 01A.9 Files, Paths, JSON and CSVcsv.Error.- 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
Introduced in 03.3 Streaming Responsesmessage_delta; take the latest value, never add them.- 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
Introduced in 00.8 Reading API Documentationcursor/next_cursortoken rather than page numbers ([glossary](glossary.md)).- 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
Introduced in 08F.7 Runnables and LCELdispatch_custom_eventoradispatch_custom_event, delivered through the callback system.- Custom exception
A user-defined exception class, usually under an
Introduced in 01A.8 Errors, Exceptions, Debugging and LoggingAppErrorroot.- Custom metric (DeepEval)
A
Introduced in 10B.3 Judges in DeepEval: Models, G-Eval, DAG and Custom MetricsBaseMetricorBaseConversationalMetricsubclass you write, implementingmeasure,a_measure, a threshold and a__name__, which DeepEval runs like any built-in metric.- Custom model provider (@modelapi)
A
Introduced in 10B.12 Running Inspect Evals for Real: Models, Configuration, Concurrency, Caching, Errors and Eval Sets (optional)ModelAPIsubclass registered with@modelapi(name=...)so any system (an internal endpoint, evalkit'scall_model) can be evaluated asname/modelwith Inspect's retries, concurrency and caching.- Custom provider (`@modelapi`)
Your own
Introduced in 10B.12 Running Inspect Evals for Real: Models, Configuration, Concurrency, Caching, Errors and Eval Sets (optional)ModelAPIsubclass registered by name, so any system can be evaluated asname/model- Custom workflow
A hand-built
Introduced in 08F.13 Subgraphs and Multi-Agent SystemsStateGraphmixing deterministic nodes, model nodes and agents.- 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
Introduced in 01C.6 Python Memory Managementgcmechanism that finds and frees unreachable cycles among container objects, organized in generations.- CycloneDX
An SBOM specification, standardised as ECMA-424
Introduced in 14A.7 Data, Vendor and Supply-Chain Governance, plus NIST AI RMF and ISO/IEC 42001 Awareness
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
Introduced in 03.3 Streaming Responsesdata: [DONE]line that ends Chat Completions streams; parsers must notjson.loadsit.- DAG
Directed acyclic graph — the shape of commit history.
Introduced in 00.3 Git Fundamentals- DAG metric (DeepEval)
Introduced in 10B.3 Judges in DeepEval: Models, G-Eval, DAG and Custom MetricsDAGMetric: 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.- 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
Introduced in 03.6 Images, PDFs and Filesdata:<media type>;base64,<data>; OpenAI and OpenRouter use it for images 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
Introduced in 01A.6 Classes, Dataclasses and Enums@dataclassgenerates__init__/__repr__/__eq__from annotated fields.- 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.
Introduced in 12.2 Prompt Injection: Direct and Indirect^before each space) so instruction-shaped spans look visibly different.- 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
Introduced in 11C.3 Fallbacks, Gateways and Reliabilitymin(need, remaining × fraction).- 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 (
Introduced in 00.9 Working Like an Engineer: Debugging, Asking for Help and Learning Habitspdb, VS Code debugger) that pauses execution and inspects live state.- 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;
Introduced in 01A.3 Control Flow and Functions@decois sugar forfn = deco(fn).- Decorator factory
Introduced in 01A.3 Control Flow and Functions@retry(times=3)— a function returning a decorator.- Dedicated Image API (OpenRouter)
Introduced in 09.3 Image Generation and EditingPOST /api/v1/images+/api/v1/images/modelsdiscovery — normalized multi-vendor image generation.- 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 (
Introduced in 08F.4 The LangChain Ecosystem and Your Setupdeepagents) with planning, a virtual filesystem, subagents and context management, built on LangChain and LangGraph.- Deep copy
Recursive copy of the whole object graph (
Introduced in 01A.4 Core Data Structures: Lists, Tuples, Dictionaries and Setscopy.deepcopy).- Deep learning
Machine learning using neural networks with many layers.
Introduced in 02.1 Neural Network Basics- Deep link
A stable URL built from canonical source URI plus a locator (page, section anchor, timestamp) for citations.
Introduced in 05.8 Metadata Design- 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
Introduced in 04.12 Prompt Hub, Research Findings and Model Notesdeepagentspackage is covered in 08F.17).- `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,
Introduced in 10B.2 DeepEval Fundamentals: Test Cases, Metrics and the Test Runnerevaluate(),assert_test()and thedeepevalcommand line.- DeepEval cache
Introduced in 10B.2 DeepEval Fundamentals: Test Cases, Metrics and the Test Runner.deepeval/.deepeval-cache.json: stored metric results keyed by six test-case fields and a list of metric settings, reused only with-corCacheConfig(use_cache=True); custom metric parameters are not in the key.- 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
Introduced in 10B.5 DeepEval Tracing, Component-Level Evals and Agent Evaluationinspectextra.- 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
Introduced in 10B.7 DeepEval in Production: Red Teaming, CI/CD, Prompt Optimization and Confident AIred_team(),RedTeamer,AgenticRedTeamer,Guardrailsand the vulnerabilities, attacks and frameworks; thedeepeval red-teamcommand runs it from YAML or scans code.- DeepEvalBaseLLM
DeepEval's abstract base class for judge models; a subclass implements
Introduced in 10B.3 Judges in DeepEval: Models, G-Eval, DAG and Custom Metricsload_model,generate,a_generateandget_model_name, and can then judge any metric viamodel=.- DeepTeam
The former separate open-source package for red teaming and guardrails; it was folded into DeepEval 4.3.6 as
Introduced in 10B.7 DeepEval in Production: Red Teaming, CI/CD, Prompt Optimization and Confident AIdeepeval.red_teamand is deprecated from 30 January 2027.- 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
Introduced in 08F.12 Human-in-the-Loop and Control FlowConnectionError, 5xxhttpxerrors, everyrequests.HTTPErrorand any unknown exception; skips probable programming errors andOSError.- defaultdict
Dict that auto-creates missing keys via a factory (
Introduced in 01A.4 Core Data Structures: Lists, Tuples, Dictionaries and Setsint,list, ...).- 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 loading / tool search
Keeping tool definitions out of the initial context (
Introduced in 03.5 Tool Calling: The API Mechanicsdefer_loading: true) until a tool-search tool loads the ones the model needs.- 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- del
Remove a name binding.
Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics- 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,
Introduced in 04.4 Structuring Prompts: XML, Markdown and Delimiters---,###, code fences, triple quotes.- 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
Introduced in 13B.6 Shipping and Operating Your Capstone: Launch, Demo and Iterateai_product/demo_script.py.- 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
Introduced in 01B.7 FastAPI Basics: Building a Small APIyieldcleanup anddependency_overrides.- Dependency cooldown
A resolver or bot setting that ignores releases newer than N days (uv
Introduced in 12.7 Securing RAG Data, Keys and the AI Supply Chainexclude-newer, pip--uploaded-prior-to, Dependabotcooldown, RenovateminimumReleaseAge) so a malicious upload is usually yanked before you can install it; it buys time, it does not detect malware.- Dependency group
A named set of requirements installed on demand (
Introduced in 01B.1 Project Setup with uv: Environments, Dependencies and Toolingdev,docs) — PEP 735.- 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
Introduced in 01B.8 Testing with pytestDependsin tests.- 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
Introduced in 08F.17 Finish Learning from the Official DocsDeprecationWarning(or subclass) that a library raises for an API on its way out, naming the replacement; made loud with warnings filters and test configuration.- 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
Introduced in 10A.2 Building Evaluation Datasets1 + (m − 1)ρ: how much clustering inflates variance, so grouped cases are worth fewer independent cases than their count.- 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
Introduced in 01B.10 Logging, Debugging and Packaging: Putting the Toolkit Togetherpython -X dev/PYTHONDEVMODE=1: extra runtime checks — faulthandler on fatal errors, asyncio debug, more warnings — for development only.- 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
Introduced in 03.2 Messages, Roles and Conversation Statesystemmessages on reasoning models.- 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
Introduced in 01A.4 Core Data Structures: Lists, Tuples, Dictionaries and Setskeys()/values()/items()reflection of a dict.- 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
Introduced in 01B.10 Logging, Debugging and Packaging: Putting the Toolkit TogetherbasicConfig.- 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;
Introduced in 00.2 The Terminal and Shell-ugives unified (patch-style) output, exit 1 on differences.- 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:
Introduced in 01A.2 Numbers, Strings and TextSequenceMatcher.ratio()similarity andget_opcodes()edit script.- 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
Introduced in 01B.2 Environment Variables, Configuration and Secrets.envrc.- 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
Introduced in 01B.6 Data Validation with PydanticUnion[...]+Field(discriminator="kind"): variants dispatched by a tag field — the shape provider SDKs use for tool calls/content blocks.- 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
Introduced in 03.5 Tool Calling: The API Mechanicsevalor dynamic lookups.- Dispatch tool
One tool (often
Introduced in 08F.13 Subgraphs and Multi-Agent Systemstask) that takes a specialist name and a task, instead of one tool per subagent.- 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 (
Introduced in 06.5 Vector Databases: Choosing and Using One<->L2,<#>negative inner product,<=>cosine distance,<+>L1,<~>Hamming,<%>Jaccard) used inORDER BYfor nearest-neighbour queries.- 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
Introduced in 01A.2 Numbers, Strings and Text(a // b, a % b)as a tuple — quotient and remainder in one call.- 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
Introduced in 08E.2 MCP in Depth: Primitives, Servers, Clients and TransportsOriginand binding to localhost- 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
Introduced in 08F.17 Finish Learning from the Official Docsdocs-notes.mdof pages read, with date, package versions and what differed, so you can tell later what has gone stale.- 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
Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics"""..."""string as the first statement of a module/function/class, shown byhelp().- Doctest
Introduced in 01A.3 Control Flow and Functions>>>examples inside a docstring that thedoctestmodule runs as tests.- Document
LangChain's unit of data:
Introduced in 08F.9 RAG with LangChainpage_content(text),metadata(a dict) and an optionalid.- 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
Introduced in 03.6 Images, PDFs and Filestitle,context,citationsandcache_control.- Document compressor
An object with
Introduced in 08F.9 RAG with LangChaincompress_documents(documents, query)that filters, shortens or reranks retrieved documents.- 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
Introduced in 08F.9 RAG with LangChainDocuments; you implementlazy_load, andload,aloadandalazy_loadfollow.- 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
Introduced in 00.1 Setting Up Your Computer for Development.), e.g..env,.gitignore.- 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
Introduced in 11A.5 LangSmith, Testing and Deploymentmultitask_strategy:enqueue,reject,interruptorrollback.- 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
Introduced in 05.9 Ingestion Pipelines and Incremental Updatesmanifest_onlychunks from the manifest, deletestore_onlyorphans (--repairin the toy).- 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
Introduced in 13B.2 Capstone Build A: The Support Copilotexecute=falsethat returns what *would* happen, so a human approves a checked preview, not raw model output.- 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 (
Introduced in 01B.11 NumPy and pandas Essentials for AI Workfloat32,int64,str,bool...).- 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
Introduced in 01A.6 Classes, Dataclasses and Enums__x__method Python calls implicitly for syntax likeprint(),==,len().- durability
A run option (
Introduced in 08F.14 The Functional API and Streaming"sync","async","exit") that controls when checkpoints are written.- Durability mode
The
Introduced in 08F.11 Persistence, Durable Execution and Memorydurabilityargument (exit,async,sync) that sets when checkpoints are written.- 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
Introduced in 08E.3 Remote MCP: OAuth, Gateways and Many Servers2026-07-28- 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
Introduced in 08A.8 Provider Built-in and Server-Side Toolsweb_search_20260209+/web_fetch_20260209+, Gemini built-ins), cutting input-token cost.- 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
Introduced in 01B.2 Environment Variables, Configuration and SecretsKEY=valuefile loaded into the process environment at start-up for development; never committed.- .env.example
The committed template listing variable names without values.
Introduced in 01B.2 Environment Variables, Configuration and Secrets- `.env` loading
Inspect finds a
Introduced in 10B.12 Running Inspect Evals for Real: Models, Configuration, Concurrency, Caching, Errors and Eval Sets (optional).envby searching up from the working directory; it never overrides variables already in the environment- .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
Introduced in 08F.14 The Functional API and StreamingPregel).- __eq__ / __hash__
Equality and hashability — must agree; defining
Introduced in 01A.6 Classes, Dataclasses and Enums__eq__alone makes the object unhashable.- 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
Introduced in 01C.2 Synchronous vs Asynchronous Programming and the asyncio Event Loopcreate_task(Python 3.12, opt-in viaasyncio.eager_task_factory) and is only scheduled if it actually suspends.- Early stopping (Inspect)
Skipping sample-epochs based on results so far, through an object implementing the
Introduced in 10B.12 Running Inspect Evals for Real: Models, Configuration, Concurrency, Caching, Errors and Eval Sets (optional)EarlyStoppingprotocol on the task; it needs scheduling that lets evidence arrive first.- 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 (
Introduced in 08F.10 LangGraph FundamentalsCommand,Send).- 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 check
A test that counts network connections a program attempts
Introduced in 14A.7 Data, Vendor and Supply-Chain Governance, plus NIST AI RMF and ISO/IEC 42001 Awareness- 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
Introduced in 08E.1 The Model Context Protocol (MCP)Clientconstructor callback that answerselicitation/createentries inside MRTRinputRequests; the SDK then retries the call automatically.- EmailStr
Email-validated string; requires the
Introduced in 01B.6 Data Validation with Pydanticpydantic[email]extra (email-validator).- 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 (
Introduced in 06.1 Embedding Models and APIs in Practicemodel_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.- 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
Introduced in 08F.9 RAG with LangChainembed_documents(many texts) andembed_query(one question) that every embedding class implements.- 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
Introduced in 10B.13 Inspect Logs, Analysis and Extending Inspect (optional)empty_attempt()solver, scored by the task's own scorers to define what a failure looks like.- 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
Introduced in 03.2 Messages, Roles and Conversation Statereasoningitems in stateless mode, which you resend to keep continuity.- Encrypted reasoning item
OpenAI's opaque reasoning output (an
Introduced in 02.8 Reasoning Modelsencrypted_contentfield on reasoning items) that you pass back to continue the model's reasoning across calls, especially in stateless mode.- EncryptedSerializer
A serializer wrapper that encrypts checkpoints at rest (AES via
Introduced in 08F.11 Persistence, Durable Execution and Memoryfrom_pycryptodome_aes).- 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 (
Introduced in 10B.13 Inspect Logs, Analysis and Extending Inspect (optional)[project.entry-points.inspect_ai]) that makes Inspect import a module at startup, registering the package's tasks, scorers, providers, hooks and other extensions.- entrypoint.final
A return wrapper,
Introduced in 08F.14 The Functional API and Streamingentrypoint.final(value=, save=), that returns one value to the caller and saves another forprevious.- Enum / member
A fixed vocabulary of named values; members have
Introduced in 01A.6 Classes, Dataclasses and Enums.nameand.value.- Enum mode
Gemini's
Introduced in 03.4 Structured Outputtext/x.enumresponse type forgenerate_content, which returns one bare enum value instead of a JSON object.- Enum/StrEnum/IntEnum
Named constant sets;
Introduced in 01A.11 Coming from PHP, JavaScript or Java: Side by SideStrEnummembers equal their string value.- enumerate
Yields
Introduced in 01A.3 Control Flow and Functions(index, item)pairs in a loop.- `env_ignore_empty`
Introduced in 01B.2 Environment Variables, Configuration and SecretsSettingsConfigDictoption treating empty-string environment variables as unset so field defaults apply.- env_nested_delimiter
Introduced in 01B.2 Environment Variables, Configuration and Secrets__separator mappingA__Benv vars into nested models.- 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
Introduced in 01B.1 Project Setup with uv: Environments, Dependencies and Tooling; sys_platform == '...'condition on a requirement.- 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)- Epoch-major scheduling
Running every case once before any case is repeated
Introduced in 11B.8 The Cost of Agents and Long Contexts, Prompt Caching per Provider, and the Cost of Running Evals- 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
Deleting one person's data from every store that holds it
Introduced in 14A.7 Data, Vendor and Supply-Chain Governance, plus NIST AI RMF and ISO/IEC 42001 Awareness- 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:
Introduced in 11A.2 Metrics, Dashboards, SLOs and Alerting(1 - SLO) × window.- Error envelope
The uniform
Introduced in 00.8 Reading API Documentation{"error": {...}}shape APIs use for failure responses.- Error inside a 200 (FAILED outcome)
A
Introduced in 03.8 Errors, Rate Limits, Timeouts and Retries200 OKwhose body reports a failure (status: "failed", anerrorobject); retry only when its own code is transient.- 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 (
Introduced in 03.5 Tool Calling: The API Mechanicsis_error, anerrorkey or error text), instead of raising.- 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
Introduced in 08F.12 Human-in-the-Loop and Control FlowCommand.- Errored span (DeepEval)
A traced span whose function raised an exception; its status is
Introduced in 10B.5 DeepEval Tracing, Component-Level Evals and Agent EvaluationERROREDand 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.- errors=
Decode/encode recovery mode:
Introduced in 01A.2 Numbers, Strings and Textstrict,replace,ignore,backslashreplace(+xmlcharrefreplace,namereplaceon encode).- 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 rate
The share of runs handed to a human
Introduced in 11A.3 Latency Percentiles, Error Classification, Audit Logs, Session Replay, Dashboards and SLOs- 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
Introduced in 03.11 Building a Provider-Agnostic ClientRequest.extrakeyed by provider andResponse.raw.- 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 budget
A dedicated spending cap for evals, separate from production
Introduced in 11B.8 The Cost of Agents and Long Contexts, Prompt Caching per Provider, and the Cost of Running Evals- Eval call count
Introduced in 11B.8 The Cost of Agents and Long Contexts, Prompt Caching per Provider, and the Cost of Running Evalscases x epochs x trials x (1 + judged metrics)- Eval case / case_id
The
Introduced in 07.9 Evaluating RAGdocs_qa/evalschema fields: one labelled test instance; the chunks that should reach the context (span-labelled upstream); correct behaviour is refusal; a partial answer is acceptable.- 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;
Introduced in 10B.1 The Eval Framework Track: DeepEval, Inspect AI and Your Setupevalkitis a small one you wrote.- Eval gate
A policy that turns an evalkit run directory into a blocking
Introduced in 11C.2 CI/CD for Prompts, Models and EvalsFAIL, advisoryWARNorPASSusingGateThresholdsand a baseline run.- 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 (
Introduced in 10B.3 Judges in DeepEval: Models, G-Eval, DAG and Custom Metricsllm,hybrid,system_one) that decides whether an LLM judge or the paid Jev decision model makes a metric's yes/no decisions.- 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;
Introduced in 10B.12 Running Inspect Evals for Real: Models, Configuration, Concurrency, Caching, Errors and Eval Sets (optional)inspect eval-setexits 1 when tasks remain incomplete.- 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 (
Introduced in 10B.12 Running Inspect Evals for Real: Models, Configuration, Concurrency, Caching, Errors and Eval Sets (optional)inspect eval-retry) that finishes a failed or crashed task in a new log with the same task id, reusing its completed samples.- EvalExample
The Pydantic schema for one eval case:
Introduced in 10A.2 Building Evaluation Datasetsexample_id,inputs,expected,split,tags,difficulty,language,rubric,provenance,notes.- evalkit
This module's shared eval package:
Introduced in 10A.1 Why Evals Matter: The Evaluation Mindsetcore.pyin 10A.1,dataset.py(10A.2),scorers.py(10A.3),judges.py(10A.4),runner.py(10A.8).- 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`
Introduced in 10B.5 DeepEval Tracing, Component-Level Evals and Agent EvaluationEvaluationDataset'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.- 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
Introduced in 10B.2 DeepEval Fundamentals: Test Cases, Metrics and the Test RunnerEvaluationResultofTestResults, each with per-metricMetricData.- 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
Introduced in 10B.3 Judges in DeepEval: Models, G-Eval, DAG and Custom Metricscriteriaor fixed by you withevaluation_steps, which keeps the metric identical across runs.- 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
Introduced in 11A.5 LangSmith, Testing and Deploymentrun,example,inputs,outputs,reference_outputs.- 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
Introduced in 01B.10 Logging, Debugging and Packaging: Putting the Toolkit Togetherhttpxclient for wire-level logging, monitoring or tracing.- Event loop
The scheduler that runs
Introduced in 01A.11 Coming from PHP, JavaScript or Java: Side by Sideasync/awaitcoroutines cooperatively.- Event protocol
The small set of typed events your own server sends to its clients (
Introduced in 03.3 Streaming Responsesdelta,usage,error,done…), independent of any provider.- 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
Introduced in 08F.8 Tools and create_agentstream_events(version="v3")API that exposes typed projections (messages,tool_calls,values, ...) of an agent run.- 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
Introduced in 03.3 Streaming ResponsesLast-Event-ID.- 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
Introduced in 07.4 Grounded Generation: Prompts, Context Assembly and Abstentionpassage_id+quotepairs that make an answer verifiable.- 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
Introduced in 07.2 Retrieval Strategies for RAGCachedRetriever: memoises(query, k, filters)→ hits with TTL; filters carry the ACL scope.- 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 (
Introduced in 08F.6 Prompts, Output Parsers and Structured OutputLengthBased,SemanticSimilarity,MaxMarginalRelevance, or custom).- 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
Introduced in 01A.8 Errors, Exceptions, Debugging and Loggingraise ... from e("direct cause").- Exception handler
Introduced in 01B.7 FastAPI Basics: Building a Small API@app.exception_handler(...)— maps exception types to custom responses (your error envelope).- Exception hierarchy
Introduced in 01A.8 Errors, Exceptions, Debugging and LoggingBaseException→Exception→ specific classes likeValueError,KeyError.- 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
Introduced in 01B.8 Testing with pytestpytest.raises, with.type/.value/.tb.- `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;
Introduced in 00.2 The Terminal and Shell$?holds the last one (0 = success).- 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- Expired vs deleted
Logically no longer returned vs physically removed
Introduced in 08B.5 Memory Failure Modes, Context Rot, Production State Stores and AGENTS.md-style Files- 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
Introduced in 03.7 Token Counting, Cost Tracking and Prompt CachingCachedContentobject that you create, use by name, extend and delete, paying storage per hour. Not available in Interactions or on Gemini 4 Argon and later.- 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 (
Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics2 + 3,len(x)).- 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
Introduced in 08F.8 Tools and create_agentwrap_model_callreturn type that carries both the model response and aCommandwith state updates.- 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
Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard LibraryEXTERNALLY-MANAGEDfile (PEP 668) — typically a distro system Python — wherepiprefuses global installs so OS packages stay intact; the fix is a venv.- 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
Introduced in 01A.9 Files, Paths, JSON and CSVDictWriterpolicy for unexpected dict keys:"raise"(default) or"ignore".- 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
Introduced in 01B.6 Data Validation with Pydanticbefore/after/wrap/plainmodes.- __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
Introduced in 01A.2 Numbers, Strings and Textfthat evaluates{expr}(and{expr:spec}) inline at runtime; the modern default for formatting 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
Introduced in 03.11 Building a Provider-Agnostic Clientbeforehook, and anafterhook withfail_closed = True; the opposite of an *observer*, which is contained. See also [Fail closed](#fail-closed).- 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:
Introduced in 10B.12 Running Inspect Evals for Real: Models, Configuration, Concurrency, Caching, Errors and Eval Sets (optional)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.- fail_on_refusal
A generation setting that turns a provider refusal (
Introduced in 10B.12 Running Inspect Evals for Real: Models, Configuration, Concurrency, Caching, Errors and Eval Sets (optional)stop_reason="content_filter") into a sample error instead of a scored, usually wrong, answer.- 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 gallery
The table mapping each failure mode to what the user sees, its detection signal, automatic handling and review threshold.
Introduced in 09.2 Document Understanding with Vision Models- 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
Introduced in 13A.4 AI UX III: Failure States, Edge Cases and Inclusive DesignUserMessage.- 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.
Introduced in 01B.8 Testing with pytestScriptedBackend).- 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
Introduced in 08F.7 Runnables and LCELFakeListChatModelorGenericFakeChatModelthat returns scripted replies without a provider.- 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)
Introduced in 10B.2 DeepEval Fundamentals: Test Cases, Metrics and the Test RunnerFakeJudge(fake_judge.py), the DeepEval track's keyless stand-in judge: aDeepEvalBaseLLMsubclass 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 asevalkit's function-stylerag_eval.ScriptedJudge(10A.6) oronline.FakeJudge(10A.9).- 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
Introduced in 08F.7 Runnables and LCELwith_fallbackstries, with the same input, when the first raises a handled exception.- 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
Introduced in 03.11 Building a Provider-Agnostic Clientfailed) with a scripted server and a fake clock.- 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- Featured section
LinkedIn profile area for pinned posts, articles, links and media.
Introduced in 14B.5 Résumé, LinkedIn and the Job Search- 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
Introduced in 05.3 Parsing HTML, Web Pages and Office Files<link rel="alternate">in<head>.- 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
Introduced in 11A.5 LangSmith, Testing and Deploymentkey, a numericscoreor categoricalvalue, and an optional comment.- 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
Introduced in 10B.9 Inspect Datasets, Solvers and Task Configuration (optional)Samplefields, including which columns become metadata or a frozen Pydantic model that validates them.- 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 (
Introduced in 01C.7 Shared Memory and Inter-Process Communicationfcntl.flockon Unix); released by the OS if the holder dies.- File Search (OpenAI)
OpenAI's
Introduced in 07.7 Managed RAG: Provider Tools, Platforms and Frameworksfile_searchResponses tool + vector stores: upload files, model retrieves and cites.- File Search store (Gemini)
Google's
Introduced in 07.7 Managed RAG: Provider Tools, Platforms and Frameworksfile_search_storescontainer with a selectable embedding model.- File state
A Gemini uploaded file's processing status,
Introduced in 03.6 Images, PDFs and FilesPROCESSING,ACTIVEorFAILED; onlyACTIVEfiles can be used in requests.- file-parser plugin
OpenRouter's PDF processing option, choosing between the
Introduced in 03.6 Images, PDFs and Filesnative,cloudflare-ai(free) andmistral-ocr(paid, also on BYOK) engines.- 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
Introduced in 07.5 Citations and Attributionfile_citationis file-level (file_id, filename, char index);url_citationbinds an answer span to a web URL (OpenAI, Gemini Interactions, OpenRouter).- 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
Introduced in 01B.10 Logging, Debugging and Packaging: Putting the Toolkit Togetherlogging.Filterthat drops a record or mutates it — attaching a request ID or scrubbing secrets — before formatting.- Filter field map
The explicit schema-field → metadata-key table deciding which extracted filters become
Introduced in 07.3 Query Understanding, Rewriting and Expansionsearch()predicates.- 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
Introduced in 03.3 Streaming Responseseager_input_streamingoption: tool input streams without server-side buffering or validation, so it arrives sooner but may be invalid JSON.- 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.
Introduced in 08A.2 The Tool Loop: From One Round Trip to an Agentsubmit_answer) whose successful call ends the loop with its output.- 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:
Introduced in 01B.8 Testing with pytestfunction/class/module/package/session.- Flag / IntFlag
Enums whose members combine bitwise (
Introduced in 01A.6 Classes, Dataclasses and EnumsREAD \| WRITE).- 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
Introduced in 10B.2 DeepEval Fundamentals: Test Cases, Metrics and the Test Runnerflaky=True: its failure is reported but cannot fail the test case or the build.- 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
Introduced in 01A.2 Numbers, Strings and Text//rounds down;%returns a result with the divisor's sign.- 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- for/else
Introduced in 01A.11 Coming from PHP, JavaScript or Java: Side by Sideelseon a loop runs only if nobreakoccurred.- for: duration
How long a condition must hold before an alert fires — filters flapping.
Introduced in 11A.2 Metrics, Dashboards, SLOs and Alerting- Forbid wins
An explicit forbid overrides any permit
Introduced in 14A.6 Agent Inventory, Risk and Autonomy Classification, and Policy-as-Code- 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
Introduced in 03.5 Tool Calling: The API Mechanicstool_choiceset to "required"/"any" or a named tool.- 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
Introduced in 08F.11 Persistence, Durable Execution and Memoryupdate_stateand resuming on a new branch.- 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
Introduced in 08F.6 Prompts, Output Parsers and Structured Outputget_format_instructions()that tells the model how to shape its reply; part of your prompt and its token cost.- 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
Introduced in 01A.2 Numbers, Strings and Text:...mini-language inside f-string braces controlling fill/alignment/sign/width/precision/type, e.g.{x:>10.2f}.- Formatter (logging)
Converts a
Introduced in 01B.10 Logging, Debugging and Packaging: Putting the Toolkit TogetherLogRecordinto output text or bytes — plain text for humans or JSON for machines.- 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/
Introduced in 01A.10 Type Hints and Writing Readable Code__future__on ≤3.13.- 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;
Introduced in 01A.2 Numbers, Strings and TextFraction(1,3)stays exactly one third.- 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
Introduced in 01C.5 The Global Interpreter Lock (GIL)python3.14t.- 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
Introduced in 07.2 Retrieval Strategies for RAGlatest_only/as_offilter dicts built byfreshness_filters().- 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
Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)exec()'s behaviour of keeping the end of output and dropping the beginning once output exceeds 10 MiB.- 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
Introduced in 01A.6 Classes, Dataclasses and Enums__hash__for free — the value-object pattern.- 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
Introduced in 01A.9 Files, Paths, JSON and CSVos.fsyncforces buffered file contents (and, on POSIX, a directory fd) to stable storage — the extra step that makes an atomic rename survive a machine crash.- ftfy
Library that repairs mojibake and Unicode glitches (
Introduced in 05.5 Cleaning and Normalizationfix_text,fix_and_explain).- FTS5
SQLite's built-in full-text search virtual table.
Introduced in 00.7 SQL Basics with SQLite- 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
Introduced in 09.7 Realtime Voice Agentsfunction_callitem; your code runs it and returnsfunction_call_output.- Function colouring
Once you
Introduced in 01B.3 Async Python: async/await and the Event Loopawait, everything above must beasync def— async infects callers.- 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
Introduced in 08F.14 The Functional API and Streaming@entrypointand@task, without declaring a graph.- 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
Introduced in 01A.3 Control Flow and Functions__name__/__doc__onto a wrapper.- 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;
Introduced in 01B.3 Async Python: async/await and the Event LoopTaskis one.
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
Introduced in 10B.3 Judges in DeepEval: Models, G-Eval, DAG and Custom MetricsGEvalmetric, which asks for an integer from 0 to 10 and divides it by the scale to give 0 to 1.- 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
Introduced in 01C.6 Python Memory Managementfork.- 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:
Introduced in 11A.1 Tracing and Observability for LLM Applicationschat,execute_tool,invoke_agent,invoke_workflow,retrievaland so on- GenAI semantic conventions
OTel's
Introduced in 11A.1 Tracing and Observability for LLM Applicationsgen_ai.*attribute names for LLM telemetry; all Development status inopen-telemetry/semantic-conventions-genaias of Nov 2026.- 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
Introduced in 03.1 The Provider APIs and Your First CallsX-Generation-Idheader.- Generation settings (inference settings)
Request settings such as
Introduced in 02.1 Neural Network Basicstemperatureandmax_tokensthat control how output is generated, not training.- 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
Introduced in 01A.3 Control Flow and Functionsyieldthat produces values lazily, one at a time, as it is iterated.- 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
Introduced in 01A.5 Comprehensions, Iterators and Generatorsdefcontainingyield; calling it returns a generator without running the body.- GeneratorExit
The exception
Introduced in 01A.5 Comprehensions, Iterators and Generators.close()throws into a paused generator.- 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 (
Introduced in 08F.10 LangGraph Fundamentalsdraw_mermaid,draw_ascii,draw_png) and the nodes and edges as data.- 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
Introduced in 08F.5 Chat Models, Messages and Content Blockstransformers) elsewhere.- 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()
Introduced in 01B.2 Environment Variables, Configuration and Secretsfunctools.lru_cache-backed factory returning the process-wideSettingsonce.- 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
Introduced in 01A.10 Type Hints and Writing Readable CodeNameErrorfor names absent at run time.- get_usage_metadata_callback
A context manager that aggregates
Introduced in 08F.5 Chat Models, Messages and Content Blocksusage_metadataacross calls and models, keyed by model name.- 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
Introduced in 00.4 GitHub and Collaborationgitover HTTPS the same browser-based sign-inghprovides, storing tokens in the OS keychain.- Git hook
An executable script git runs automatically at workflow points (
Introduced in 00.3 Git Fundamentalspre-commit,commit-msg,pre-push).- 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;
Introduced in 00.3 Git Fundamentals--soft/--mixed/--harddecide file fate.- 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
Introduced in 00.4 GitHub and Collaboration.github/workflows/run on hosted runners.- 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
Introduced in 00.4 GitHub and Collaborationpermissions:key.- Give-up rate
Share of calls that exhausted their retries
Introduced in 11A.3 Latency Percentiles, Error Classification, Audit Logs, Session Replay, Dashboards and SLOs- 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
Introduced in 02.2 Tokens and Tokenization" SolidGoldMagikarp"in GPT-2/GPT-3).- Glob / globbing
Wildcard expansion of
Introduced in 00.2 The Terminal and Shell*,?,[…],{a,b}into filenames.- 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
Introduced in 09.3 Image Generation and Editinggpt-image-2.6-*pair and the-2.5-*pair, plus oldergpt-image-2,-1.5and-1-mini, which are on the deprecation list.- GPT-Live
OpenAI's delegated voice architecture: voice model + separate reasoning backend (
Introduced in 09.7 Realtime Voice Agents/v1/live).- 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
Introduced in 10B.11 Model Grading in Inspect, and Validating the Grader (optional)GRADE:line and tolerates common formatting.- 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
Introduced in 10B.11 Model Grading in Inspect, and Validating the Grader (optional)graderby 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.- 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
Introduced in 10B.11 Model Grading in Inspect, and Validating the Grader (optional){question},{answer},{criterion},{instructions},{grader_nonce}and sample metadata.- 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
Introduced in 08F.12 Human-in-the-Loop and Control Flowinterrupt()raises to pause a run; a bareexceptthat catches it breaks the pause.- 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
Introduced in 01A.2 Numbers, Strings and Text*/+match max then backtrack vs*?/+?match min.- Greedy vs lazy matching
Introduced in 01A.2 Numbers, Strings and Text*/+consume maximally then backtrack;*?/+?consume minimally — use lazy when extracting between delimiters.- Greedy walk / greedy search
Following the closest neighbour until no improvement — the HNSW query algorithm.
Introduced in 06.4 Vector Indexes: HNSW, IVF, Quantization and Trade-offs- 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:
Introduced in 07.5 Citations and Attributiongrounding_chunks(retrieved context incl. page_numbers, media_id, custom_metadata) plusgrounding_supportsbinding answer segments to chunk indices.- 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
Introduced in 10B.10 Inspect Scorers, Metrics, Epochs and the Statistics Inspect Reports (optional)allentry over samples or over groups.- 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- Guard clause
Early
Introduced in 01A.10 Type Hints and Writing Readable Codereturn/raiseflattening nesting so the happy path stays unindented.- 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;
Introduced in 10B.7 DeepEval in Production: Red Teaming, CI/CD, Prompt Optimization and Confident AIbreachedunless the level issafe- 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
Introduced in 01C.2 Synchronous vs Asynchronous Programming and the asyncio Event Loopcall_soon;call_laterandcall_atreturn aTimerHandle.- handle_errors
Introduced in 08F.6 Prompts, Output Parsers and Structured OutputToolStrategyoption:True, a message string, exception type(s), a callable orFalse.- Handler (logging)
The
Introduced in 01B.10 Logging, Debugging and Packaging: Putting the Toolkit Togetherloggingcomponent that decides *where* a record goes — console, file, socket or network — independent of how it is formatted.- 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
Introduced in 10B.14 Tools and Agents in Inspect: Custom Tools, MCP, react() and Multi-Agent Systems (optional)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.- 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
Introduced in 08F.13 Subgraphs and Multi-Agent SystemsCommand(goto=..., graph=Command.PARENT, update=...)with theAIMessageplusToolMessagepair.- `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
Introduced in 08E.2 MCP in Depth: Primitives, Servers, Clients and Transportsinitializeandnotifications/initialized. Gone in2026-07-28- 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 (
Introduced in 10A.3 Deterministic Metrics and Code-Based Graderspassed=False) fails the example outright; a soft score (passed=None) only feeds aggregates — the split between invariants and quality measurements.- 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
Pointer to current branch (or detached commit).
Introduced in 00.3 Git Fundamentals- 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 (
Introduced in 02.4 Attention and Transformershidden_size/ number of heads, unless set explicitly).- Header
A
Introduced in 00.6 HTTP, REST and JSONName: valuemetadata line in an HTTP request or response; names are case-insensitive.- Header carry-forward
Sending prior pages' header context so continuation pages extend one record.
Introduced in 09.2 Document Understanding with Vision Models- `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 (
Introduced in 08A.15 Coding and Computer-Use Agentsclaude -p,codex exec,gemini "prompt").- Headline metric (Inspect)
The single metric Inspect shows for a task in the log viewer, progress display and
Introduced in 10B.10 Inspect Scorers, Metrics, Epochs and the Statistics Inspect Reports (optional)evals_df(); by default the first metric of the first scorer, set explicitly withTask(headline_metric=...).- Health vs readiness probe
Introduced in 11C.1 Deploying LLM Services/healthz(process alive → restart) vs/readyz(serve traffic → drain).- 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
Introduced in 08F.12 Human-in-the-Loop and Control Flowruntime.heartbeat()call that resets the idle clock whenrefresh_on="heartbeat".- 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
Introduced in 00.2 The Terminal and Shell<<'EOF'— feed the following lines to a command until a loneEOF.- 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
Introduced in 08F.9 RAG with LangChain1/rankof the first right chunk.- 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
Introduced in 05.5 Cleaning and Normalizationаvs Latina).- 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
Introduced in 10B.13 Inspect Logs, Analysis and Extending Inspect (optional)Hookssubclass registered with@hookswhose async methods run at eval-set, run, task, sample and model-call events, used for tracking, monitoring and request or key management.- 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
Introduced in 00.5 How Web Apps Work: Client, Server and DatabaseStrict-Transport-Security— a response header that makes HTTPS-only behaviour permanent for a domain.- 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 (
Introduced in 01B.7 FastAPI Basics: Building a Small APIstatus_code,detail).- HTTPS
HTTP inside TLS — the
Introduced in 00.5 How Web Apps Work: Client, Server and Databasehttps://scheme; certificate proves domain control.- 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
Introduced in 01B.5 HTTP Clients with httpxopenai3.x andanthropic2.x (and, from 3.0.0, bygoogle-genai).- 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
Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)human_cli()in Inspect.- 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
Introduced in 02.8 Reasoning Modelsenable_thinking.- Hybrid search
Retrieval that combines lexical (BM25/full-text) and dense (embedding) ranked lists into one fused ranking.
Introduced in 06.8 Hybrid Search- Hybrid simulation graph
A DeepEval simulation graph that mixes scripted user nodes with
Introduced in 10B.6 DeepEval Datasets, Synthetic Data, Conversation Simulation and Benchmarksdefault_simulation_node()branches improvised by the simulator model, trading some repeatability for realism.- 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
Introduced in 05.6 Chunking StrategiesTitle, 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).- 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
Introduced in 05.8 Metadata Designchunk_id(multi-vector retrieval, owned by 05.7).- 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
Introduced in 01A.6 Classes, Dataclasses and EnumsClass(...); fills in instance attributes.- __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 (
Introduced in 01A.3 Control Flow and Functionsclose_ticketyes,add_noteno).- 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
Introduced in 05.10 Data Quality Checksclean(clean(x)) == clean(x)— a cleaner that changes nothing on re-run.- 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
Introduced in 01A.2 Numbers, Strings and Textfloatimplements; explains why0.1 + 0.2 != 0.3.- if __name__ == "__main__"
Guard so a file runs as script but not when imported;
Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Library__main__is the script's module name.- Image API (OpenAI)
Introduced in 09.3 Image Generation and EditingPOST /v1/images/generationsand/v1/images/edits— direct single-shot calls.- Image detail level (detail)
OpenAI's per-image setting (
Introduced in 03.6 Images, PDFs and Fileslow,high,original,auto) that controls how an image is resized before tokenization, and so its cost and fidelity.- Image digest
An immutable content hash of a container image, used when a tag such as
Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)latestwould make runs non-reproducible.- 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
Introduced in 09.3 Image Generation and Editinggenerate_contentconfig foraspect_ratio+image_size.- 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
Introduced in 09.3 Image Generation and Editingresultandrevised_prompt.- Immortal object
An object whose reference count is never updated (such as
Introduced in 01C.5 The Global Interpreter Lock (GIL)None; immortal objects arrived in 3.12 for all builds, PEP 683), so threads never contend over it.- Immutability (strings)
Introduced in 01A.2 Numbers, Strings and Textstrcannot be changed in place; every "edit" produces a new string — why strings are safe dict keys and whyjoinbeats+=.- 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.
Introduced in 04.5 System Prompts, Roles and PersonasAGENTS.md, README) as authorised instructions without an explicit instruction role.- 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_controlor 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-algorithm filtered search
Filter checked during index traversal (bitset, payload-aware graph edges, per-tenant index) — correct and fast.
Introduced in 06.6 Filtering, Metadata and Multi-Tenant Search- 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
Introduced in 08F.1 Agent Frameworks and SDKscreate_sdk_mcp_server: Python functions exposed as MCP tools without a subprocess.- 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
Introduced in 08F.6 Prompts, Output Parsers and Structured Outputwith_structured_outputreturn{"raw", "parsed", "parsing_error"}so failures become values.- include_server_side_tool_invocations
Gemini
Introduced in 03.5 Tool Calling: The API MechanicsToolConfigflag that returns server-side tool calls and responses in theContentmessage, used when mixing built-in tools with your functions ongenerate_content.- 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
Introduced in 08F.11 Persistence, Durable Execution and Memoryindex={"embed", "dims", "fields"}argument that turns on semantic search in a store.- 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
Introduced in 08F.9 RAG with LangChainlangchain_core.indexingfunction that syncs a vector store with a source using content hashes and a record manager.- 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
Introduced in 01A.6 Classes, Dataclasses and Enumsclass B(A)— B *is* an A; reuse viasuper()and overriding.- init_chat_model
A factory in
Introduced in 08F.5 Chat Models, Messages and Content Blockslangchain.chat_modelsthat builds a chat model from"provider:model",model_provider=or an inferred name.- init_embeddings
A factory that builds an embeddings object from
Introduced in 08F.9 RAG with LangChain"provider:model".- initialize_model (DeepEval)
The DeepEval function that turns a metric's
Introduced in 10B.3 Judges in DeepEval: Models, G-Eval, DAG and Custom Metricsmodel=argument and the environment (USE_*flags,DEEPEVAL_LLM) into a judge object, at metric construction time.- Initializer
A function a
Introduced in 01C.7 Shared Memory and Inter-Process CommunicationProcessPoolExecutorruns once in each worker at start-up, used to load or attach big read-only data once per worker instead of once per task.- 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 (
Introduced in 08F.14 The Functional API and Streamingconfig,store,writer,runtime,previous) that LangGraph fills in by name and annotation.- 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
Introduced in 08F.5 Chat Models, Messages and Content Blocksrate_limiter=.- InMemorySaver
The in-memory checkpointer for tests and demos (
Introduced in 08F.11 Persistence, Durable Execution and MemoryMemorySaveris the old alias).- InMemoryStore / SqliteStore / PostgresStore
Store backends: RAM, a SQLite file, and Postgres (with
Introduced in 08F.11 Persistence, Durable Execution and Memorypgvectorfor semantic search).- InMemoryVectorStore
Core's dictionary-backed vector store using cosine similarity; needs
Introduced in 08F.9 RAG with LangChainnumpyfor search.- 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 filter
A handoff filter controlling what the receiving agent sees.
Introduced in 10B.14 Tools and Agents in Inspect: Custom Tools, MCP, react() and Multi-Agent Systems (optional)- 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
Introduced in 01A.11 Coming from PHP, JavaScript or Java: Side by Sidedictpreserves key insertion order (guaranteed 3.7+).- Inspect (Inspect AI)
The UK AI Security Institute's open-source, MIT-licensed evaluation framework (co-developed with Meridian Labs): the
Introduced in 10B.8 Inspect AI Fundamentals: Task = Dataset + Solver + Scorer (optional)inspect_aiPython package, theinspectcommand line and the Inspect View log viewer.- 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
Introduced in 10B.8 Inspect AI Fundamentals: Task = Dataset + Solver + Scorer (optional)inspect viewor built into the VS Code extension, showing results, samples, messages, scoring and transcripts.- 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 (
Introduced in 01A.6 Classes, Dataclasses and Enumst = Ticket(...)).- Instance attribute
Introduced in 01A.6 Classes, Dataclasses and Enumsself.x = ...— data belonging to one object.- 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 (
Introduced in 08B.5 Memory Failure Modes, Context Rot, Production State Stores and AGENTS.md-style FilesAGENTS.md,CLAUDE.md,.github/copilot-instructions.md)- 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
Introduced in 03.2 Messages, Roles and Conversation Stateprevious_response_id, so it must be resent every turn.- 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
Introduced in 10B.10 Inspect Scorers, Metrics, Epochs and the Statistics Inspect Reports (optional)inspect_ai.scorer.score(state), for example to decide whether to retry; it makes the scorer part of the system under test.- 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
Introduced in 03.5 Tool Calling: The API Mechanicstypesits beside its fields (Responses) or wraps them under afunctionkey (Chat Completions).- 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
Introduced in 01C.5 The Global Interpreter Lock (GIL)concurrent.futuresexecutor whose worker threads each run tasks in their own subinterpreter, giving multi-core parallelism in one process (3.14+).- Interrupt mode
Introduced in 08F.8 Tools and create_agentHumanInTheLoopMiddleware'sbatched(one interrupt for all tool calls) orper_call(one per call, with the real tool visible towhen) behaviour.- 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
Introduced in 08F.2 OpenAI Agents SDKresult.interruptions- 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:
Introduced in 01A.6 Classes, Dataclasses and Enumsvars,dir,getattr,__annotations__.- int↔str digit limit
Introduced in 01A.2 Numbers, Strings and Textsys.get_int_max_str_digits()(default 4300, Python 3.11+) capsint↔strconversions;sys.set_int_max_str_digitsraises the cap.- 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:
Introduced in 05.3 Parsing HTML, Web Pages and Office Files[hidden],display:none,aria-hidden,<template>,<noscript>.- `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)
Introduced in 09.1 Vision Applications: Understanding Imagesoverlap / unionof two boxes; ≥0.5 the common match threshold.- 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- IPython
A richer third-party REPL.
Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics- 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 `==`
Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basicsistests object identity,==tests value equality; useisforNone/singletons only.- 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
Introduced in 00.4 GitHub and Collaboration.ymltemplate in.github/ISSUE_TEMPLATE/written in GitHub's form schema — dropdowns, checkboxes, required fields — whose answers become the issue body as markdown.- Item and SearchItem
The store's returned document (
Introduced in 08F.11 Persistence, Durable Execution and Memoryvalue,key,namespace, timestamps) and the same plus ascore.- 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
Introduced in 01A.3 Control Flow and Functionsforover (list, string, dict, range, generator...).- Iteration protocol
The
Introduced in 01A.5 Comprehensions, Iterators and Generatorsiter()/next()/StopIterationcontract everyforloop runs.- Iterative index scan
A pgvector ≥0.8 feature that keeps scanning the ANN index until enough rows survive a
Introduced in 06.5 Vector Databases: Choosing and Using OneWHEREfilter, fixing the post-filter shrinkage problem.- Iterator
A one-shot cursor over an iterable's items; remembers position, raises
Introduced in 01A.5 Comprehensions, Iterators and GeneratorsStopIterationat the end.- 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
Introduced in 01A.5 Comprehensions, Iterators and Generatorsn(3.12+;strict=in 3.13+).- 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:
Introduced in 01A.5 Comprehensions, Iterators and Generatorsislice(it, start, stop, step).- itertools.pairwise
Yields overlapping adjacent pairs
Introduced in 01A.5 Comprehensions, Iterators and Generators(a,b), (b,c), …(3.10+).- itertools.tee
Splits one iterator into
Introduced in 01A.5 Comprehensions, Iterators and Generatorsnindependent iterators.- IVF / inverted-file index
A vector index that partitions data into k-means cells and searches only the
Introduced in 06.4 Vector Indexes: HNSW, IVF, Quantization and Trade-offsnprobecells nearest the query.- 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
Introduced in 10B.3 Judges in DeepEval: Models, G-Eval, DAG and Custom Metricshybridandsystem_oneeval modes.- 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- Job / foreground / background
A shell-managed command; foreground blocks the prompt, background (
Introduced in 00.2 The Terminal and Shell&) doesn't.- Job decoder
The
Introduced in 14B.1 The AI Engineering Landscape: Roles, Teams and Career Pathscareer_kit/job_decoder.pyheuristic that sorts a pasted posting into sections and flags requirements/flags.- 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
Introduced in 01B.11 NumPy and pandas Essentials for AI Workusageobject) into dotted columns.- 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 call
A model call that scores an output against a rubric
Introduced in 11B.8 The Cost of Agents and Long Contexts, Prompt Caching per Provider, and the Cost of Running Evals- 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
Introduced in 10B.3 Judges in DeepEval: Models, G-Eval, DAG and Custom MetricsDeepEvalBaseLLMobject a metric calls to make its decisions, set withmodel=or resolved byinitialize_model- 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
Introduced in 10B.17 DeepEval or Inspect? Choosing, Combining and Migrating (optional)graderrole, so that Inspect's concurrency, retries, cache and usage accounting apply to them.- 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
Introduced in 07.9 Evaluating RAGCachedJudgeindocs_qa/eval/judges.py, with optional JSON persistence viapath=.- Judgement node (DeepEval)
A DAG node (
Introduced in 10B.3 Judges in DeepEval: Models, G-Eval, DAG and Custom MetricsBinaryJudgementNodeorNonBinaryJudgementNode) that asks a yes/no or closed-choice question and follows the matching verdict.- jump_to
A node hook's return value (
Introduced in 08F.8 Tools and create_agent"end","tools","model") that redirects the run; the hook must declarecan_jump_to.- Jury / panel judge
K judges (models or framings) aggregate one verdict;
Introduced in 10A.4 LLM-as-Judgespreadexposes disagreement.- Jury judge
Running K judges (different models or prompt framings) and aggregating their verdicts;
Introduced in 10A.4 LLM-as-Judgespreadexposes disagreement.- Just-in-time (agentic) search
Retrieval without a pre-built index: the agent keeps handles (paths, queries) and fetches material at run time with tools such as
Introduced in 07.1 RAG Architecture: From Question to Grounded Answergrep/glob.- 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
Introduced in 14B.3 GitHub Presence and Project READMEsCHANGELOG.mdformat; for AI projects, model changes are releases too.- 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
Introduced in 01A.5 Comprehensions, Iterators and Generatorssorted/min/max/heapqapply to each item to decide order.- 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
Introduced in 00.7 SQL Basics with SQLiteWHERE id > :lastpaging — stable and fast vsOFFSET.- 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
Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basicskeyword.kwlist.- 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
Introduced in 10B.10 Inspect Scorers, Metrics, Epochs and the Statistics Inspect Reports (optional)p(1−p)divided by the clustered variance of the mean, which Inspect'sci_wilson(cluster=...)uses in place of the raw count.- 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
Introduced in 11C.6 Open-Weight and Local ModelsOLLAMA_KV_CACHE_TYPE=q8_0, vLLM's--kv-cache-dtype.- 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,
Introduced in 01A.6 Classes, Dataclasses and Enums__slots__, and ordering dunders.
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,
Introduced in 10A.2 Building Evaluation Datasets1 − e.- 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:
Introduced in 08F.4 The LangChain Ecosystem and Your Setupcreate_agent, middleware, models, messages and tools, in thelangchainpackage (1.x).- 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 (
Introduced in 08F.5 Chat Models, Messages and Content Blockscache=orset_llm_cache) keyed by prompt and model settings; not used for streaming; unrelated to provider prompt caching.- langchain-classic
The package holding everything removed from
Introduced in 08F.4 The LangChain Ecosystem and Your Setuplangchainin 1.0 (legacy chains,AgentExecutor, memory classes, the hub), kept for migration.- 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 (
Introduced in 08F.4 The LangChain Ecosystem and Your Setuplanggraph): state graphs with durable execution, persistence, interrupts and streaming.- 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
Introduced in 08F.13 Subgraphs and Multi-Agent Systemscreate_supervisorbuilds a supervisor from a deprecatedcreate_react_agent.- langgraph-swarm
The helper package whose
Introduced in 08F.13 Subgraphs and Multi-Agent Systemscreate_swarmandcreate_handoff_toolpackage the swarm pattern.- 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
Introduced in 05.4 OCR and Scanned Documents*.traineddatafiles and script-level models (Latin, HanS, Arabic…) covering scripts without a single language.- 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
Introduced in 03.3 Streaming ResponsesEventSourcesends with the lastid:it received.- Last-resort handler
The built-in handler
Introduced in 01A.8 Errors, Exceptions, Debugging and Loggingloggingfalls back to when no handler is configured: it prints onlyWARNINGand above, as the bare message.- 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
Introduced in 13B.6 Shipping and Operating Your Capstone: Launch, Demo and Iterateai_product/launch_review.py.- 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
Introduced in 01A.8 Errors, Exceptions, Debugging and Logging%sarguments to log calls instead of f-strings, so the message is only built if the record is actually emitted.- LBYL
"Look before you leap": pre-checking with
Introduced in 01A.11 Coming from PHP, JavaScript or Java: Side by Sidein/hasattr/isset.- LCEL
The LangChain Expression Language: composing Runnables with
Introduced in 08F.7 Runnables and LCEL\|(and implicit coercions) into chains.- 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 (
Introduced in 08F.15 Patterns, Pitfalls and Migrationbreaks,warns,review).- 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
Introduced in 01B.7 FastAPI Basics: Building a Small APIasynccontextmanagerstartup/shutdown hook for building and closing per-process resources.- 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
Introduced in 01A.10 Type Hints and Writing Readable CodeEnum.- Little's law
Introduced in 01B.4 Concurrency Patterns for I/O-Heavy Workin_flight = throughput × latency; sizes concurrency from rate and latency.- Live region / aria-live
Accessibility announcement channel (
Introduced in 13A.2 AI UX I: Streaming, Latency and Perceived Speedoff/polite/assertive).- 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
Introduced in 07.1 RAG Architecture: From Question to Grounded Answermessages -> textcallable so pipeline code is provider-agnostic and testable with fakes.- 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;
Introduced in 00.2 The Terminal and ShellLC_ALL=Cgives plain byte order.- 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
Introduced in 10B.1 The Eval Framework Track: DeepEval, Inspect AI and Your Setupuvwrites that records exactly which versions resolved; it, not an install-command pin, is what keeps an eval environment reproducible- 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 (
Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Libraryuv.lock).- 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)
Introduced in 10B.13 Inspect Logs, Analysis and Extending Inspect (optional)evals_df,samples_df,messages_dfandevents_df: pandas tables extracted from Inspect logs at the log, sample-epoch, message and event level.- Log gate
A CI step that reads an eval log's status, coverage and metric to decide pass or fail, needed because
Introduced in 10B.8 Inspect AI Fundamentals: Task = Dataset + Solver + Scorer (optional)inspect evalexits 0 even when the run failed.- Log level
Introduced in 01A.8 Errors, Exceptions, Debugging and LoggingDEBUG–CRITICALthreshold controlling which records are emitted.- 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
Introduced in 01A.8 Errors, Exceptions, Debugging and Loggingloggingparts: named channel, destination, output template.- 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
Introduced in 00.2 The Terminal and Shell.zprofile/.bash_profile) vs nested (reads.zshrc/.bashrc).- 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
Introduced in 01B.10 Logging, Debugging and Packaging: Putting the Toolkit Togetherloggingpasses through filters to formatters; carries the message, level, logger name, exception info and anyextrafields.- 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
Introduced in 01A.2 Numbers, Strings and Text(?=...)/(?!...)/(?<=...)/(?<!...)that check context without consuming characters; Pythonrerequires fixed-width lookbehinds.- 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
Introduced in 08A.2 The Tool Loop: From One Round Trip to an Agent(tool, args)signature repeats past a threshold.- 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
Introduced in 01A.3 Control Flow and Functionswhile True+breakfor "do, then check".- loop_factory
The argument to
Introduced in 01C.2 Synchronous vs Asynchronous Programming and the asyncio Event Loopasyncio.runandRunnerthat chooses the event-loop implementation; it replaces the event-loop policy system deprecated in Python 3.14 (removal in 3.16).- 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
Introduced in 11C.6 Open-Weight and Local Models--enable-lora --lora-moduleslets requests select adapters via themodelfield.- 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 (
Introduced in 01C.4 Deadlocks, Livelock and Starvationwait_for).- 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 —
Introduced in 00.2 The Terminal and Shelllsof -i :8000finds what holds a port.- 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
Introduced in 09.4 Speech-to-Textaudio/mulaw/audio/alaw.
M
- <meta name="robots"> / X-Robots-Tag
Per-page crawl directives (
Introduced in 05.3 Parsing HTML, Web Pages and Office Filesnoindex,nofollow, …) in markup and headers.- @model_validator
Decorator for cross-field rules; modes
Introduced in 01B.6 Data Validation with Pydanticbefore(raw data) andafter(parsed model).- @modelapi
Inspect's decorator for registering a custom model provider class, which then works as
Introduced in 10B.13 Inspect Logs, Analysis and Extending Inspect (optional)--model <name>/<model>everywhere.- __main__ guard
Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basicsif __name__ == "__main__":— run-as-script vs importable-library switch.- __main__.py
A package's runnable entry point for
Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Librarypython -m package.- `_meta`
The metadata object in a request's
Introduced in 08E.2 MCP in Depth: Primitives, Servers, Clients and Transportsparams. It carries the protocol version, client info and client capabilities- M
HNSW max links per node per layer.
Introduced in 06.4 Vector Indexes: HNSW, IVF, Quantization and Trade-offs- 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
Introduced in 03.6 Images, PDFs and Files\x89PNG, PDF%PDF-); more reliable than a file name or a client's claim.- 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
Introduced in 07.2 Retrieval Strategies for RAGGuardedRetriever— the caller can narrow but never widen the permission scope.- 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
Introduced in 08F.10 LangGraph FundamentalsSend(map), then a reducer on a shared key and a join node (reduce).- 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- 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
Introduced in 08F.17 Finish Learning from the Official Docs.mdto its URL; what LLM tools read.- 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 (
Introduced in 01B.8 Testing with pytest@pytest.mark.live) for selection with-mor skipping.- Marker convention ([n])
Numbering retrieved chunks in context assembly and citing them inline in the answer as
Introduced in 07.5 Citations and Attribution[n]; resolved against the ordered source list.- 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
Introduced in 12.7 Securing RAG Data, Keys and the AI Supply Chainreprandstrprint stars, so logging or printing it cannot leak the value- 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 (
Introduced in 02.2 Tokens and Tokenizationmax_tokens,max_output_tokensormax_completion_tokens, depending on the API).- 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
Introduced in 08F.2 OpenAI Agents SDKMaxTurnsExceeded- `max_turns` and `max_budget_usd`
The two documented limits; breach ends the run with
Introduced in 08F.3 Claude Agent SDKerror_max_turnsorerror_max_budget_usd- 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
Introduced in 08F.9 RAG with LangChainfetch_kandlambda_mult.- 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
Introduced in 02.7 Context Windowsmax_tokens.- 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
Introduced in 08A.8 Provider Built-in and Server-Side Tools{"type":"mcp"}and Anthropic'smcp_toolset— letting the model list and call a remote server's tools inside the API call.- 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
Introduced in 08F.8 Tools and create_agentlangchain.mcpclass that connects to an MCP server (URL, script path, in-process object or config) and returns its tools as LangChain tools.- 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 (
Introduced in 03.6 Images, PDFs and Fileslowtoultra_high).- MediaEmbedder
The multimodal extension of Module 06's
Introduced in 09.9 Multimodal Embeddings and RetrievalEmbedder:embed_documents/embed_queryfor text,embed_media(content, kind, role)for media —rolecarries the query/document asymmetry.- 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 (
Introduced in 01A.3 Control Flow and Functionsfunctools.cache).- 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
Introduced in 04.7 Context Engineering: Managing Context Over Timememory_20250818: Claude reads/writes files under/memories; your code executes the file operations.- 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
Introduced in 01B.11 NumPy and pandas Essentials for AI Work.npyarray lazily from disk instead of into RAM vianp.load(..., mmap_mode="r").- 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
Introduced in 08F.14 The Functional API and Streaming(chunk, metadata)pairs for model tokens and for messages nodes add to state.- 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
Introduced in 08F.6 Prompts, Output Parsers and Structured Outputoptional=True,n_messageskeeps the last N.- MessagesState
A prebuilt
Introduced in 08F.10 LangGraph FundamentalsTypedDictwith onemessageskey usingadd_messages; subclass it to add keys.- 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;
Introduced in 01B.11 NumPy and pandas Essentials for AI Workpipeinjects a whole-frame function step.- 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
Introduced in 10B.8 Inspect AI Fundamentals: Task = Dataset + Solver + Scorer (optional)accuracy(),mean()orstderr(), declared on the scorer.- 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
Introduced in 10B.2 DeepEval Fundamentals: Test Cases, Metrics and the Test Runnerscore,reasonandsuccessare stored on the object aftermeasure(); pass meansscore >= threshold.- 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
Introduced in 03.2 Messages, Roles and Conversation State{"role": "system"}message inside Anthropic'smessageslist, placed after a user turn, that current Claude models accept with the same authority as the top-levelsystemprompt.- Mid-stream error
An error that arrives inside a stream after
Introduced in 03.3 Streaming Responses200 OKhas been sent; SDKs raise or yield it, and never retry it.- 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
Introduced in 03.6 Images, PDFs and Filestype/subtypelabel for a kind of file, such asimage/pngorapplication/pdf, sent with media so the receiver knows how to read the bytes.- 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
Introduced in 08E.3 Remote MCP: OAuth, Gateways and Many Serversissparameter (RFC 9207)- 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:
Introduced in 06.3 Similarity Metrics and Nearest-Neighbour Searchλ·sim(q,d) − (1−λ)·max sim(d, selected).- 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 (
Introduced in 10B.8 Inspect AI Fundamentals: Task = Dataset + Solver + Scorer (optional)mockllm/model): a fixed reply by default, or scripted replies passed throughcustom_outputs, so evals run with no API key. Its token counts are synthetic.- 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
Introduced in 03.1 The Provider APIs and Your First Callsollama cp.- Model args
Provider constructor options that are not generation settings (
Introduced in 10B.12 Running Inspect Evals for Real: Models, Configuration, Concurrency, Caching, Errors and Eval Sets (optional)-M key=value)- 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
Introduced in 12.7 Securing RAG Data, Keys and the AI Supply Chainpickle-based model files execute arbitrary code on load whilesafetensorsis data-only — the format determines whether "loading a model" means "reading numbers" or "running code".- 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
Introduced in 08F.5 Chat Models, Messages and Content Blocksmodel.profile(context size, modalities, reasoning effort levels), shipped with the provider package.- 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
Introduced in 10B.12 Running Inspect Evals for Real: Models, Configuration, Concurrency, Caching, Errors and Eval Sets (optional)--model-spec, so one command can run the same model under two configurations.- Model string (Inspect)
The
provider/model-nameidentifier that selects an Inspect provider and the vendor's model, such asopenai/gpt-6-lunaoropenai-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;
Introduced in 01B.6 Data Validation with Pydanticmode,exclude*,include,by_aliasshape the output.- model_extra
Undeclared keys kept under
Introduced in 01B.6 Data Validation with Pydanticextra="allow"; validating objects by attribute (ORMs); serialised derived properties.- 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
Introduced in 10B.11 Model Grading in Inspect, and Validating the Grader (optional)GRADE: CorGRADE: Iverdict.- `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
Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Library.pyfile whose top-level names become importable attributes; the filename (minus.py) is its import name.- 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;
Introduced in 01A.6 Classes, Dataclasses and Enumssuper()walks it.- 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
Introduced in 08E.1 The Model Context Protocol (MCP)resultType: "input_required"and the client retries the original call withinputResponses— replacing server-initiated requests in the stateless spec.- 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
Introduced in 12.6 Securing Tools, Agents and MCP2026-07-28pattern replacing server-initiated requests: the server answersresultType: "input_required"withinputRequests, the client fulfils them and retries withinputResponses.- 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
Introduced in 01B.5 HTTP Clients with httpxmultipart/form-databody for file uploads (files=).- multipart/form-data
Body format for mixed/binary content (file uploads); sections split by a
Introduced in 00.6 HTTP, REST and JSONboundaryparameter, each with its own Content-Type.- 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 (
Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basicslist,dict,setvsint,str,tuple).- Mutable default argument
A default parameter value (e.g.
Introduced in 01A.3 Control Flow and Functionsdef f(x=[])) evaluated once at definition time and shared across calls — a common source of state-leak bugs.- Mutable vs immutable
Whether an object can change in place (
Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basicslist,dict,set) or only be replaced (int,str,tuple).- 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
Introduced in 07.5 Citations and Attribution[n].- __name__ / __main__
Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics__name__is'__main__'when a file runs directly and its module name when imported; the guard runs code only on direct execution.- 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
Introduced in 01A.11 Coming from PHP, JavaScript or Java: Side by Sidedatetimewithout / with atzinfo; Python refuses to compare them. Store and compute in aware UTC.- Name binding
Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics=attaches a name to an object rather than copying a value into a variable.- Name mangling
Introduced in 01A.6 Classes, Dataclasses and Enums__xstored as_Class__x— anti-collision, not privacy.- Named sandbox
An additional sandbox in a multi-service or multi-environment setup, selected with
Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)sandbox(name).- 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
Introduced in 08F.11 Persistence, Durable Execution and Memory(user_id, "memories").- 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
Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Library__init__.py(PEP 420, Python 3.3+) that the import system still resolves.- Namespace reduction
The 1.0 change that cut
Introduced in 08F.4 The LangChain Ecosystem and Your Setuplangchaindown to the agent-focused modules (agents,messages,tools,chat_models,embeddings).- Namespacing
Grouping tool names under a shared prefix (
Introduced in 08A.6 Designing Tools Models Can Useorders_,tickets_) to keep selection unambiguous at scale.- nan / inf
Float values for "not a number" / infinity;
Introduced in 01A.2 Numbers, Strings and Textnan != nanalways.- 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 (
Introduced in 00.5 How Web Apps Work: Client, Server and Database100.64.0.0/10) is the ISP-scale version.- Native model (DeepEval)
One of DeepEval's built-in provider wrappers (such as
Introduced in 10B.3 Judges in DeepEval: Models, G-Eval, DAG and Custom MetricsOpenAIModelorAnthropicModel); the only judges whose cost DeepEval tracks.- 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
Introduced in 06.10 Evaluating and Tuning Retrieval2^grade − 1(used here, alsondcg_burgesin ranx) vs lineargrade; the two give different scores on graded labels.- 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
Introduced in 11A.3 Latency Percentiles, Error Classification, Audit Logs, Session Replay, Dashboards and SLOsceil(p/100 x n)- 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
Introduced in 06.3 Similarity Metrics and Nearest-Neighbour Search<#>operator returns so Postgres' ascending index scans yield "most similar first".- 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 (
Introduced in 05.3 Parsing HTML, Web Pages and Office FilesMAX_DEPTH) so self-referential zips terminate.- 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 (
Introduced in 10B.5 DeepEval Tracing, Component-Level Evals and Agent Evaluationnext_llm_span,next_tool_span,next_retriever_span,next_agent_spanandnext_span) that apply metrics or fields to the next framework-created span opened inside the block.- 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
Introduced in 08F.10 LangGraph FundamentalsCommandorNone.- Node cache
A store (
Introduced in 08F.12 Human-in-the-Loop and Control FlowInMemoryCache,SqliteCache,RedisCache) that memoizes node results across runs by input.- Node ID
A test's unique address:
Introduced in 01B.8 Testing with pytestfile.py::test_func[param]— used for selection and--lf.- NodeError
The injected failure description (
Introduced in 08F.12 Human-in-the-Loop and Control Flownode,error) given to an error handler.- NodeTimeoutError
The error a timed-out attempt raises; it does not subclass
Introduced in 08F.12 Human-in-the-Loop and Control FlowTimeoutErrorand is retried by default.- 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
Introduced in 01C.1 Concurrency, Parallelism and Context SwitchingBlockingIOError(EAGAIN).- 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
Introduced in 08F.14 The Functional API and Streamingmessagesmode without skipping the call.- 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
Introduced in 01A.10 Type Hints and Writing Readable CodeNone— triggers the SDK's own default resolution.- 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
Introduced in 03.4 Structured Outputnull; how strict modes express "optional".- nullable dtypes
Introduced in 01B.11 NumPy and pandas Essentials for AI WorkInt64,boolean,stringdtypes that represent missing properly.- 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
Introduced in 06.5 Vector Databases: Choosing and Using OneVectorStoreimplementation used for tests, notebooks and small corpora — ground truth for recall evaluation.- 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;
Introduced in 01C.1 Concurrency, Parallelism and Context Switchingsocket.setblocking(False)sets it.- 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 (
Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basicsid()).- 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
Introduced in 01A.11 Coming from PHP, JavaScript or Java: Side by Sideiscompares identity (same object);==calls__eq__for value.- 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
Introduced in 13B.3 Capstone Build B: The Document Intelligence Appput/get/existsinterface hiding S3/GCS/local-disk behind one seam.- object_hook / object_pairs_hook
Introduced in 01A.9 Files, Paths, JSON and CSVjson.loadshook receiving raw (key, value) pairs before they collapse into a dict — the way to detect duplicate keys.- 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
Introduced in 05.4 OCR and Scanned Documents--oemselector between the legacy and LSTM/neural recognition engines.- 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
Introduced in 10B.14 Tools and Agents in Inspect: Custom Tools, MCP, react() and Multi-Agent Systems (optional)react()loop continues after an unfinished turn.- 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:
Introduced in 05.1 Data Sources, Formats and the Ingestion Mindset.docx/.xlsx/.pptxas ZIP packages of XML (ISO/IEC 29500, ECMA-376).- 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 (
Introduced in 08F.2 OpenAI Agents SDKopenai-agents, importagents) withAgent,Runner, tools, handoffs, guardrails, sessions, tracing and MCP support- OpenAI container
The sandboxed VM behind
Introduced in 08A.8 Provider Built-in and Server-Side Toolscode_interpreterand hostedshell: memory tiers 1–64 GB, ~20-minute idle expiry, per-session billing.- 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 (
Introduced in 11C.6 Open-Weight and Local Models/v1/chat/completions,/v1/models, etc.) shared by hosted providers, Ollama, vLLM, llama-server, LM Studio, and managed open-model hosts — an adapter boundary enablingbase_urlportability, not a feature-parity guarantee.- 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 +
Introduced in 11A.1 Tracing and Observability for LLM Applicationsopeninference-instrumentation-*packages (Apache-2.0) for Phoenix/AX.- `openinference.span.kind`
OpenInference's attribute for the kind of step (
Introduced in 11A.1 Tracing and Observability for LLM ApplicationsLLM,TOOL,AGENT,RETRIEVERand others)- 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
Introduced in 12.7 Securing RAG Data, Keys and the AI Supply Chainmodel-signingtooling and used by signed registries such as NVIDIA NGC.- OpenTelemetry GenAI semantic conventions
A standard set of span attribute names (
Introduced in 03.10 Logging, Debugging and Testing LLM Codegen_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.- 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 (
Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics+,==,in,and,:=...).- Operator precedence
Which operation binds first (
Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics**>*//>+/-> comparisons >not>and>or).- Operator stop
A sample limit of type
Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)operator, caused by approver termination, reviewer termination or operator cancellation.- 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
Introduced in 01A.10 Type Hints and Writing Readable CodeX | None/X | Y— read them, don't write them.- Optional dependency / extra
A
Introduced in 01B.1 Project Setup with uv: Environments, Dependencies and Tooling[project.optional-dependencies]set shipped for consumers (uvicorn[standard]).- Optional extra
A named bundle of extra dependencies (
Introduced in 10B.1 The Eval Framework Track: DeepEval, Inspect AI and Your Setupdeepeval[inspect],inspect-ai[math]) that you install explicitly- 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
Introduced in 01A.4 Core Data Structures: Lists, Tuples, Dictionaries and Setsmove_to_end; mostly superseded bydict.- Ori Eval
OpenRouter's agent-driven eval product:
Introduced in 10A.10 Evaluation Platforms, Benchmarks and Building an Eval Culture*.eval.tsfiles run withbun test, pinning harness and model per run.- 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 (
Introduced in 05.4 OCR and Scanned Documentsimage_to_osd,osd.traineddata).- 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
Introduced in 04.11 Named Prompting Techniques: A Field GuideSentiment:) that signals the type or start of the answer.- Output item
One typed element of an OpenAI Responses
Introduced in 03.2 Messages, Roles and Conversation Stateoutputlist, such asmessage,reasoning,function_callorcompaction.- Output mode (Pydantic AI)
The mechanism Pydantic AI uses for structured output: a tool (
Introduced in 03.4 Structured OutputToolOutput, the default), the provider's native feature (NativeOutput), or the prompt (PromptedOutput).- Output parser
A
Introduced in 08F.6 Prompts, Output Parsers and Structured OutputRunnablethat turns a model reply into a Python value (StrOutputParser,JsonOutputParser,PydanticOutputParser, list and XML parsers).- 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
Introduced in 08F.14 The Functional API and Streamingstreamoption that limits streamed channels to chosen state keys.- 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
Introduced in 08F.5 Chat Models, Messages and Content Blocks"v0"(provider format) or"v1"(standard blocks stored incontent); set on the model or withLC_OUTPUT_VERSION.- OutputFixingParser / RetryOutputParser
Legacy
Introduced in 08F.6 Prompts, Output Parsers and Structured Outputlangchain-classicparsers that ask a model to repair malformed output.- OutputParserException
The exception parsers raise; carries
Introduced in 08F.6 Prompts, Output Parsers and Structured Outputllm_outputandsend_to_llmfor repair tools.- 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
Introduced in 07.2 Retrieval Strategies for RAGdedupe_hits.- 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
Introduced in 06.4 Vector Indexes: HNSW, IVF, Quantization and Trade-offsfactor × kcandidates with a cheap index before rescoring.- Oversampling and rescoring
Retrieving
Introduced in 06.4 Vector Indexes: HNSW, IVF, Quantization and Trade-offsfactor × kcandidates with a cheap compressed index, then re-scoring them with full-precision vectors.- 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 (
Introduced in 03.6 Images, PDFs and Filestransformations: {"oversized_image": "error"}) that turns silent downscaling of a too-large image into a 400 error.- 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;
Introduced in 00.2 The Terminal and Shellsudoruns a command as root.
P
- .pth file
A text file in
Introduced in 12.7 Securing RAG Data, Keys and the AI Supply Chainsite-packageswhoseimportlines Python executes at every interpreter start — a legitimate packaging feature that both 2026 LiteLLM payloads abused, so uninstalling the package may not remove it.- .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
Introduced in 01A.6 Classes, Dataclasses and Enums__init__— for validation.- __pycache__ / .pyc
The on-disk bytecode cache: Python compiles each imported
Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Library.pyto a.pycunder__pycache__/(tagged per interpreter version) and reuses it while the source's timestamp and size match.- 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
Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Library__init__.pyfile that runs on first import and can re-export the public API.- 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
Fetching a long list in pages; the three styles are offset/limit, page numbers and opaque cursors.
Introduced in 00.6 HTTP, REST and JSON- Pagination cursor
Opaque
Introduced in 08E.1 The Model Context Protocol (MCP)cursor/nextCursortoken for list operations.- 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
Introduced in 01A.3 Control Flow and Functionsdef/ values passed at call.- 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
Introduced in 01B.8 Testing with pytest@pytest.mark.parametrizeruns one test body once per row of a table.- 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
Introduced in 05.7 Advanced and Document-Specific Chunkingparent_id.- 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
Introduced in 01B.11 NumPy and pandas Essentials for AI Workpyarrowin pandas.- 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
Introduced in 03.4 Structured Outputresponses.parse,chat.completions.parseormessages.parsethat builds the schema from a Pydantic model, sends it, and returns a parsed object.- 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
Introduced in 01A.9 Files, Paths, JSON and CSVjson.loadshook invoked for the non-standardNaN/Infinity/-Infinityliterals.- 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
Introduced in 01B.6 Data Validation with Pydanticexperimental_allow_partialonTypeAdapter.validate_*for incomplete JSON prefixes (v2.10+).- Partner package
A provider integration package maintained as its own PyPI package, such as
Introduced in 08F.4 The LangChain Ecosystem and Your Setuplangchain-openaiorlangchain-anthropic.- 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
Introduced in 07.4 Grounded Generation: Prompts, Context Assembly and Abstention<passage>block with id/doc/section/date/kind attributes.- 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
Introduced in 01B.7 FastAPI Basics: Building a Small API@app.get/post/… that handles one HTTP method on one path.- Path traversal
Introduced in 01A.9 Files, Paths, JSON and CSV../escape from an intended root; defended by resolve() + is_relative_to().- pathlib.Path
Object-oriented filesystem path: join parts with
Introduced in 01A.9 Files, Paths, JSON and CSV/, inspect via .name/.stem/.suffix/.parent/.parts, navigate with iterdir/glob/rglob.- paths / components / securitySchemes
The OpenAPI keys holding endpoints, reusable schemas, and auth definitions.
Introduced in 00.8 Reading API Documentation- Pattern / guard / wildcard
A
Introduced in 01A.3 Control Flow and Functionscaseshape / an extraifon a match /case _catch-all.- 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
Introduced in 06.5 Vector Databases: Choosing and Using Onecreate_payload_index, that makes filtered queries fast.- 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 aspython -m pdb script.py; taught in depth in lesson 01A.8, includingbreakpoint()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 (
Introduced in 01B.1 Project Setup with uv: Environments, Dependencies and Tooling==,>=,~=,!=, markers).- PEP 442
Python 3.4 change that lets cycles containing objects with
Introduced in 01C.6 Python Memory Management__del__be collected and runs each finalizer at most once.- PEP 508
The requirement-string format used in
Introduced in 01B.1 Project Setup with uv: Environments, Dependencies and Toolingdependencies(name[extra]>=1.0; marker).- PEP 621
The standard that defined
Introduced in 01B.1 Project Setup with uv: Environments, Dependencies and Tooling[project]metadata inpyproject.toml.- PEP 695 syntax
Introduced in 01A.10 Type Hints and Writing Readable Codedef f[T](...)/class C[T]— bracket type parameters, Python 3.12+.- PEP 723
Inline script metadata: a
Introduced in 01B.1 Project Setup with uv: Environments, Dependencies and Tooling# /// scriptTOML block declaring a single file's dependencies.- PEP 735
The standard for
Introduced in 01B.1 Project Setup with uv: Environments, Dependencies and Tooling[dependency-groups]— named dependency sets likedev.- 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
Introduced in 00.6 HTTP, REST and JSON%XXescaping of characters outside the URL-safe set, defined by RFC 3986.- 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
Introduced in 00.2 The Terminal and Shellchmod.- 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 (
Introduced in 08F.1 Agent Frameworks and SDKsdefault,acceptEdits,plan,dontAsk,bypassPermissions,auto).- 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 (
Introduced in 00.4 GitHub and Collaborationghp_) or fine-grained (github_pat_).- Perspective correction / keystone
Warping a photographed page's trapezoid back to a rectangle via a four-point projective transform (
Introduced in 05.4 OCR and Scanned DocumentsgetPerspectiveTransform/warpPerspective); the highest-impact fix for phone photos, distinct from deskew.- 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
Introduced in 00.7 SQL Basics with SQLitevectorcolumns with ANN indexes.- 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
Introduced in 13B.5 Capstone Build C: The Realtime Voice Agent Product[PII_…]surrogate preserving co-reference without revealing the value.- 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 (
Introduced in 00.2 The Terminal and Shellcmd1 | cmd2).- 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 (
Introduced in 04.2 Zero-Shot, Few-Shot and Examples<name>,{{id}}) instead of real data.- 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
Introduced in 08A.11 Reflection, Parallel Fan-Out and Agent-as-a-Toolmin_gain- 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 (
Introduced in 07.7 Managed RAG: Provider Tools, Platforms and Frameworksfile-parser, deprecatedweb).- 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
Introduced in 07.2 Retrieval Strategies for RAGk.- 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 (
Introduced in 14B.2 Portfolio Strategy: Choosing and Shaping Projectsportfolio_audit.py) for README, licence, tests, CI, secrets, env files, size and TODO density.- 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
Introduced in 06.6 Filtering, Metadata and Multi-Tenant Searchkresults.- 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 (
Introduced in 00.9 Working Like an Engineer: Debugging, Asking for Help and Learning Habitspython3 -m pdb script.py).- 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
Introduced in 02.1 Neural Network BasicsQ4_K_M, AWQ and GPTQ files are made.- PostgresSaver / AsyncPostgresSaver
Production checkpointers from
Introduced in 08F.11 Persistence, Durable Execution and Memorylanggraph-checkpoint-postgres;setup()creates the tables.- 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:
Introduced in 00.7 SQL Basics with SQLiteforeign_keysandbusy_timeoutapply per connection;journal_mode = WALpersists in the file.- 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
Introduced in 10A.8 Regression Testing, CI and Experiment Trackingpre-pushstage) running the smoke eval tier locally before CI.- 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
Introduced in 06.7 Keyword Search and BM25term*prefix queries fast.- Preflight
Automatic
Introduced in 00.5 How Web Apps Work: Client, Server and DatabaseOPTIONSrequest before "non-simple" cross-origin requests.- 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
Introduced in 05.5 Cleaning and Normalizationdata-privacy-stackGitHub organisation (checked November 2026).- 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
A keyword-only entrypoint parameter that holds the value saved by the last run on the same thread (
Introduced in 08F.14 The Functional API and StreamingNoneon the first run or without a checkpointer).- 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 cliff
The jump in cost when a request crosses a long-context threshold
Introduced in 11B.8 The Cost of Agents and Long Contexts, Prompt Caching per Provider, and the Cost of Running Evals- 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- Print debugging
Adding temporary print/logging probes to observe values during a run.
Introduced in 00.9 Working Like an Engineer: Debugging, Asking for Help and Learning Habits- print_mode
A
Introduced in 08F.14 The Functional API and Streamingstreamoption that prints modes to the console without changing what is yielded.- 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 endpoint / PrivateLink
Cloud networking that keeps traffic to a service on the provider's private backbone — AWS VPC endpoints for Bedrock, Azure private endpoints for OpenAI, Vertex Private Service Connect — so model API calls never traverse the public internet.
Introduced in 12.7 Securing RAG Data, Keys and the AI Supply Chain- 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- 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 (
Introduced in 00.6 HTTP, REST and JSONtype,title,status,detail,instance, served asapplication/problem+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:
Introduced in 09.8 Video Understandingtypestatic/agentic plus clipping and FPS.- 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
Introduced in 01B.4 Concurrency Patterns for I/O-Heavy Workputand workersgetvia a queue.- 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
Introduced in 00.4 GitHub and CollaborationREADME.mdin a publicusername/usernamerepository, rendered at the top of your GitHub profile.- Program / script
A
Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics.pyfile of instructions run top-to-bottom once by the interpreter.- 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
Introduced in 08F.14 The Functional API and Streamingmessages,values,subgraphsorlifecycle, that can be read once.- 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 (
Introduced in 00.2 The Terminal and Shell$, custom formats).- 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
Introduced in 04.10 Prompt Templates, Versioning and a Prompt Library@preset/slug.- 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
Introduced in 09.3 Image Generation and Editingrevised_prompt); barred from markup/SVG/GIF combos — not a settable Images-API field.- `Prompt` object
DeepEval's template value, with local
Introduced in 10B.7 DeepEval in Production: Red Teaming, CI/CD, Prompt Optimization and Confident AIinterpolateandloadand cloud versioning methods- 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;
Introduced in 08F.6 Prompts, Output Parsers and Structured Outputformatreturns astr,invokeaStringPromptValue.- PromptValue
The wrapper a template produces;
Introduced in 08F.6 Prompts, Output Parsers and Structured Outputto_string()andto_messages()convert it for text or chat models.- 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
Introduced in 01B.10 Logging, Debugging and Packaging: Putting the Toolkit Togethera.b.cis also offered toa.b,aand the root logger unlesspropagate=False; the mechanism behind "libraries log, applications configure".- Propensity weighting
Weighting responses by
Introduced in 10A.9 Offline vs Online Evaluation1/response-propensityto correct selection bias.- Property-based test
A test that states a rule for all inputs and lets a library (
Introduced in 03.10 Logging, Debugging and Testing LLM Codehypothesis) search for, and shrink, a counterexample.- Property-based testing
Testing a rule over hundreds of generated inputs (
Introduced in 01B.8 Testing with pytesthypothesis).- 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
Introduced in 08E.2 MCP in Depth: Primitives, Servers, Clients and Transportserrorreply: the request itself was wrong- ProtocolEvent
The raw event envelope of event streaming:
Introduced in 08F.14 The Functional API and Streamingtype,seq,method(the channel) andparams.- 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
Introduced in 03.11 Building a Provider-Agnostic Clientbuild()andparse()plus a stream parser and a thin I/O layer. See also [Adapter](#adapter).- 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 (
Introduced in 08F.5 Chat Models, Messages and Content Blocksopenai,anthropic,google_genai, ...) to integration classes thatinit_chat_modelconsults; not exhaustive.- Provider request ID
The identifier a provider assigns to one HTTP request (
Introduced in 03.10 Logging, Debugging and Testing LLM Codex-request-id,request-id,X-Generation-Id), which its support asks for.- 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
Introduced in 03.11 Building a Provider-Agnostic Clientproviderrequest object (order,only,ignore,sort,allow_fallbacks,require_parameters,data_collection,zdr,max_price) that steers which endpoint serves a model.- 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
Introduced in 08A.8 Provider Built-in and Server-Side Toolsbash_20250124,memory_20250818, computer/browser toolsets) while your application still executes every call.- 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;
Introduced in 08F.6 Prompts, Output Parsers and Structured Outputstrictoptional.- 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
Introduced in 05.4 OCR and Scanned Documents--psmsetting describing the image layout (full page, column, block, line, word) — the wrong mode silently degrades output.- 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
Introduced in 08F.14 The Functional API and Streamingmessagesstream (and to state) without a model call.- push_prompt / pull_prompt
Introduced in 08F.6 Prompts, Output Parsers and Structured Outputlangsmith.Clientmethods to store and fetch prompts, by name, commit hash or commit tag.- 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
Introduced in 01B.2 Environment Variables, Configuration and Secrets.enventries into typed, coerced fields at construction.- 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,
Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Libraryrequires-python, dependency ranges, scripts and build system.- pytest
The Python test runner: discovers
Introduced in 01B.8 Testing with pytesttest_*functions, rewrites asserts, provides fixtures and plugins.- pytest-asyncio
Plugin enabling
Introduced in 01B.8 Testing with pytestasync deftests forasyncio.- pytest-cov
Coverage plugin reporting per-file coverage with
Introduced in 01B.8 Testing with pytest--cov.- pytest-socket
Plugin disabling socket use in tests (
Introduced in 01B.8 Testing with pytest--disable-socket).- 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
Introduced in 01B.8 Testing with pytestassert.- pytest.raises
Context manager asserting an exception is raised, with optional
Introduced in 01B.8 Testing with pytestmatchregex.- pytest.RaisesGroup / RaisesExc
Pytest 8.4+ matchers asserting *which* sub-exceptions an
Introduced in 01B.8 Testing with pytestExceptionGroupcontains.- python -m
Run a module or package as
Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Library__main__;python -m pkgexecutespkg/__main__.pywith the package importable.- 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
Introduced in 01B.2 Environment Variables, Configuration and Secrets.envfiles intoos.environ(load_dotenv,dotenv_values,find_dotenv).- PYTHON_DOTENV_DISABLED
Env var that disables
Introduced in 01B.2 Environment Variables, Configuration and Secretsload_dotenv()entirely.- PYTHON_GIL / -X gil
The environment variable (also
Introduced in 01C.5 The Global Interpreter Lock (GIL)-X gil) that turns the GIL on or off in a free-threaded build;PYTHON_GIL=0on a normal build is a fatal start-up error.- PYTHONMALLOC
Environment variable selecting the memory allocator (
Introduced in 01C.6 Python Memory Managementpymalloc,malloc,mimalloc, debug variants).- PYTHONPATH
Environment variable adding directories to
Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Librarysys.path.- PYTHONSTARTUP
Environment variable naming a
Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics.pyfile the interpreter executes when the REPL starts.
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
Introduced in 07.7 Managed RAG: Provider Tools, Platforms and Frameworksquery().- 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
Introduced in 00.6 HTTP, REST and JSON?key=value&...parameters after the path — never includes the fragment.- Query understanding
The stage between raw user text and retrieval that produces a
Introduced in 07.3 Query Understanding, Rewriting and ExpansionQueryPlan.- 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:
Introduced in 01B.4 Concurrency Patterns for I/O-Heavy Workget/putraiseQueueShutDown, consumers drain.- 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
Introduced in 07.4 Grounded Generation: Prompts, Context Assembly and Abstentionevidencebeforeanswer.- Quote-level attribution
Citing the exact verbatim text span supporting a claim.
Introduced in 07.5 Citations and Attribution- Quoting
Introduced in 00.2 The Terminal and Shell"…"(expands vars) vs'…'(literal) vs\escapes — controls splitting/expansion.
R
- $ref
A JSON Schema pointer to a named definition elsewhere in the document.
Introduced in 00.8 Reading API Documentation- @runtime_checkable
Enables
Introduced in 01A.10 Type Hints and Writing Readable Codeisinstance/issubclasson aProtocol— checks method presence only.- 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)
Introduced in 10B.4 DeepEval's Built-in Metrics, Opened Up: RAG, Safety, Conversations and Moredeepeval.metrics.ragas.RagasMetric, which runs five Ragas metrics inside DeepEval and averages them (the docs say four).- 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
Introduced in 00.6 HTTP, REST and JSON429andRetry-After.- Rate-limit headers
Response headers that report each rate limit, how much of it remains and when it resets (OpenAI
Introduced in 03.8 Errors, Rate Limits, Timeouts and Retriesx-ratelimit-*, Anthropicanthropic-ratelimit-*).- Rate-limit headroom
Remaining provider quota from
Introduced in 11A.2 Metrics, Dashboards, SLOs and Alertingx-ratelimit-remaining-*headers, as a gauge.- 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
Introduced in 03.1 The Provider APIs and Your First Callswith_raw_responseorsdk_http_response.- Raw string
A string literal prefixed with
Introduced in 01A.2 Numbers, Strings and Textrthat keeps backslashes literal; required for regex patterns and Windows paths.- 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
Introduced in 08F.12 Human-in-the-Loop and Control Flowinterrupt()runs again.- 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
Introduced in 01B.11 NumPy and pandas Essentials for AI Worksqlite3).- 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,
Introduced in 01C.1 Concurrency, Parallelism and Context Switchingio_uring).- 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
Introduced in 01A.10 Type Hints and Writing Readable CodeTypedDictkey marker telling checkers not to assign it (3.13+).- 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
Introduced in 02.8 Reasoning Modelslow,mediumorhigh(OpenAIreasoning.effort, Anthropicoutput_config.effort; Gemini's equivalent is the thinking level).- 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- Rebinding
Pointing a name at a different object.
Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics- 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
Introduced in 06.6 Filtering, Metadata and Multi-Tenant Search0.5**(age/half_life)so newer documents rank higher without hard exclusion.- 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
Introduced in 06.6 Filtering, Metadata and Multi-Tenant SearchΣ 1/(k+rank)across result lists — robust to incomparable score scales; owned by [06.8](06-embeddings-vector-search/08-hybrid-search.md).- 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 (
Introduced in 08F.9 RAG with LangChainInMemoryRecordManager,SQLRecordManager).- record_to_sample
A function passed to an Inspect loader that turns one source record into one or more
Introduced in 10B.9 Inspect Datasets, Solvers and Task Configuration (optional)Samples; the place to transform, validate and reject bad rows at load time.- 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
Introduced in 11A.5 LangSmith, Testing and Deploymentlangsmith.Clientwith a custom HTTP session that stores requests instead of sending them; used here to inspect and test traces offline.- 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
Introduced in 08F.8 Tools and create_agentlanggraph1.2.22), raisingGraphRecursionError.- 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
Introduced in 08F.9 RAG with LangChainchunk_size.- 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;
Introduced in 10B.7 DeepEval in Production: Red Teaming, CI/CD, Prompt Optimization and Confident AIRedTeamerkeeps cases soreuse_simulated_test_cases=Truecan replay them. Both return aRiskAssessment- 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
Introduced in 00.2 The Terminal and Shell>,>>,<,2>,2>&1,/dev/null— route streams to files or nowhere.- RediSearch vector index
Redis's
Introduced in 06.5 Vector Databases: Choosing and Using OneFT.CREATE ... VECTORindex over hash/JSON fields supporting FLAT, HNSW and SVS-VAMANA algorithms.- Reducer
A function
Introduced in 08F.10 LangGraph Fundamentals(current, update) -> newattached to a key withAnnotated, combining repeated and parallel writes.- Reducer (Inspect)
In Inspect AI, the function that combines one sample's scores from several epochs into one score before metrics run, such as
Introduced in 10B.10 Inspect Scorers, Metrics, Epochs and the Statistics Inspect Reports (optional)mean,pass_at_k,pass_k_k,majorityorat_least_k; it is applied (asmean) even with one epoch, converting labels to floats.- reduction
An operation collapsing an axis (
Introduced in 01B.11 NumPy and pandas Essentials for AI Worksum,mean,max,argmax...).- 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
A provider declining to answer,
Introduced in 10B.12 Running Inspect Evals for Real: Models, Configuration, Concurrency, Caching, Errors and Eval Sets (optional)stop_reason="content_filter"- 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
Introduced in 14A.6 Agent Inventory, Risk and Autonomy Classification, and Policy-as-Codeproposed- Rego
The declarative policy language of Open Policy Agent
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
Introduced in 01A.2 Numbers, Strings and Textremodule.- 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
Introduced in 05.8 Metadata Design(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.- 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
Introduced in 06.8 Hybrid Searchlinearwithminmax)- 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
Introduced in 08F.9 RAG with LangChainsimilarity_score_threshold; not available on every store.- 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
Introduced in 00.4 GitHub and Collaborationorigin/mainrecording where the remote's branch was at your last fetch or pull.- 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
Introduced in 01A.2 Numbers, Strings and Textstrmethods (Python 3.9+) that strip one exact affix — safer thanlstrip/rstrip(which strip character sets) or regex for a known prefix/suffix.- 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
Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics>>>interpreter for experimenting without files.- 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;
Introduced in 00.1 Setting Up Your Computer for Developmentai-pathbecomes one in lesson 00.3.- 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
Introduced in 01A.2 Numbers, Strings and Textreprgives unambiguous developer text (quotes/escapes, paste-able back into Python);strgives human-friendly display 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
Introduced in 08E.1 The Model Context Protocol (MCP)InputRequiredResult; the client echoes it verbatim on the retried call. Servers must treat it as attacker-controlled and integrity-protect it.- require_parameters
An OpenRouter routing option (
Introduced in 03.4 Structured Outputprovider.require_parameters: true) that only uses endpoints supporting every parameter in the request.- Required / NotRequired
Per-key optional overrides inside a
Introduced in 01A.10 Type Hints and Writing Readable CodeTypedDict(3.11+).- 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
Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Librarypip install -r.- 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
Introduced in 01B.9 Retries, Timeouts, Backoff and ResilienceRetryError.- 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
Introduced in 01A.9 Files, Paths, JSON and CSV../symlinks; re-anchor under a base; test containment — the path-traversal guard trio.- 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 (
Introduced in 00.6 HTTP, REST and JSON/tickets/1042) / the plural list (/tickets).- 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
Introduced in 01C.7 Shared Memory and Inter-Process Communicationmultiprocessingthat unlinks shared-memory segments still registered at exit and warns about the leak.- Response buffering (proxy)
A proxy collecting a response before forwarding it, which breaks streaming; disabled with
Introduced in 03.3 Streaming ResponsesX-Accel-Buffering: noon nginx.- 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
Introduced in 10B.12 Running Inspect Evals for Real: Models, Configuration, Concurrency, Caching, Errors and Eval Sets (optional)cache=Trueor aCachePolicy.- 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 (
Introduced in 03.1 The Provider APIs and Your First CallsResponse,ChatCompletion,Message,GenerateContentResponse,Interaction).- Response prefix
Text at a prompt's end that the model's output should start with (e.g. an open
Introduced in 04.4 Structuring Prompts: XML, Markdown and Delimiters<answer>tag); a soft alternative to prefill.- 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
Introduced in 08F.6 Prompts, Output Parsers and Structured Outputcreate_agentargument that makes the final reply a typed object instructured_response.- response_format (image)
Gemini Interactions' output spec:
Introduced in 09.3 Image Generation and Editing{"type":"image","aspect_ratio","image_size"}.- response_metadata
The provider's own envelope on an
Introduced in 08F.5 Chat Models, Messages and Content BlocksAIMessage(model name, ids, finish reason); keys differ per provider, so read it for diagnostics such as truncation, not for business logic.- 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
Introduced in 08F.12 Human-in-the-Loop and Control Flowinterrupt()option (langgraph1.2.12 and later) that types and validates the resume value.- 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
Introduced in 01A.9 Files, Paths, JSON and CSVcsv.DictReaderparameter naming the list that catches overflow fields (defaultNone);csv.DictWriterpolicy for unexpected dict keys ("raise"default,"ignore").- 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
Introduced in 10A.8 Regression Testing, CI and Experiment Trackingresults.jsonlper-case rows +run.jsonprovenance record per run.- `ResultMessage`
The final message of a run:
Introduced in 08F.3 Claude Agent SDKsubtype,num_turns,session_id,total_cost_usd,usage,permission_denials- resultType
Introduced in 08E.1 The Model Context Protocol (MCP)"complete"or"input_required"marker on every result.- 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 (
Introduced in 03.3 Streaming Responsesstarting_after) and Gemini background interactions (last_event_id).- 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
Introduced in 08F.12 Human-in-the-Loop and Control FlowCommand(resume=...).- Resume map
A dict
Introduced in 08F.12 Human-in-the-Loop and Control Flow{interrupt id: answer}that answers one or more pending interrupts.- 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 rule
A written maximum time a class of data may be kept
Introduced in 08B.5 Memory Failure Modes, Context Rot, Production State Stores and AGENTS.md-style Files- 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 (
Introduced in 07.2 Retrieval Strategies for RAGRetrievalConfig) — first stages, depths, reranker, shaping, guards, cache, trigger.- 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
Introduced in 07.7 Managed RAG: Provider Tools, Platforms and Frameworksvector_stores.search, BedrockRetrieve, Pinecone Context API) — the one you can wrap in aRetriever.- 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
Introduced in 10B.2 DeepEval Fundamentals: Test Cases, Metrics and the Test Runnercontext, the ground-truth passages you write, which Hallucination reads.- RetrievedHit
One retrieved result as the
Introduced in 07.1 RAG Architecture: From Question to Grounded AnswerTracerecords it: rank, id, score, source and doc/section provenance.- Retriever (BaseRetriever)
A
Introduced in 08F.9 RAG with LangChainRunnablethat maps a query string to a list ofDocuments;as_retrieverbuilds one from a vector store.- Retriever adapter
A thin class mapping a managed/platform/framework search API onto the
Introduced in 07.7 Managed RAG: Provider Tools, Platforms and FrameworksRetrieverprotocol.- Retriever contract
Introduced in 07.1 RAG Architecture: From Question to Grounded Answersearch(query, k, filters) -> list[Hit]— the seam every retriever satisfies (06.10).- Retriever protocol
The
Introduced in 06.10 Evaluating and Tuning Retrievalsearch(query, k, filters) -> list[Hit]contract every retriever in the module satisfies and Module 07's RAG pipeline consumes.- 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
Introduced in 10B.12 Running Inspect Evals for Real: Models, Configuration, Concurrency, Caching, Errors and Eval Sets (optional)should_retry()returns:rate_limit()(retry and shrink concurrency),transient()(retry, pause growth) orno().- Retrying / AsyncRetrying
Tenacity's retry controllers, usable as decorators or
Introduced in 01B.9 Retries, Timeouts, Backoff and Resiliencefor/withloops.- RetryPolicy
A node option with
Introduced in 08F.12 Human-in-the-Loop and Control Flowinitial_interval,backoff_factor,max_interval,max_attempts,jitterandretry_on.- 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
Introduced in 01A.3 Control Flow and Functionsreturnhands back / implicit return of functions withoutreturn.- 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
Introduced in 01A.10 Type Hints and Writing Readable CodeRuntime type is ...at run time.- 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,
Introduced in 00.3 Git FundamentalsHEAD,HEAD~N,rev^N,HEAD@{n}— and thea..b/a...bset forms.- Revision range (.. / ...)
Introduced in 00.3 Git Fundamentalsa..b= commits inbnota;a...b= changes on either side since they diverged.- 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
Introduced in 08A.10 Agent Patterns: ReAct, Plan-and-Execute, Routing and Orchestrator-Workers#Eplaceholders (awareness).- 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 —
Introduced in 08A.6 Designing Tools Models Can Useread,writeordestructive— that drives validation, approval and audit behaviour.- 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
Introduced in 10A.5 Calibrating and Validating Judgesπ̂ = (observed + TNR − 1)/(TPR + TNR − 1)— estimates true pass rate from a biased judge.- 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.
Introduced in 07.2 Retrieval Strategies for RAGdoc_id=handbook), applied inside retrieval.- 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
Introduced in 08F.13 Subgraphs and Multi-Agent SystemsCommandorSend) and synthesizes their results.- 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
Introduced in 10B.3 Judges in DeepEval: Models, G-Eval, DAG and Custom MetricsRubric(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.- 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 (
Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basicsruff format,ruff check).- 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
Introduced in 10B.9 Inspect Datasets, Solvers and Task Configuration (optional)inspect eval --run-config, whichinspect log export-configwrites from a finished log.- Run context (context_schema)
Typed, read-only data you pass per
Introduced in 08F.8 Tools and create_agentinvoke(user id, role) and read asruntime.context.- Run directory
The
Introduced in 11C.2 CI/CD for Prompts, Models and Evalsevalkit.cli runoutput —results.jsonl+run.json+report.md— that gates, compares and audits all read.- Run file
DeepEval's
Introduced in 10B.7 DeepEval in Production: Red Teaming, CI/CD, Prompt Optimization and Confident AI.deepeval/.latest_test_run.json(wrapped) and.latest_run_full.json(unwrapped) record of the latest run- 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
Introduced in 11A.5 LangSmith, Testing and Deploymentsuccessstatus also covers a run paused at an interrupt.- `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
Introduced in 08F.7 Runnables and LCELlangchain-core: any unit of work withinvoke,batch,streamand their async forms, composable and traceable.- 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 (
Introduced in 08F.5 Chat Models, Messages and Content Blocksrun_name,tags,metadata,callbacks,max_concurrency,recursion_limit).- 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
Introduced in 08F.7 Runnables and LCELconfigargument).- 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;
Introduced in 08F.7 Runnables and LCEL.assignadds computed keys to a dict input,.pickselects keys.- RunnableSequence
The Runnable that
Introduced in 08F.7 Runnables and LCELa \| bbuilds: runs steps in order, each output feeding the next input.- Runner
The machine that executes a GitHub Actions job (
Introduced in 00.4 GitHub and Collaborationubuntu-latestand friends).- 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
Introduced in 08F.10 LangGraph Fundamentalsruntime: context, store, stream writer and execution info.- Runtime context
Immutable per-run configuration passed as
Introduced in 08F.10 LangGraph Fundamentalscontext=and read throughruntime.context; declared withcontext_schema.- Runtime error / exception
Failure while executing (
Introduced in 01A.1 Running Python: Programs, the REPL and Syntax BasicsNameError,TypeError,ValueError...).- Runtime secret fetch
Reading a secret from the store when the process needs it (cached briefly, refetched on
Introduced in 12.7 Securing RAG Data, Keys and the AI Supply Chain401) instead of baking it into code, an image or a prompt
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
Introduced in 01A.6 Classes, Dataclasses and Enums__dict__with fixed attribute slots — smaller, faster, no dynamic attrs.- 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
Introduced in 02.1 Neural Network Basics.bin/.ptfiles.- safety_acknowledgement
Flag set inside a
Introduced in 08A.15 Coding and Computer-Use Agentsfunction_resultconfirming arequire_confirmationaction was user-approved.- safety_decision
Gemini's per-action verdict in the
Introduced in 08A.15 Coding and Computer-Use Agentsfunction_callarguments (allowed / require_confirmation / blocked), and the flag afunction_resultcarries back when a human approved arequire_confirmationaction.- safety_identifier
OpenAI's end-user identifier for abuse detection, replacing the deprecated
Introduced in 03.2 Messages, Roles and Conversation Stateuserfield; it should be a hash, never personal data.- 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), atarget(which defaults to the empty string), an optionalid,metadataandchoices, plus agent fields such assandboxandfiles. *(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
Introduced in 10B.12 Running Inspect Evals for Real: Models, Configuration, Concurrency, Caching, Errors and Eval Sets (optional)score_on_erroris set.- 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)
Introduced in 05.10 Data Quality Checksn = z²p(1−p)/e²with finite-population correction — how many docs a human must review.- 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
Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)sandbox()API.- 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,
Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)local, Daytona, Modal, Proxmox or Vagrant.- 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 —
Introduced in 01B.1 Project Setup with uv: Environments, Dependencies and Toolinguv export --format cyclonedx1.5.- 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
Introduced in 10B.16 Evaluating Agents with Inspect, and the Inspect Ecosystem (optional)id,targetpairs passed asvalidation=, whose agreement figure depends on the comparison predicate (eqby default).- 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 +
Introduced in 13B.5 Capstone Build C: The Realtime Voice Agent Productexpectassertions run through evalkit.- 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
Introduced in 08A.6 Designing Tools Models Can Usemodel_json_schema()output that catches accidental contract drift — a specialisation of "snapshot test".- Schema transform
The rewriting an SDK applies to your schema before sending it, such as making every field required, adding
Introduced in 03.4 Structured OutputadditionalProperties: false, or moving unsupported constraints into descriptions.- 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 / consent
What permissions an OAuth grant asks for and the user approves.
Introduced in 00.5 How Web Apps Work: Client, Server and Database- 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
Introduced in 10B.8 Inspect AI Fundamentals: Task = Dataset + Solver + Scorer (optional)value(a label such as"C"/"I", a number, a bool, a list or a dict), the extractedanswer, anexplanation, an optional machine-readablereasonandmetadata.- 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
Introduced in 07.2 Retrieval Strategies for RAGeffective_scorefor a hit to survive shaping.- 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
Introduced in 06.3 Similarity Metrics and Nearest-Neighbour Search(n_queries, N)matrix of all pairwise similarities from one matmul.- 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
Introduced in 10B.10 Inspect Scorers, Metrics, Epochs and the Statistics Inspect Reports (optional)@metric(scores=...).- 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
Introduced in 10B.4 DeepEval's Built-in Metrics, Opened Up: RAG, Safety, Conversations and Morethresholdas a minimum; Bias, Toxicity, Hallucination and Misuse previously scored the share of violations.- score-floor rescue (min_hits, below_score_floor)
Keeping the best below-floor hits flagged
Introduced in 07.2 Retrieval Strategies for RAGbelow_score_floorin metadata, so an over-aggressive floor degrades to weak evidence instead of a silent empty result (min_hits/RetrievalConfig.min_hits).- 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
Introduced in 10B.8 Inspect AI Fundamentals: Task = Dataset + Solver + Scorer (optional)score(state, target) -> Score, registered with@scorertogether with the metrics computed over its scores.- ScoreReason
The vocabulary of machine-readable
Introduced in 10B.10 Inspect Scorers, Metrics, Epochs and the Statistics Inspect Reports (optional)reasonlabels on an Inspect score, naming the failure class and who failed:invalid_response_format,no_response,refusal,grader_failed,scoring_failed,excluded,zeroed.- Scoring policy (Inspect)
Inspect's rules for which samples count in a metric: a returned
Introduced in 10B.10 Inspect Scorers, Metrics, Epochs and the Statistics Inspect Reports (optional)Scorecounts,Score.unscored()is excluded but counted as unscored,Noneis excluded and not counted, and a raised exception makes the sample an error.- 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
Introduced in 08F.8 Tools and create_agentGenericFakeChatModelsubclass withbind_toolsthat replays a fixed list ofAIMessages, used to test agents without a key.- 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
Introduced in 13B.5 Capstone Build C: The Realtime Voice Agent ProductScriptedModel).- ScriptedModel
A fake
Introduced in 08A.2 The Tool Loop: From One Round Trip to an AgentChatAdapterreplaying canned turns for tests without an API.- 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
Introduced in 10B.17 DeepEval or Inspect? Choosing, Combining and Migrating (optional)evalkit.- Search-and-replace edit
An edit format where
Introduced in 08A.15 Coding and Computer-Use Agentsold_str/new_strpairs are applied by the tool, not generated wholesale.- 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;
Introduced in 07.5 Citations and Attributionsourceaccepts any stable string (URL or internal ID).- search_result_location
Anthropic citation type resolving to a
Introduced in 07.5 Citations and Attributionsearch_resultblock's source and content blocks.- search_type / search_kwargs
The retriever settings that choose similarity, MMR or score-threshold search and pass
Introduced in 08F.9 RAG with LangChaink,fetch_k,lambda_mult,score_thresholdandfilter.- 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
Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Libraryrandomwould be predictable.- 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
Introduced in 01B.2 Environment Variables, Configuration and Secrets**********; real value only viaget_secret_value().- 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 (
Introduced in 05.8 Metadata Design["Billing", "Refunds"]) locating a chunk in its document.- 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 (
Introduced in 08A.8 Provider Built-in and Server-Side Toolstunnel_idon themcptool) for connecting private MCP servers to the Responses API without public exposure.- 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
Introduced in 13B.6 Shipping and Operating Your Capstone: Launch, Demo and IterateSECURITY_REVIEW.mdfor enterprise reviewers: data-flow diagram, threat-model summary, eval and red-team results, honest test status, subprocessor list, incident contact.- 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
Introduced in 12.8 Red Teaming and Security Testing/.well-known/security.txtpublishing vulnerability-disclosure contacts;ContactandExpiresare mandatory.- 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
Introduced in 01C.1 Concurrency, Parallelism and Context Switchingselectorsobject wrapping the best multiplexing mechanism of the platform (epoll, kqueue, select).- 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
Introduced in 10B.11 Model Grading in Inspect, and Validating the Grader (optional)ModelRole("grader", required=True).- 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
Introduced in 00.7 SQL Basics with SQLitemanager_id).- Self-pipe
A socket pair the event loop always watches, so another thread can write one byte to wake a loop sleeping in
Introduced in 01C.2 Synchronous vs Asynchronous Programming and the asyncio Event Loopselect()(used bycall_soon_threadsafe).- 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
Introduced in 03.3 Streaming Responsessequence_number.- 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
Introduced in 09.3 Image Generation and Editingnegative_prompt.- Semantic search
Finding content by meaning, using embedding similarity.
Introduced in 02.3 Embeddings- 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
Introduced in 00.4 GitHub and CollaborationMAJOR.MINOR.PATCHversioning contract: breaking changes bump major, features minor, fixes patch.- 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
Introduced in 01B.1 Project Setup with uv: Environments, Dependencies and ToolingMAJOR.MINOR.PATCHversioning convention (a convention, not enforced).- send() / .close() / .throw()
Generator methods: inject a value at the
Introduced in 01A.5 Comprehensions, Iterators and Generatorsyield, end it (runningfinally), inject an exception.- 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
Introduced in 02.2 Tokens and Tokenization▁) and can train BPE or Unigram tokenizers. Used by Llama 2, Gemma, T5 and XLM-R.- Sentinel
A marker value (e.g.
Introduced in 01B.4 Concurrency Patterns for I/O-Heavy WorkSTOP = object()) telling workers to exit.- 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
Introduced in 03.7 Token Counting, Cost Tracking and Prompt Cachingdefaultwhenfastwas asked for), as reported in the response. Price what was served, not what you requested.- 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 (
Introduced in 08B.1 Kinds of State and Session Managementprevious_response_id, Conversations, message threads)- Server-managed state
The provider stores the conversation and you reference it by ID (
Introduced in 03.2 Messages, Roles and Conversation Stateprevious_response_id, a conversation ID,previous_interaction_id).- 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)
Introduced in 01B.5 HTTP Clients with httpxtext/event-streamformat:data:lines, blank-line dispatch,:comments.- Server-side conversation state
A provider feature (such as OpenAI's
previous_response_idor 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'sstore,previous_response_idand Conversations API, Gemini'sprevious_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
Introduced in 03.8 Errors, Rate Limits, Timeouts and Retriesfallbacksparameter, which retries a classifier refusal on another model for you.- Server-side tool call
A tool the provider executes itself, reported as
Introduced in 08F.5 Chat Models, Messages and Content Blocksserver_tool_callandserver_tool_resultblocks.- 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 (
Introduced in 08A.8 Provider Built-in and Server-Side Toolssrvtoolu_id), paired bytool_use_idwith a result block such asweb_search_tool_result.- 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
Introduced in 01A.4 Core Data Structures: Lists, Tuples, Dictionaries and Sets|union,&intersection,-difference,^symmetric difference.- set_node_defaults
A
Introduced in 08F.12 Human-in-the-Loop and Control FlowStateGraphmethod that sets default retry policy, cache policy, error handler and timeout for all nodes.- SettingsConfigDict
The
Introduced in 01B.2 Environment Variables, Configuration and Secretsmodel_configoptions controlling sources, prefixes, nesting,extra.- 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)
Introduced in 10B.9 Inspect Datasets, Solvers and Task Configuration (optional)setupis a solver that always runs before the main solver, even when the solver is swapped at run time;cleanupis an async function run after each sample, even when it raised.- Severity
The
Introduced in 13A.4 AI UX III: Failure States, Edge Cases and Inclusive DesignUserMessagefield (info/warning/error/blocked) that drives presentation, separate from the copy.- 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)
Introduced in 10B.7 DeepEval in Production: Red Teaming, CI/CD, Prompt Optimization and Confident AI(0.6 * impact + 0.3 * exploitability + 0.1 * exposure) * 10for a failed case; impact is a constant, so it is not a measure of harm- 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 agent
An agent that runs but is not in the inventory
Introduced in 14A.6 Agent Inventory, Risk and Autonomy Classification, and Policy-as-Code- 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
Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basicslenorprint, which breaks it for the rest of the file.- Shallow copy
New outer container sharing nested objects (
Introduced in 01A.4 Core Data Structures: Lists, Tuples, Dictionaries and Setsa[:],.copy()).- Shallow vs deep copy
Introduced in 01A.11 Coming from PHP, JavaScript or Java: Side by Side.copy()shares nested objects;copy.deepcopycopies recursively.- 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- Shebang #!
The
Introduced in 00.2 The Terminal and Shell#!first line naming the interpreter that runs an executable script.- 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
Introduced in 00.2 The Terminal and Shellaliasin a dotfile.- 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 (
Introduced in 00.2 The Terminal and Shellexport).- 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
Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basicsand/orreturn an operand and may skip evaluating the right side.- Short-circuit evaluation
Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basicsand/orreturn an operand (not a bool) and may skip evaluating the right side.- 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 —
Introduced in 00.2 The Terminal and Shellkill -llists yours).- Signal vocabulary
One of the three input languages to the failure mapper: transport
Introduced in 13A.4 AI UX III: Failure States, Edge Cases and Inclusive DesignKinds,check_response()Statusnames, or product policy signals.- 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
Introduced in 02.1 Neural Network Basics"silu".- 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 (
Introduced in 01A.1 Running Python: Programs, the REPL and Syntax BasicsNone,True,False) compared withis.- 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
Introduced in 05.1 Data Sources, Formats and the Ingestion Mindsetlastmoddates — the polite discovery mechanism.- 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
Introduced in 08E.4 A2A Basics, Agent Skills (SKILL.md) and Tool Selection at Scaledescription- `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
Introduced in 08F.13 Subgraphs and Multi-Agent Systemsload_skilltool.- 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
Introduced in 11C.6 Open-Weight and Local Models--enable-sleep-modefacility 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.- 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
Introduced in 01A.2 Numbers, Strings and Texts[start:stop:step]substring; stop is exclusive, negatives count from end.- Slice tag
A key-value pair in
Introduced in 10A.2 Building Evaluation Datasetstagsmarking which stratum an example belongs to.- Slicing
Introduced in 01A.2 Numbers, Strings and Texts[start:stop:step]substring extraction; stop is exclusive, negatives count from the end, out-of-range slices return""rather than raising.- 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
Introduced in 10B.4 DeepEval's Built-in Metrics, Opened Up: RAG, Safety, Conversations and Morewindow_sizeconsecutive exchanges, ending at the current one, that a DeepEval turn metric judges together; windows overlap, so early exchanges can be scored several times.- 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
Introduced in 01C.6 Python Memory Managementintobjects for a small range (-5to256on 3.14), shared by every use; an implementation detail, so never compare numbers withis.- 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
Introduced in 10A.7 Evaluating Agents, Tool Use and Multimodal SystemsWorldwhen grading a recorded run.- 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- Soft delete
Timestamp-marked deletion vs
Introduced in 00.7 SQL Basics with SQLiteDELETE/WHERE id > :lastpaging vs OFFSET.- 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 (
Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basicsmatch,case,type,_,lazy); usable as a normal name elsewhere. Listed inkeyword.softkwlist, notkeyword.kwlist.- 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
Introduced in 10A.10 Evaluation Platforms, Benchmarks and Building an Eval CultureTaskState, for example by adding a system message or calling the model withgenerate(); a chain of solvers is the code that produces each sample's output. It corresponds to evalkit'staskcallable plus the model call, not to Inspect'sTask.- Solver factory
The
Introduced in 10B.9 Inspect Datasets, Solvers and Task Configuration (optional)@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.- 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
Introduced in 01A.3 Control Flow and FunctionsNone.- sorted vs list.sort
Introduced in 01A.11 Coming from PHP, JavaScript or Java: Side by Sidesorted()returns a new list;.sort()mutates and returnsNone.- 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
Introduced in 08F.9 RAG with LangChainDocumenttostr) that ties chunks to their source document, required forincrementalandscoped_fullcleanup.- source_map
The per-turn label→chunk resolution index (
Introduced in 07.6 Conversational RAG[{"label","chunk_id","title"}]) stored onTurnRecord/GenerationRequest— deliberately *not* a verified citation; 07.5'sverify_citations/CitedAnswerown those.- SourceRef
Introduced in 07.5 Citations and Attributioncite.pymodel: everything needed to display and link a source.- 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:
Introduced in 11A.1 Tracing and Observability for LLM ApplicationsINTERNAL,CLIENT,SERVER,PRODUCER,CONSUMER. GenAI usesCLIENTfor model calls and remote agents,INTERNALfor tools, retrieval and in-process agents- Span link
A reference from one span to another that is related but not its parent, such as a background job started by an agent step
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;
Introduced in 11A.1 Tracing and Observability for LLM ApplicationsParentBased/TraceIdRatioBaseddecide which traces to keep.- Span type (DeepEval)
A label (
Introduced in 11A.1 Tracing and Observability for LLM Applicationsagent,llm,retriever,tool,custom) that corresponds loosely to a GenAI operation- 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 (
Introduced in 13B.6 Shipping and Operating Your Capstone: Launch, Demo and IterateMIT,Apache-2.0,GPL-3.0-only) used in licence files and third-party notices.- SPDX licence identifier
Standard short licence names (
Introduced in 14B.3 GitHub Presence and Project READMEsMIT,Apache-2.0,GPL-3.0) used in metadata and licence files.- 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
Introduced in 13B.5 Capstone Build C: The Realtime Voice Agent Product{tool, args}before a mutation.- 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
Introduced in 03.6 Images, PDFs and Filesinput_file: it parses the first 1,000 rows per sheet and adds a model-generated summary and header metadata.- 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
Introduced in 08F.11 Persistence, Durable Execution and Memorylanggraph-checkpoint-sqlite, sync and async.- Squared L2
The squared Euclidean distance FAISS's
Introduced in 06.3 Similarity Metrics and Nearest-Neighbour SearchMETRIC_L2reports — monotonic with L2 (same ranking) but different values, which matters for thresholds.- Squash merge
Collapsing a PR's commits into one on
Introduced in 14B.3 GitHub Presence and Project READMEsmain; keeps history readable for portfolio repos.- src/ layout
Project layout placing source under
Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Librarysrc/so only installed packages are importable, preventing accidental imports of the working tree.- SSE
Server-Sent Events — one-directional
Introduced in 00.5 How Web Apps Work: Client, Server and Databasetext/event-streamfor live server→client data.- 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
Introduced in 07.2 Retrieval Strategies for RAGrrf_fuserecords on fused hits — the unitsource_mixcounts.- 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
Introduced in 10A.6 Evaluating RAG Pipelines in Depthevalkit's per-case record of what each pipeline stage produced — the input every metric reads.- Staging area / index
Introduced in 00.3 Git Fundamentals.git/index: the preview of the next commit;git addcopies worktree content into it.- 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 (
Introduced in 08F.5 Chat Models, Messages and Content Blockstext,reasoning,tool_call,image,file,refusal, ...) that normalizes provider-specific content.- Standard model exceptions
The
Introduced in 08F.5 Chat Models, Messages and Content Blockslangchain_core.exceptionsfamily (ModelRateLimitError,ModelTimeoutError,ContextOverflowError, ...) with anis_retryableflag.- Standard Webhooks
An open specification (
Introduced in 03.9 Async, Concurrency and Batch Processingwebhook-id,webhook-timestamp,webhook-signatureheaders, HMAC-SHA256) followed by OpenAI, Anthropic and Gemini.- 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 (
Introduced in 08F.10 LangGraph Fundamentals"__start__"and"__end__").- Start method
How
Introduced in 01C.7 Shared Memory and Inter-Process Communicationmultiprocessingcreates a child process:fork,spawnorforkserver; the default differs by platform and changed on Linux in Python 3.14.- 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
Introduced in 08F.10 LangGraph FundamentalsTypedDict,dataclassor Pydantic model whose keys become the graph's channels.- 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 (
Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basicsx = 1,print(x),if ...:).- 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
Introduced in 08F.11 Persistence, Durable Execution and Memoryget_state:values,next,config,metadata,created_at,parent_config,tasks,interrupts.- Static breakpoint
A pause before or after a named node, set with
Introduced in 08F.12 Human-in-the-Loop and Control Flowinterrupt_beforeorinterrupt_after; meant for debugging.- 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 (
Introduced in 11A.2 Metrics, Dashboards, SLOs and Alerting/api/v2/status.json).- 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:
Introduced in 01A.9 Files, Paths, JSON and CSVtickets.csv→ stemtickets, suffix.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
Introduced in 03.2 Messages, Roles and Conversation Stateuser_input,model_output,thoughtorfunction_call; the Interactions API uses step types instead of roles.- 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:
Introduced in 03.3 Streaming Responsesstep.start/step.delta/step.stopper step.- 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- 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
Introduced in 03.7 Token Counting, Cost Tracking and Prompt Cachingsession_id) so that provider's cache can hit.- 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;
Introduced in 01A.5 Comprehensions, Iterators and Generatorsforcatches it to end the loop.- 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
Introduced in 08F.11 Persistence, Durable Execution and Memoryput,get,search,deleteandlist_namespaces.- Store (Inspect)
A per-sample key-value scratchpad shared by solvers, tools and scorers and written to the log;
Introduced in 10B.9 Inspect Datasets, Solvers and Task Configuration (optional)StoreModelis its typed, Pydantic form.- 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
Introduced in 03.2 Messages, Roles and Conversation Statetrueon both.- 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
Introduced in 01B.11 NumPy and pandas Essentials for AI Workobjectfor text columns.- str.join
Introduced in 01A.2 Numbers, Strings and Textsep.join(list)builds a string; the fast idiom vs+in loops.- str_replace_based_edit_tool
Anthropic's text-editor tool (
Introduced in 08A.15 Coding and Computer-Use Agentstext_editor_20250728) with view/create/str_replace/insert commands.- 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
Introduced in 03.3 Streaming Responsesdeltaholds only the new content.- Stream cursor
The last
Introduced in 03.3 Streaming Responsessequence_numberorevent_idreceived, used to resume.- Stream helper
An SDK wrapper such as
Introduced in 03.3 Streaming Responsesresponses.stream()ormessages.stream()that consumes the events, accumulates the final message and adds convenience events and methods.- Stream mode
A named kind of streamed output:
Introduced in 08F.14 The Functional API and Streamingvalues,updates,messages,custom,checkpoints,tasks,debug.- Stream obfuscation
OpenAI's random padding on stream events (
Introduced in 03.3 Streaming Responsesstream_options.include_obfuscation) that hides token lengths from network observers.- 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
Introduced in 08F.14 The Functional API and Streamingget_stream_writer(), awriterparameter orruntime.stream_writer) that sends values into thecustomstream.- 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
Introduced in 08F.14 The Functional API and Streamingcustom:<name>events.- 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
Introduced in 08F.14 The Functional API and Streaming{"type", "ns", "data"}yielded whenversion="v2".- StreamTransformer
A class that observes protocol events and builds your own projection, registered through
Introduced in 08F.14 The Functional API and Streamingtransformers=[...].- 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 (
Introduced in 01B.6 Data Validation with PydanticStrictInt), per-model (strict=True) or per-call.- 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
Introduced in 08F.11 Persistence, Durable Execution and MemoryLANGGRAPH_STRICT_MSGPACK=truemode that blocks unregistered types when loading a checkpoint.- 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 (
Introduced in 03.5 Tool Calling: The API Mechanicsstrict: trueon OpenAI and Anthropic; Gemini'sVALIDATEDmode).- 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
Introduced in 01A.2 Numbers, Strings and Text$name-placeholder substitution for fill-in text; safer than f-strings when the template is data, not code.- Strong typing
No implicit type conversion:
Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics"5" + 3raisesTypeErrorinstead of coercing.- 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
Introduced in 01A.3 Control Flow and Functionsmatch/case(3.10+, PEP 634): dispatch on the shape of a value — literals, sequences, mappings, class patterns, alternatives and guards.- 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
Introduced in 08F.6 Prompts, Output Parsers and Structured Outputjson_schema(native),function_calling(forced tool) orjson_mode(valid JSON only); defaults differ per provider class.- 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
Introduced in 08F.6 Prompts, Output Parsers and Structured OutputStructuredOutputError.- StructuredPrompt
A prompt bundled with its output schema (
Introduced in 08F.6 Prompts, Output Parsers and Structured Outputlangchain_core.prompts.structured).- StructuredTool
The tool class
Introduced in 08F.8 Tools and create_agent@toolandStructuredTool.from_functionbuild, with sync and async implementations.- 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
Introduced in 08F.13 Subgraphs and Multi-Agent Systemscreate_agentwhose tools arecreate_agentsubagents.- 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
Introduced in 08F.13 Subgraphs and Multi-Agent Systemscheckpointersetting of a subgraph'scompile():None(per-invocation),True(per-thread) orFalse(stateless).- subgraphs=True
A
Introduced in 08F.14 The Functional API and Streamingstreamoption that also streams from subgraphs and agents used as nodes.- 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
Introduced in 10B.14 Tools and Agents in Inspect: Custom Tools, MCP, react() and Multi-Agent Systems (optional)react()run.- `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,
Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Libraryshell=Trueis dangerous.- 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- 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
Introduced in 10B.16 Evaluating Agents with Inspect, and the Inspect Ecosystem (optional)pass_at()andpass_k()reducers count an epoch as a success, set withvalue=and 1.0 by default, so partial credit counts as failure unless you lower it.- 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
Introduced in 05.8 Metadata Designdoc.doc_typeis a human review decision.- 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
Introduced in 08F.8 Tools and create_agenttriggeris reached; does nothing iftriggeris unset.- 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
Introduced in 08F.15 Patterns, Pitfalls and Migrationlangchain-communityin May 2026.- 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
Introduced in 05.8 Metadata Designsuperseded_bypointer, so current-truth and as-of queries can both be served.- Supersession
Replacing a stale memory by marking the old record
Introduced in 08B.2 Memory for Agents: Short-Term and Long-Termsuperseded_bythe new one — temporal correctness without deletion.- 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)- 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 (
Introduced in 01C.1 Concurrency, Parallelism and Context Switchingsys.getswitchinterval(), 0.005 s observed).- 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- Syntax error
A parse failure — the file can't run at all (
Introduced in 01A.8 Errors, Exceptions, Debugging and LoggingSyntaxError,IndentationError).- 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- SyntaxError
Parse-time failure; nothing ran.
Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics- SyntaxWarning
Compile-time warning (e.g.
Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basicsiswith a literal).- 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 (
Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basicssys.executable,sys.argv,sys.exit).- 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;
Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basicsargv[0]is the script name.- 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
Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Libraryimportreturns the cached object instead of re-running the file.- sys.path
The ordered list of directories the import system searches for modules; the script's directory is first, then
Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard LibraryPYTHONPATH, stdlib, site-packages.- 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
Introduced in 04.5 System Prompts, Roles and Personasinstructions) where only text you wrote may go- system_instruction
Gemini's field for standing instructions: inside
Introduced in 03.2 Messages, Roles and Conversation StateGenerateContentConfigforgenerate_content, and a top-level string for the Interactions API.
T
- @task (Inspect decorator)
Inspect's decorator that registers a function returning a
Introduced in 10B.8 Inspect AI Fundamentals: Task = Dataset + Solver + Scorer (optional)Task, so the CLI can find it by name, its arguments become task parameters, and the log records them.- @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
Introduced in 01A.2 Numbers, Strings and Textt"..."literal (3.14+) that keeps literal text and interpolated values separate in astring.templatelib.Templateinstead of joining them into astr.- 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
Introduced in 07.2 Retrieval Strategies for RAGRetrieverthat returns database rows asHits, enabling SQL+docs fusion under one contract.- 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:
Introduced in 00.2 The Terminal and Shell-czfcreates a gzipped tarball,-xzfextracts,-tzflists.- 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
Introduced in 10B.9 Inspect Datasets, Solvers and Task Configuration (optional)"", which text scorers treat as matched by any output.- Target adapter
The harness seam (
Introduced in 12.8 Red Teaming and Security TestingTargetAdapter.respond) that knows how to call the system under test — fake, HTTP endpoint or agent loop.- 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 (
Introduced in 01B.3 Async Python: async/await and the Event Loopasyncio.create_task,TaskGroup).- 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
Introduced in 10B.8 Inspect AI Fundamentals: Task = Dataset + Solver + Scorer (optional)@taskfunction. It is not the system under test.- Task argument (Inspect)
A parameter of an
Introduced in 10B.9 Inspect Datasets, Solvers and Task Configuration (optional)@taskfunction, set with-T,--task-configortask_args, YAML-parsed on the CLI and recorded in the log.- Task future
The handle a task call returns;
Introduced in 08F.14 The Functional API and Streaming.result()(orawait) gives the value, and the task's exception is raised only there.- Task identity (Inspect)
What makes two runs the same task for an eval set: the
Introduced in 10B.12 Running Inspect Evals for Real: Models, Configuration, Concurrency, Caching, Errors and Eval Sets (optional)@taskname and arguments, the model, its generation config and model args (not base URL or credentials).- Task parameter (Inspect)
An argument of a
Introduced in 10B.8 Inspect AI Fundamentals: Task = Dataset + Solver + Scorer (optional)@taskfunction, set at run time with-T key=value,--task-configortask_args, and recorded in the log.- 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
Introduced in 08E.4 A2A Basics, Agent Skills (SKILL.md) and Tool Selection at ScaleSUBMITTED,WORKING,COMPLETED,FAILED,CANCELED,INPUT_REQUIRED,REJECTED,AUTH_REQUIRED(with aTASK_STATE_prefix in v1.0)- 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
Introduced in 06.1 Embedding Models and APIs in Practiceinput_type, Cohereinput_type, Geminitask_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.- task version (Inspect Evals)
The
Introduced in 10B.16 Evaluating Agents with Inspect, and the Inspect Ecosystem (optional)N-Xversion every Inspect Evals task carries:N, the comparability version, is bumped when scores stop being comparable with earlier runs, andXwhen the task's interface changes; the.evallog records it.- Task view (Inspect)
A
Introduced in 10B.13 Inspect Logs, Analysis and Extending Inspect (optional)ViewerConfigstored with a task that sets Inspect View's default sample columns, sort and score panel for every log the task writes.- task_done() / join()
Queue completion protocol: mark each
Introduced in 01B.4 Concurrency Patterns for I/O-Heavy Workgetdone;joinwaits for all.- 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
Introduced in 08F.6 Prompts, Output Parsers and Structured Outputf-string(default),mustacheorjinja2; selected withtemplate_format.- Template inheritance
Jinja
Introduced in 04.10 Prompt Templates, Versioning and a Prompt Library{% extends %}/{% block %}composition: a base prompt layout that child templates override section by section — includes compose fragments, inheritance composes documents.- 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
Introduced in 10B.9 Inspect Datasets, Solvers and Task Configuration (optional){name}placeholders from sample metadata, then the store, then solver parameters, leaving unknown orNone-valued placeholders in place and mangling unescaped JSON braces.- Template variable / slot
A named placeholder (e.g.
Introduced in 04.10 Prompt Templates, Versioning and a Prompt Library{{ name }}) filled when a template is rendered.- tenacity
The standard Python retry library; policies built from
Introduced in 01B.9 Retries, Timeouts, Backoff and Resiliencestop/wait/retrypieces.- 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
Introduced in 06.5 Vector Databases: Choosing and Using Oneis_tenantpayload-index marker enabling tenant-aware shard placement for isolated, efficient multi-tenant filtering.- 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 (
Introduced in 03.3 Streaming Responsesresponse.completed,message_stop,interaction.completed); a stream that ends without it was interrupted.- 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:
Introduced in 01B.8 Testing with pytesttest_*.pyfiles,test_*functions,Test*classes.- 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
Introduced in 01B.7 FastAPI Basics: Building a Small APITestClientfordeftests,httpx.ASGITransport+pytest.mark.anyiofor async tests.- 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 (
Introduced in 08F.9 RAG with LangChainsplit_text,split_documents,create_documents).- 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
Introduced in 02.8 Reasoning Modelssignaturethat must be passed back unchanged.- 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
Introduced in 03.2 Messages, Roles and Conversation Statethinkingblock, which must be sent back unchanged. See also [Thought signature](#thought-signature).- Thinking-block prefix check
On Claude 5.1 and later, a thinking block is valid only while
Introduced in 03.5 Tool Calling: The API Mechanicssystem,toolsand every earlier message are unchanged.- 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,
Introduced in 08A.10 Agent Patterns: ReAct, Plan-and-Execute, Routing and Orchestrator-Workerstool_calls, tool-result messages.- 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
Introduced in 08F.11 Persistence, Durable Execution and Memorythread_id.- 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
Introduced in 08F.11 Persistence, Durable Execution and Memoryconfig["configurable"]that selects a thread, the checkpointer's primary key.- threading.local / contextvars
Per-thread slot / per-context (per-task) slot.
Introduced in 01C.3 Race Conditions and Thread Safety- ThreadPoolExecutor / ProcessPoolExecutor
Introduced in 01B.4 Concurrency Patterns for I/O-Heavy Workconcurrent.futurespools for threads / separate interpreters.- 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 limit
A wall-clock cap on a sample or scoped block.
Introduced in 10B.15 Sandboxes, Limits, Approval and Long-Horizon Agents in Inspect (optional)- 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
Introduced in 08F.12 Human-in-the-Loop and Control Flowrun_timeout(hard cap),idle_timeout(no-progress limit) andrefresh_on.- Timer heap
The min-heap of
Introduced in 01C.2 Synchronous vs Asynchronous Programming and the asyncio Event LoopTimerHandles ordered by due time.- Timestamp grounding
A video model's ability to map events to correct
Introduced in 09.8 Video UnderstandingMM:SSpositions in its answers — useful but unreliable without verification.- 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
Introduced in 01B.4 Concurrency Patterns for I/O-Heavy Workrate/sec, calls spend tokens.- 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:
Introduced in 03.7 Token Counting, Cost Tracking and Prompt Cachinginputis uncached input (billed at the plain input rate), cached reads and cache writes are separate fields,total_inputis 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.- 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- 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- tomllib
Stdlib read-only TOML parser (3.11+).
Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Library- 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:
Introduced in 08E.1 The Model Context Protocol (MCP)readOnlyHint,destructiveHint,idempotentHint,openWorldHint.- Tool artifact
Extra data (such as the retrieved
Introduced in 08F.9 RAG with LangChainDocuments) attached to aToolMessagefor your application and not sent to the model.- 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
Introduced in 10B.14 Tools and Agents in Inspect: Custom Tools, MCP, react() and Multi-Agent Systems (optional)@toolpattern; calling it returns the configured tool implementation.- 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 (
Introduced in 03.5 Tool Calling: The API Mechanicsfunction_call_output, atoolmessage, atool_resultblock, afunction_responsepart or afunction_resultstep).- 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 (
Introduced in 03.5 Tool Calling: The API Mechanicsclient.beta.messages.tool_runner) that runs the tool-calling loop for you.- 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;
Introduced in 11A.2 Metrics, Dashboards, SLOs and Alertingdeniedcalls are excluded- 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
Introduced in 08D.2 Hands-On: Two-Agent vs Single-Agent, Built, Traced and Evaluated(tool, arguments)pairs- Tool-call parser
A parser that reads an
Introduced in 08F.6 Prompts, Output Parsers and Structured OutputAIMessage'stool_calls(JsonOutputToolsParser,JsonOutputKeyToolsParser,PydanticToolsParser).- 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 (
Introduced in 08E.1 The Model Context Protocol (MCP)mcp-client-2026-09-15): record or copy a server's tool list so later changes cannot reach the model.- 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
Introduced in 03.5 Tool Calling: The API Mechanicssystemmessage that offer or withdraw a tool without editingtools.- tool_call_id
The id on a
Introduced in 08F.5 Chat Models, Messages and Content BlocksToolMessagethat must match theidof the tool call it answers.- 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
Introduced in 10B.14 Tools and Agents in Inspect: Custom Tools, MCP, react() and Multi-Agent Systems (optional)parsing,unknown(a raisedToolError),timeout,file_not_found,limitorapproval; grouping failures by it separates schema, environment and policy problems from model behaviour.- ToolCallLimitMiddleware
Agent middleware that caps tool calls per run or thread, with
Introduced in 08F.9 RAG with LangChaincontinue,endorerrorbehaviour.- `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:
Introduced in 08E.1 The Model Context Protocol (MCP)ToolErrorsurfaces its message to the model as anisErrorresult;MCPErrorfails the whole request as a JSON-RPC error.- `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
Introduced in 08F.8 Tools and create_agentToolMessages through a function you supply, or lets them propagate when it returnsNone.- ToolException
An exception a tool raises to signal an error the model can act on; converted to a tool message when
Introduced in 08F.8 Tools and create_agenthandle_tool_erroris set.- ToolNode and tools_condition
The prebuilt node that runs the last
Introduced in 08F.10 LangGraph FundamentalsAIMessage's tool calls, and the router that loops to it while tool calls remain.- `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- ToolSource
A dynamic source of tools, such as an MCP server connection.
Introduced in 10B.14 Tools and Agents in Inspect: Custom Tools, MCP, react() and Multi-Agent Systems (optional)- 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;
Introduced in 08F.6 Prompts, Output Parsers and Structured Outputhandle_errorscontrols retry feedback.- 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.
Introduced in 03.3 Streaming Responsesasyncio.timeout(), independent of read timeouts. See also [Deadline](#deadline).- Total input
Introduced in 03.7 Token Counting, Cost Tracking and Prompt Cachinginput + cached + written: every prompt token, however billed.- 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;
Introduced in 08F.2 OpenAI Agents SDKadd_trace_processoradds one,set_trace_processorsreplaces the defaults- 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
Introduced in 10B.5 DeepEval Tracing, Component-Level Evals and Agent Evaluationrequires_trace = True, causing DeepEval to attach the nested span-tree evidence_trace_dictto its test case.- 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 (
Introduced in 11A.5 LangSmith, Testing and Deploymentprocess_inputs,process_outputs) that changes what that node's own run records;omit_payloaddrops it.- 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
Introduced in 01C.7 Shared Memory and Inter-Process CommunicationSharedMemoryparameter (3.13+) that controls resource-tracker registration.- 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
Introduced in 11A.5 LangSmith, Testing and Deploymentstrict,unordered,subsetorsuperset: how an agent's tool calls are compared with a reference.- 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
Introduced in 10B.16 Evaluating Agents with Inspect, and the Inspect Ecosystem (optional)transcripts_from().- 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
Introduced in 01A.2 Numbers, Strings and Textstr.translateapplies astr.maketranscharacter map — substitution or deletion without regex.- 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
Introduced in 08A.6 Designing Tools Models Can Use"truncated": truefield telling the model a result was cut and how to get more — the positive counterpart to "silent truncation".- 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
Introduced in 04.5 System Prompts, Roles and Personastrust="untrusted"and asource) set by your code, not by the content- 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
Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics0,0.0,"", empty containers,None,False.- 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 (
Introduced in 01C.4 Deadlocks, Livelock and Starvationacquire(blocking=False)oracquire(timeout=...)).- 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;
Introduced in 01A.10 Type Hints and Writing Readable Codetype X = ...(3.12+) creates a lazily-evaluatedTypeAliasType.- 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
Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basicsint(x),str(x),float(x),bool(x),list(x).- Type hint / annotation
An expression attached to a name (parameter, return, variable) declaring its type; stored on
Introduced in 01A.10 Type Hints and Writing Readable Code__annotations__, never enforced at run time.- Type juggling
Silent cross-type conversion (PHP
Introduced in 01A.11 Coming from PHP, JavaScript or Java: Side by Side==, JS==,Number()) — absent in Python.- 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
Introduced in 01A.10 Type Hints and Writing Readable CodeTruefor static checkers,Falseat run time — import-only-for-typing idiom.- TypeAdapter
Validates any type expression (
Introduced in 01B.6 Data Validation with Pydanticlist[Model], unions, primitives); reuse instances — construction compiles validators.- Typed metadata (Inspect)
Sample metadata validated at load time by a frozen Pydantic model passed to
Introduced in 10B.9 Inspect Datasets, Solvers and Task Configuration (optional)FieldSpec(metadata=...)and read withmetadata_as().- 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;
Introduced in 01A.10 Type Hints and Writing Readable CodeTypeIs(3.13+, PEP 742) narrows both branches,TypeGuard(3.10+) only theTruebranch.- types.GenericAlias
The runtime object
Introduced in 01A.10 Type Hints and Writing Readable Codelist[int]produces; inspect withget_origin()/get_args().- TypeVar / Generic
Classic generics spelling —
Introduced in 01A.10 Type Hints and Writing Readable CodeTlinks input and output types across a signature.- typing.Protocol
Structural interface — satisfied by shape, not inheritance;
Introduced in 01A.6 Classes, Dataclasses and Enums@runtime_checkableenablesisinstance.- Typo-squat
A malicious package published under a name that looks like a popular one (for example
Introduced in 02.10 Limitations and Failure Modesreqeusts).- 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
Introduced in 10B.3 Judges in DeepEval: Models, G-Eval, DAG and Custom MetricsExpectationsverdict for a condition the judge cannot decide from the evidence; DeepEval treats it as an error rather than a pass or a fail.- 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
Introduced in 03.7 Token Counting, Cost Tracking and Prompt Cachinginput.- 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;
Introduced in 01A.2 Numbers, Strings and Texterrors=controls recovery (strict/replace/ignore/backslashreplace).- UnicodeEncodeError
Raised when
Introduced in 01A.2 Numbers, Strings and Textstr.encodecan't represent a character in the target encoding;errors=offersreplace/ignore/backslashreplace/xmlcharrefreplace/namereplace.- 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";
Introduced in 01A.10 Type Hints and Writing Readable CodeX | Nonemeans "X or None".- 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:
Introduced in 01B.8 Testing with pytestMock,MagicMock,patch,autospec,side_effect.- 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 (
Introduced in 02.2 Tokens and Tokenization[UNK],<unk>) that some tokenizers use for text they can't represent. The original text is lost. Byte-level tokenizers never need it.- Unpack[TypedDict]
Types the allowed keys of
Introduced in 01A.10 Type Hints and Writing Readable Code**kwargs(PEP 692).- Unpacking / multiple assignment
Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basicsfirst, second = "ab"— distribute values across names.- 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
Introduced in 10B.10 Inspect Scorers, Metrics, Epochs and the Statistics Inspect Reports (optional)Score.unscored(reason=...), whose value isNaN; it marks a failure of the measuring instrument (for example a grader that gave no verdict), is left out of metrics, and is counted inunscored_samples.- 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
Introduced in 08E.2 MCP in Depth: Primitives, Servers, Clients and Transportsdata- Untrusted content (Inspect View)
The
Introduced in 10B.13 Inspect Logs, Analysis and Extending Inspect (optional)trust_content=Falsesetting that makes the viewer show model-controlled content as literal text and media as placeholders, protecting reviewers.- 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
Introduced in 08F.14 The Functional API and Streaming{node_or_task_name: update}per step, plus__interrupt__and__metadata__keys.- 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
Introduced in 00.4 GitHub and Collaborationgit push -u, so plaingit push/git pullknow where to go.- 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
Introduced in 03.3 Streaming Responseschoicesis empty on OpenAI but not on OpenRouter.- 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
Introduced in 08F.5 Chat Models, Messages and Content BlocksAIMessage(input_tokens,output_tokens,total_tokens, optional detail breakdowns).- 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
Introduced in 10B.3 Judges in DeepEval: Models, G-Eval, DAG and Custom MetricsUSE_OPENAI_MODELwritten bydeepeval set-<provider>that selects the default judge provider- `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
Introduced in 13B.2 Capstone Build A: The Support Copilotfailure_uimaps internal signals to.- uses: / run:
In a workflow step:
Introduced in 00.4 GitHub and Collaborationuses:invokes a prebuilt action;run:executes a shell command.- 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 (
Introduced in 13B.1 Capstone Planning and Scopingtool.uv.workspace+tool.uv.sources).- Uvicorn
The ASGI server that listens on a port and runs your FastAPI/Starlette app;
Introduced in 01B.7 FastAPI Basics: Building a Small APIuvicorn[standard]adds C extensions.- 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
- == vs is
Value equality vs object identity.
Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics- @validate_call
Decorator that validates (and coerces) a function's arguments against its annotations, raising
Introduced in 01B.6 Data Validation with PydanticValidationError;validate_return=Truealso checks the result.- 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.
Introduced in 01B.2 Environment Variables, Configuration and SecretsGOOGLE_API_KEYandGEMINI_API_KEY).- ValidationError
The exception collecting all failures;
Introduced in 01B.6 Data Validation with Pydanticerrors()yieldstype/loc/msg/input/url/ctxper problem.- ValidationInfo
Validator context (
Introduced in 01B.6 Data Validation with Pydantic.data,.field_name,.context) and custom error codes/templates.- 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 (
Introduced in 01A.6 Classes, Dataclasses and EnumsMoney,Point) — equal ⟺ interchangeable.- value_to_float
Inspect's converter from score values to numbers:
Introduced in 10B.10 Inspect Scorers, Metrics, Epochs and the Statistics Inspect Reports (optional)C1,P0.5,IandN0, numbers cast, "yes"/"no" understood, and any unknown value 0 with only a warning.- ValueError
Right type, inappropriate value.
Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basics- 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 (
Introduced in 09.8 Video Understandingr_frame_ratevsavg_frame_rate); breaks naive per-N-seconds sampling and frame-index scene detection.- 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
Introduced in 02.1 Neural Network Basics[0.2, -1.3, 0.8].- 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 (
Introduced in 08F.9 RAG with LangChainadd_documents,similarity_search,as_retriever).- VectorStore protocol
The adapter interface defined in this lesson (
Introduced in 06.5 Vector Databases: Choosing and Using Oneupsert/query/get/deleteoverVectorRecord/ScoredRecord) that keeps application code store-agnostic and testable.- 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 (
Introduced in 02.5 Generation and Samplinglow,medium,high) that asks the model for shorter or longer answers, offered by OpenAI and passed through by OpenRouter.- 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:
Introduced in 10B.4 DeepEval's Built-in Metrics, Opened Up: RAG, Safety, Conversations and Moreyesfor "yes is good" metrics such as Contextual Recall,nofor "yes is bad" metrics such as Toxicity, andyesorborderlinefor lenient ones such as Answer Relevancy.- 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.
Introduced in 00.1 Setting Up Your Computer for Developmentgit version 2.54.0); matters because requirements say "3.11 or newer".- Version control
Recording code history so you can undo, experiment and collaborate;
Introduced in 00.1 Setting Up Your Computer for Developmentgitlocally, GitHub remotely.- 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
Introduced in 09.8 Video Understandinggenerate_contentper-part options for video:start_offset/end_offsetclipping strings andfps(0.0–24.0, default 1.0).- ViDoRe
The visual document retrieval benchmark the ColPali line was built for.
Introduced in 09.9 Multimodal Embeddings and Retrieval- View
A named, stored
Introduced in 00.7 SQL Basics with SQLiteSELECT; holds no data of its own.- View bundle (Inspect)
A static website containing Inspect View and a set of logs, made with
Introduced in 10B.8 Inspect AI Fundamentals: Task = Dataset + Solver + Scorer (optional)inspect view bundle, for sharing results without a server.- 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,
Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard Librarysite-packagesand installed packages, so projects' dependencies stay isolated.- 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
Introduced in 05.4 OCR and Scanned Documentsbase_url.- 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
Introduced in 00.7 SQL Basics with SQLitejournal_mode = WAL: readers and the writer no longer block each other; still one writer.- 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 (
Introduced in 01C.1 Concurrency, Parallelism and Context Switchingtime.perf_counter).- Walrus operator :=
Assignment inside an expression, e.g.
Introduced in 01A.1 Running Python: Programs, the REPL and Syntax Basicsif (n := len(x)) > 3:(Python 3.8+).- 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
Introduced in 01A.8 Errors, Exceptions, Debugging and Loggingwarnings.warn; filters can escalate them to errors.- 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
Introduced in 09.5 Text-to-Speechwavewrites and what Gemini unary TTS returns.- Weak reference
A reference that does not keep its target alive; it returns
Introduced in 01C.6 Python Memory ManagementNoneonce the target is freed.- 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
Introduced in 01C.6 Python Memory Management__del__.- 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
Introduced in 10A.3 Deterministic Metrics and Code-Based Gradersrun_graders(weights=...)— per-grader weights on the soft mean; they tune the aggregate but can never outvote a hard gate.- 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 (
Introduced in 01B.10 Logging, Debugging and Packaging: Putting the Toolkit Together.whl) is the installable zip with.dist-infometadata; an sdist (.tar.gz) is the source archive —uv buildproduces both, users install the wheel.- 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
Introduced in 07.1 RAG Architecture: From Question to Grounded AnswerHit.metadatawith doc_id/section/title for citations.- 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,
Introduced in 08F.5 Chat Models, Messages and Content BlocksTypedDictor dict) instead of anAIMessage; takesmethodandinclude_raw.- 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
Introduced in 01B.1 Project Setup with uv: Environments, Dependencies and Tooling.venv.- 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
Introduced in 08A.15 Coding and Computer-Use Agentsgit worktree/clone so your checkout is untouched.- 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
Introduced in 08F.8 Tools and create_agentwrap_model_callorwrap_tool_callmiddleware that receives a request and a handler and decides how often to call the handler.- 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-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
Introduced in 08E.3 Remote MCP: OAuth, Gateways and Many Servers401or403response header telling a client where to find metadata and which scope is needed
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- 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
Introduced in 01A.5 Comprehensions, Iterators and Generatorsnext().- Yield fixture
A fixture using
Introduced in 01B.8 Testing with pytestyieldto split setup (before) from teardown (after).- 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
Introduced in 10A.5 Calibrating and Validating JudgesTPR + TNR − 1; the judge's overall skill; correction needs J > 0.
Z
- Z-score
Introduced in 11A.2 Metrics, Dashboards, SLOs and Alerting(value - trailing mean) / trailing std; a dimensionless score for flagging values unusual relative to recent history.- 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 (
Introduced in 10B.13 Inspect Logs, Analysis and Extending Inspect (optional)zero_samples()), with the reason recorded.- 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
Introduced in 01A.5 Comprehensions, Iterators and Generatorszipvariant that pads shorter iterables withfillvalue.- 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 (
Introduced in 01A.7 Modules, Packages, Imports and a Tour of the Standard LibraryZoneInfo("Asia/Kolkata")).
No terms match.
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