CONTENTS
Glossary
Agent. A system where the model decides its own sequence of steps and tool calls, in a loop, until the task is done.
Agent-computer interface (ACI). The tools, their descriptions, parameters and outputs, as designed for a model to use. Coined in Anthropic's "Building effective agents."
Arithmetic intensity. Math operations per byte of memory moved. Low intensity means a workload is limited by memory bandwidth rather than compute.
Axial coding. Grouping free-form notes about failures into categories and counting them. The second step of error analysis.
Batching. Running many requests' computations together so each read of the model's weights does more work.
BM25. A classic keyword relevance score that weights rare terms more and normalizes for document length.
Bi-encoder. A model that embeds query and document separately, enabling precomputed indexes.
Cascade. Trying a cheaper model first and escalating to a stronger one only when a check fails.
Chunking. Splitting documents into retrievable pieces.
Compaction. Summarizing older context to free space while keeping its meaning.
Constrained decoding. Restricting which tokens a model may generate so output always matches a schema or grammar.
Context engineering. Deciding what information goes into the model's context window at each step, and in what form.
Context rot. The decline in model performance as input length grows, documented by Chroma in 2025.
Continuous batching. Re-forming the batch at every decode step so requests join and leave independently.
Criteria drift. The tendency for people's evaluation criteria to change as they grade outputs.
Critique shadowing. Building an LLM judge by having a domain expert give pass/fail labels with written critiques, then iterating the judge until it agrees with the expert.
Cross-encoder. A model that reads a query and a document together to score relevance. Accurate but slow; used for reranking.
Decode. The phase of inference that generates output tokens one at a time. Memory-bandwidth-bound.
Defensive UX. Interface design that assumes the AI is sometimes wrong: sources, easy editing, confirmation before actions.
Durable execution. Persisting a long-running process's state after each step so it can resume after crashes.
Embedding. A vector representation of text where similar meanings are close together.
Error analysis. Reading real traces, noting failures, categorizing and counting them to decide what to fix and evaluate.
Eval. A repeatable test of system behaviour on a dataset, with a grader and a score.
Gateway. A single service between your code and model providers, handling routing, keys, limits, retries, logging and cost.
Goodput. The highest request rate at which requests still meet latency targets.
Guardrail. A check on inputs or outputs that blocks or modifies content that shouldn't pass.
Harness. The structure around a model that carries a long task across many context windows: tools, progress files, checks, instructions.
HNSW. Hierarchical Navigable Small World, a graph-based index for fast approximate nearest-neighbour search.
HyDE. Hypothetical Document Embeddings: embed a model-written hypothetical answer and search for real documents near it.
Hybrid search. Combining keyword (BM25) and semantic (embedding) search.
Idempotency. The property that performing an operation twice has the same effect as performing it once.
Idempotency key. A unique identifier sent with a write so the receiver can ignore duplicates.
Indirect prompt injection. Instructions planted in content the system processes (web pages, emails, documents) rather than typed by the user.
KV cache. Stored keys and values for previous tokens, reused during decode. Grows with context length.
Lethal trifecta. Simon Willison's term for an agent that has private data access, untrusted content exposure and external communication together.
LLM-as-judge. Using a model to grade outputs against criteria.
Lost in the middle. The finding that models use information at the start and end of long contexts better than information in the middle.
MCP (Model Context Protocol). An open protocol for connecting AI applications to tools, resources and prompts provided by servers.
Open coding. Writing free-form notes on traces about what went wrong. The first step of error analysis.
Orchestrator-workers. A pattern where a lead model breaks a task into subtasks dynamically and delegates them.
PagedAttention. Storing the KV cache in small non-contiguous blocks, like virtual memory pages, to avoid wasted GPU memory.
pass@k. Probability that at least one of attempts succeeds.
pass^k. Probability that all attempts succeed. Measures consistency.
Prefill. The phase of inference that processes the input prompt in parallel. Compute-bound; sets most of TTFT.
Prompt caching. Provider-side reuse of computation for a repeated prompt prefix, billed at a discount.
Prompt injection. Untrusted text containing instructions that the model follows.
RAG (retrieval-augmented generation). Fetching relevant information at request time and adding it to the model's context.
ReAct. A pattern where a model alternates reasoning and tool-using actions.
Reciprocal Rank Fusion (RRF). Merging ranked lists by summing across lists, with by convention.
Recall@k. The fraction of relevant items that appear in the top results.
Reranking. Re-scoring a shortlist of retrieved results with a more accurate, slower model.
Routing. Classifying requests and sending each to an appropriate handler, prompt or model.
Rule of Two. Meta's guideline that an agent should have at most two of: untrusted input, sensitive access, and state change or external communication.
Semantic caching. Returning a stored response for a request that's similar (not identical) to a past one.
Speculative decoding. Using a small draft model to propose tokens that the large model verifies in one pass.
Span. One step within a trace, with timing and attributes.
Structured output. Model output that follows a defined schema, such as JSON.
Trace. The full record of a request through the system, made of nested spans.
TTFT (time to first token). Time from sending a request to receiving the first output token.
TPOT / ITL (time per output token / inter-token latency). Time between consecutive output tokens during decode.
Workflow. A system where code, not the model, defines the sequence of LLM calls and tool uses.