Reference

Glossary

239 terms used in the lessons, each linked back to where it is explained.

A

A/B test
An online experiment that sends different users to two versions and compares real-use signals such as edits, retries and abandonment. It measures real use, but it is noisy and arrives after release.
Abstention
A system declining to answer, or asking a clarifying question, when retrieval is empty or weak. Calibrate the gate on labelled data.
Access control list (ACL)
The record of who may read a document. In RAG it is stored as metadata and enforced inside retrieval, not left to the prompt.
ACLAbbreviation
Short for access control list: the record of who may read a document, enforced inside retrieval.
Adaptive RAG
A RAG variant that routes each query to no retrieval, single-shot retrieval or multi-step retrieval.
Agent
A system in which the model decides its own steps and tools in a loop until a goal is met. It costs more than a fixed workflow and errors can compound.
Agent memory
State kept by an agent. The course splits it into four types: working, episodic, semantic and procedural. Short-term memory is the current context and scratchpad; long-term memory is stored outside and retrieved when relevant.
Agentic RAG
A RAG design in which the model decides whether, what and how often to retrieve. It needs step limits, tracing and guardrails, and its cost and latency vary.
ANNAbbreviation
Short for approximate nearest neighbor search: finding very close, not always the closest, vectors with an index, trading some recall for speed and memory.
Answer relevance
Whether the answer addresses the question that was asked.
API-only model
A model you reach only through a provider's API. No infrastructure to run and often top quality, but your data goes to the provider and you cannot change the weights.
Approximate nearest neighbor (ANN) search
Finding very close, though not always the closest, vectors with an index. You trade some recall for lower latency and memory.
Autoregressive generation
Producing text one token at a time, where each new token is appended to the input before the next step. This is why output length drives latency.

B

Base rate
How common the thing you are detecting is. When the false-positive rate is not far below the base rate, most blocks are false positives.
Batch API
A provider interface that runs requests asynchronously at lower cost in exchange for delayed results.
Batch invariance
The property that a request's result does not depend on which other requests share its batch. Many inference kernels lack it, which is one reason temperature 0 is not fully deterministic.
Benchmark contamination
Benchmark content having leaked into a model's training data, which inflates its scores. Use public benchmarks to shortlist, not to decide.
Best-of-N
Generating N answers and keeping the one a checker or reward model scores highest. It spends more inference compute for a better pick.
Bi-encoder
A model that embeds query and document separately, so document vectors can be precomputed. Fast, used for first-stage retrieval.
Blast radius
How much damage one failure or compromise can cause. Autonomy and permissions should match it.
BM25
A keyword ranking function that scores documents by term frequency, term rarity and length. It catches exact terms and identifiers that embeddings miss.
Bootstrap
Resampling the test cases with replacement many times and recomputing a metric each time, to get an uncertainty interval without a formula.
BPEAbbreviation
Short for byte-pair encoding: building a subword vocabulary by repeatedly merging the most frequent adjacent pair.
Byte-pair encoding (BPE)
A way to build a subword vocabulary by repeatedly merging the most frequent adjacent pair of symbols. Any text, even an unseen word, can then be written from a fixed set of pieces.

C

Canary release
Sending a small share of real traffic to a new version before full rollout, with a way to roll back.
Causal mask
A rule in attention that blocks each token from looking at later tokens. Without it the model could copy the answer it is supposed to predict.
Chain-of-thought (CoT)
Having the model write intermediate reasoning steps before the answer. It can help multi-step problems, but it costs tokens and latency, and the written reasoning may not be what drove the answer.
Chat template
The exact message format a model was trained with. Training on a different format from production is a common cause of a model that looks good offline and worse live.
Chunk
A piece of a document that is embedded and retrieved as one unit. Its size and boundaries strongly affect retrieval quality.
Chunk overlap
Repeating a bit of text at chunk boundaries so facts there stay whole in at least one chunk. The cost is more, near-duplicate chunks.
Chunked prefill
Splitting a long prompt's prefill into pieces so other users' decode steps keep running. It smooths streaming for others at some cost to the long prompt's first token.
Chunking
Splitting documents into chunks before indexing. Small chunks match precisely but lose context; large chunks keep context but blur the match.
Citation
A pointer from a claim in the answer to its source chunk. Its presence does not prove the source supports the claim, so check citation accuracy.
Cohen's kappa
A measure of agreement between two raters, such as judge and human, corrected for agreement expected by chance. Raw percent agreement misleads when one label dominates.
Compensating action
A step that undoes an earlier side effect, such as cancelling a hold, when a database transaction cannot roll it back. Run them in reverse order on failure; some actions have no undo and need approval.
Constrained decoding
Restricting which tokens the model may produce at each step so the output must fit a schema. The shape conforms; the content can still be wrong.
Context assembly
The step before generation that de-duplicates, orders and trims retrieved chunks to a token budget and attaches source ids.
Context compaction
Summarising or trimming earlier context to free space. Must-keep rules should be pinned verbatim so a summary cannot drop them.
Context distraction
In this course's taxonomy, lower accuracy caused by extra, irrelevant context. Measure accuracy with and without it.
Context drift
In this course's taxonomy, loss of a constraint or fact after repeated summarising. Test with probe questions after each compaction.
Context engineering
Deciding what goes into the context window at each step. One common grouping (LangChain) names four moves: write, select, compress and isolate.
Context overflow
In this course's taxonomy, the context growing past the window so calls fail or the oldest content is silently cut. Budget tokens per section and compress or isolate earlier work.
Context precision
A RAGAS-style retrieval metric for whether the relevant retrieved context ranks high in the list.
Context recall
A RAGAS-style retrieval metric for whether the retrieved context covers what the gold answer needs.
Context window
The maximum number of tokens a model can take in and produce in one request. A larger window is not free: you pay per token, and attention work and KV-cache memory grow with length.
Contextual retrieval
A chunking technique where a model writes a short note placing each chunk in its document, and the note is added to the chunk before embedding and BM25 indexing. It costs one extra model call per chunk at ingest.
Continuous batching
Scheduling work per decode step so finished requests leave a batch and new ones join immediately.
Contrastive training
Training that pulls matching pairs of texts together and pushes others apart in vector space. It is why close vectors tend to mean similar meaning.
Corrective RAG (CRAG)
A RAG variant that grades retrieved documents and falls back, for example by rewriting the query or searching the web, when they are weak.
Cosine similarity
A measure of the angle between two vectors, ignoring their length. It is the usual default for text embeddings, provided the index uses the metric the model expects.
CoTAbbreviation
Short for chain-of-thought: having the model write intermediate reasoning steps before the answer.
CRAGAbbreviation
Short for corrective RAG: a variant that grades retrieved documents and falls back when they are weak.
Cross-encoder
A model that reads query and passage together and outputs a relevance score. More accurate, but one call per pair, so it reranks a shortlist.

D

Decode
The phase after prefill where one token is generated per step. Each step has to read the weights and the KV cache, so it is usually limited by memory bandwidth.
Defence in depth
Stacking several imperfect controls so one failure is not fatal: prompts, data marking, screening, moderation, output checks, least privilege and monitoring.
Delimiter
A marker such as a tag or fence that separates instructions from untrusted data in a prompt. It lowers injection risk but does not remove it.
Deterministic check
A rule-based test such as schema validity, a regex or unit tests. It is fast, free and consistent.
Deterministic chunk ID
A chunk id that comes out the same each time the same input is ingested, such as the document id plus the chunk number or a hash of the chunk's text. Re-running ingestion then updates chunks instead of duplicating them. Old chunks of an edited or shortened document still have to be deleted, because a changed chunk can get a new id.
Dev set
The data you iterate on while building.
Direct prompt injection
An attack typed by the user into their own input.
Distillation
Training a small model on a large model's outputs to keep a narrow task's quality at lower cost and latency.
Dot product
A similarity score that multiplies matching components and adds them. It mixes angle with length, so use the metric the embedding model was trained for; on unit-length vectors it equals cosine.
DPO
Direct preference optimization: trains directly on preference pairs, without a separate reward model or reinforcement-learning loop. It still uses a frozen reference copy of the model.

E

Embedding
A list of numbers (a vector) that represents a token, chunk or query so that similar meanings sit close together. Used for search, clustering and as the model's input.
Embedding model
A model whose job is to turn text into one fixed-length vector. Index and query must use the same one, because each model builds its own vector space.
Embedding table
The learned matrix with one row per token in the vocabulary. Looking up a token id returns its row, and the table is trained together with the rest of the model.
Episodic memory
Timestamped records of past interactions, often stored as summaries in a vector store.
Error analysis
Reading real failing traces, sorting them into categories and measuring the top ones before choosing metrics.
Error compounding
If each step succeeds with probability p, independently, n steps all succeed with probability p to the power n, so long chains fail more than single steps suggest.
Euclidean distance
The straight-line distance between two vectors. On unit-length vectors it ranks results the same as cosine.
Exact match and F1
Reference-based metrics for tasks with a gold answer, such as extraction. Exact match requires an identical answer; F1 scores partial overlap.
Excessive agency
Harm from an agent that has too many tools, too much permission or too much autonomy.
Executor
The application code that receives a model-proposed tool call and runs it. It must validate arguments, authorize from the real session, apply timeouts and treat results as untrusted.

F

Faithfulness
Whether an answer's claims are supported by the retrieved context. It is a generation metric, separate from whether the answer is correct.
False negative
In a guardrail or classifier, an attack or harmful item that passes.
False positive
In a guardrail or classifier, a legitimate request or item that is blocked or flagged.
Few-shot prompting
Putting a few worked examples in the prompt so the model copies the pattern. No weights change, but you pay for the example tokens on every call.
Field-level accuracy
The share of individual extracted fields, such as a total or a date, that match labelled values. It is a core metric for document extraction.
Fine-tuning
Updating a model's weights on labelled examples to teach a consistent behaviour, style or format. It is a poor way to add or update facts.
FlashAttention
A way of computing attention that reduces reads and writes to slow GPU memory, giving the same result faster.
Forgetting (catastrophic forgetting)
The loss of general abilities a model was not trained to keep after fine-tuning. Mix in general data and re-run regression tests.
Function calling (tool calling)
The model emits a structured request with a tool name and arguments, and your code runs it and returns the result. The model never executes anything itself.

G

Golden set
A curated set of questions with known good answers or sources, used to score a system on every change. Keep slices tagged and add real failures over time.
Goodput
The rate of requests that meet the latency targets. Throughput can look high while many users get an unacceptable experience. DistServe uses a stricter version: the highest request rate at which a target share of requests meets the limits.
GQAAbbreviation
Short for grouped-query attention: query heads share key and value heads, which shrinks the KV cache.
Graceful degradation
Falling back to a simpler, known-quality path when a component fails, such as skipping the reranker. Never drop permission filtering.
GraphRAG
A RAG variant that builds a graph of entities and relations from the corpus. It suits corpus-wide (global) questions and multi-hop ones, with costly indexing and a graph that can go stale.
Greedy decoding
Always picking the single most likely token. It is what temperature 0 amounts to, and it still does not guarantee identical outputs run to run.
Grounding
Tying an answer to supplied sources, such as retrieved passages, so claims can be checked.
Grouped-query attention (GQA)
An attention variant in which several query heads share one set of key and value heads. Fewer KV heads means a smaller KV cache. Multi-query attention (MQA) is the extreme case with one KV head.
Guardrail
A check around a model, on input, output or actions. It reduces risk but does not solve prompt injection.

H

Hallucination
Fluent output that is not supported by the source or by fact. RAG reduces it by grounding answers, but does not eliminate it.
Held-out set
Data kept aside to gate releases. If you tune against it, it becomes another dev set and its score stops meaning anything.
HNSW
Hierarchical Navigable Small World, a layered graph index. Search starts in a sparse top layer and descends to a dense bottom layer. High recall, memory-heavy.
Hosted tool
A tool such as web search or code execution that runs on the provider's infrastructure. Less code for you, less control, and possible extra charges.
Human approval
Requiring a person to confirm an irreversible, high-value or external action, such as payments or deletions, before it runs.
HyDE
Hypothetical document embeddings: the model writes a plausible answer and that text is used to search. It helps when queries and documents are phrased differently, but a wrong draft can bias retrieval.

I

Idempotency key
A unique value sent with a side-effecting request so the receiver can recognise a repeat and not act twice. It protects against retries and loops.
Improper output handling
Passing model output to a browser, database or shell without validating or encoding it. Treat output as untrusted input.
Index alias
A name that points to the live index version. Swapping it switches versions at once and allows one-step rollback.
Indirect prompt injection
An attack hidden in third-party content the model reads, such as a web page, email, retrieved document or tool result.
Ingestion
The offline part of a RAG system: parse, chunk, embed and index documents. Safe ingestion is idempotent, incremental and records model and chunker versions.
Inter-token latency
The gap between successive output tokens (also called time per output token, TPOT), which sets how smooth streaming feels. It reflects decode speed and batch pressure.
IVF
Inverted file index: vectors are grouped into clusters around learned centres, and a query scans only the nearest clusters. Lighter on memory than HNSW, and needs training on representative data.

J

Jailbreak
A direct attack aimed at getting the model to break its own safety rules.
JSON mode
A setting that makes the model return syntactically valid JSON. It does not guarantee the keys or types match your schema.
JSON Schema
A standard way to describe the shape and types of JSON. Providers use it to define tool arguments and structured outputs, and support only a subset of it.

K

KV cache
Stored key and value vectors of earlier tokens, reused at each decode step so they are not recomputed. It saves compute but its memory grows with context length and concurrent requests. It is not a response cache.

L

Large language model (LLM)
A neural network trained on very large amounts of text to predict the next token. Chaining that prediction step by step lets it write, answer and follow instructions.
Latency budget
An end-to-end time target split among stages such as retrieval, rerank and generation, so each stage has a limit.
Layout analysis
Detecting the structure of a page, such as columns, tables, headings and reading order, so extracted text keeps its meaning.
Least privilege
Giving each agent and tool only the access its task needs, with read kept apart from write or send, so an attack has a small blast radius.
Lethal trifecta
The combination of private data, exposure to untrusted content and an outbound channel in one agent. Together they allow data theft, so do not combine all three.
LLMAbbreviation
Short for large language model: a network trained on large amounts of text to predict the next token.
LLM-as-judge
Using a model to score outputs against a rubric or pick the better of two. It scales, but has its own biases and must be validated against human labels.
Logits
The raw scores the model gives each vocabulary token at a step, before they become probabilities. Sampling settings such as temperature act on them.
LoRA
Low-rank adaptation: freeze the base weights and train a small low-rank update, a tiny fraction of the parameters. Adapters are small, swappable and mergeable.
Lost in the middle
The finding that models use information in the middle of a long context less reliably than information at the start or end.

M

Maximal marginal relevance (MMR)
A selection method that balances relevance against redundancy, so the top-k results are not near-duplicates.
MCPAbbreviation
Short for Model Context Protocol: an open protocol connecting a host application to servers that expose tools, resources and prompts.
MCP client
The component inside an MCP host that keeps one connection to one MCP server. The host runs one client per server and relays tool lists and calls between the model and that server.
MCP host
The AI application, such as an IDE or chat app, that holds one MCP client per server and shows the servers' tools to the model through tool calling. The model never talks to a server directly; the host mediates, so approvals, logging and limits live there.
MCP server
A program that exposes tools, resources and prompts through MCP. Connecting one means trusting text it controls.
MCP tools, resources and prompts
The three things a server offers: tools are actions the model invokes, resources are context identified by URI, and prompts are templates the user picks.
Mean reciprocal rank (MRR)
The average of 1/rank of the first relevant result across queries, counting 0 for a miss. It rewards ranking the right item higher.
Memory-bandwidth-bound
Limited by how fast data can be read from memory rather than by arithmetic. Decode is typically this.
Metadata
Data about a chunk such as source, section, page, date or access rights. It supports filtering, citations and permission checks.
Metadata filter
A condition on fields such as department, date or permission applied to a vector search. Applied after the search it can return fewer than k results. See post-filtering.
MMRAbbreviation
Short for maximal marginal relevance: choosing results that are relevant and different from those already chosen.
Model Context Protocol (MCP)
An open protocol through which a host application connects to servers that expose tools, resources and prompts. It turns N x M custom integrations into N + M.
Model routing
Sending easy requests to a small, cheap model and hard ones to a stronger one. It saves cost when most requests stay on the small model; check quality per query type.
Moderation
Detecting harmful content such as hate or violence. It is not an injection detector.
MRRAbbreviation
Short for mean reciprocal rank: the average of 1/rank of the first relevant result, counting 0 for a miss.
Multi-agent system
Several coordinating agents. Justified for broad, parallel work or separate permissions; otherwise it adds tokens, latency and failure modes.
Multi-head attention
Several attention computations run in parallel (heads), each free to learn a different relationship such as syntax or coreference. Their outputs are concatenated.
Multi-tenancy
One system serving many customers whose data must stay separate. Permissions, caches and indexes must be scoped by tenant.

N

nDCG
Normalized discounted cumulative gain: a ranking metric that rewards putting highly relevant items earlier and handles graded relevance, not just relevant or not.
nprobe
The IVF query setting for how many clusters to scan. More probes raise recall and latency.

O

Observability
Recording enough about each request, such as versions, inputs, retrieved ids, tokens, latency and cost, to see what happened and replay failures.
OCRAbbreviation
Short for optical character recognition: software that reads text from images of pages.
Offline evaluation
Running a fixed test set against a change before release. It catches regressions, including rare intents.
Online monitoring
Watching live traffic for errors, latency, cost and drift. It catches what offline tests cannot see.
Open-weight model
A model whose weights you can download. You can self-host and fine-tune it and keep data in your infrastructure, but you run serving and operations and must read the license.
Optical character recognition (OCR)
Software that reads text from images of pages. It is one step in reading scans, often paired with layout analysis.
Outcome grading
Checking the state of the world after an agent runs, such as the database row or passing tests, instead of trusting its final message.
Overfitting
A model memorising its training examples and generalising worse.

P

Page-image retrieval
Embedding page images directly and retrieving whole pages, skipping text parsing. It sees layout, but the index is larger and the generator still has to read the page.
PagedAttention
Storing the KV cache in on-demand blocks to avoid fragmentation, which allows larger batches and prefix sharing.
Parent-child retrieval
Matching on small chunks and then returning their larger parent section. It gives precise matching with more context, at the cost of bigger prompts.
Parsing
Turning a source file such as a PDF into clean text and structure. It is the usual cap on document RAG, because a fact lost here cannot be recovered later.
pass@k
The chance that at least one of k runs succeeds. It hides run-to-run variance.
pass^k
The chance that all k runs succeed. It is the right measure for an agent that must work every time.
Percentile latency (p50, p95)
The time under which 50 percent or 95 percent of requests finish. The tail (p95) shows what the slower users experience, which averages hide.
pgvector
An extension that adds vector search to PostgreSQL. A common first choice when you already run Postgres.
Pipeline parallelism
Splitting a model by layers, so different GPUs hold different whole layers and each passes its output to the next. It also lets a model too large for one GPU run, usually with less communication between GPUs than tensor parallelism needs.
Plan-then-execute
An agent pattern that writes a plan first and then carries it out. It is predictable and reviewable, but brittle when the world deviates.
Position bias
A judge's tendency to favour an answer because of where it appears in the prompt. Swapping the order in pairwise comparisons helps.
Positional encoding
Extra information that tells the model where each token sits in the sequence. Attention alone has no sense of order, so position must be injected.
Post-filtering
Applying a metadata filter after the nearest-neighbour search. Filtered-out candidates leave fewer than k results. The alternative is filtering inside the search; see metadata filter.
Precision@k
The fraction of the top k retrieved items that are relevant.
Preference tuning
Fine-tuning on a prompt with a preferred and a rejected response, to teach what people prefer.
Prefill
The first phase of a request, in which the whole prompt is processed in parallel. It sets time to first token and is usually limited by compute.
Prefill/decode disaggregation
Running prefill and decode on separate GPU pools so the two phases do not interfere. It costs more machines and KV transfer.
Prefix caching
Reusing the KV cache of a prompt prefix shared by requests, so the shared part is not recomputed. The serving-engine counterpart of a provider's prompt caching.
Pretraining
The first, large training stage: next-token prediction over a huge text corpus. Most language ability and world knowledge come from it.
Procedural memory
Stored instructions or skills that tell the agent how to do things, such as instruction files.
Product quantization (PQ)
A vector compression method that splits each vector into sub-vectors and stores, for each, the id of its nearest entry in a small learned codebook. It saves memory and speeds up distance checks, at some loss of recall.
Prompt
The full input sent to a model: instructions, context, examples and the user's request. Its wording and structure change the output, so changes should be measured.
Prompt caching
A provider feature that reuses the computed state of an identical prompt prefix. Cache reads cost a fraction of normal input and the first token comes sooner, while cache writes can cost a premium. Put static content first. Not the same as prefix caching, which happens inside your own serving engine.
Prompt injection
Text that changes what a model does in a way its operator did not intend. No guardrail fully prevents it; the aim is to limit what a hijacked model can do.

Q

QLoRA
LoRA on top of a base model held in 4-bit precision, which cuts memory a lot at the cost of slower steps. Check quality on your task.
Quantization
Storing numbers with fewer bits. For vectors it saves memory; for model weights it cuts memory and the bytes read per decode step. Both cost some rounding error, so test on your own eval set.
Query transformation
Rewriting a query before retrieval, for example with multi-query, decomposition or step-back. Each adds a model call and can drift from the user's intent.
Query, key and value (Q, K, V)
Three vectors computed for each token in attention. Queries are compared with keys to get weights, and the weights mix the values.

R

RAGAbbreviation
Short for retrieval-augmented generation: putting retrieved content in the prompt so the answer is grounded in it.
Re-embedding
Recomputing all vectors with a new embedding model. Build a new index version in the background, test it, then swap an alias.
ReAct
An agent loop of thought, action (a tool call) and observation (the result), repeated until done or a stopping control fires.
Reasoning model
A model trained to spend extra output on working through a problem before answering. It helps hard multi-step tasks and costs more time and tokens.
Reasoning tokens
Tokens a reasoning model generates while thinking. They are billed as output and count toward the output limit even when the API does not return them.
Recall@k
The share of the relevant or true top-k items that appear in the top k results. For an ANN index it measures the recall lost to approximation.
Reciprocal rank fusion (RRF)
A way to merge ranked lists by summing 1/(k + rank) per list, with k often 60. It uses ranks only, so incompatible score scales need no calibration.
Red-teaming
Attacking your own system with realistic attempts before release to find what to fix.
Refusal
A response in which the model declines to answer. Code that parses structured output has to handle it, as it may not match the schema.
Reranking
Re-ordering a shortlist of retrieved candidates with a more accurate model. It cannot recover a chunk the first stage failed to return.
Retrieval-augmented generation (RAG)
Retrieving relevant external content and putting it in the prompt so the answer is grounded in it, without changing model weights. Good for fresh, citable knowledge.
Reward model
A model that scores outputs by how well they match preferences. It is used in RLHF and to pick the best of several answers.
RLHF
Reinforcement learning from human feedback: train a reward model on preferences, then optimise the model against it with reinforcement learning.
ROUGE and BLEU
Metrics that compare word overlap between an output and a reference. They are weak for open-ended text, where many different answers are good.
RRFAbbreviation
Short for reciprocal rank fusion: merging ranked lists by summing 1/(k + rank) per list.

S

Sampling
Choosing the next token from the model's probability distribution rather than always taking the top one. Settings such as temperature, top-k and top-p shape it.
Self-attention
A step where each token looks at the visible tokens, including itself, and takes a weighted mix of their information. It lets the model link distant words and runs in parallel across positions.
Self-consistency
Sampling several chain-of-thought answers and taking the majority. It raises reliability on short answers that can be voted on, at about N times the cost and latency.
Self-preference bias
A judge's tendency to favour outputs from its own model family. Using a judge from another family helps.
Self-RAG
A RAG variant in which a specially trained model emits reflection tokens that decide whether to retrieve and judge whether passages are relevant and its answer is supported. It cannot be added to an ordinary model with a prompt.
Semantic cache
A cache that returns a stored answer for a similar question. It can serve a wrong answer or cross a tenant boundary, so use a strict threshold and scope keys.
Semantic memory
Stored facts about a user or domain, kept in a profile or key-value store.
Sentence-window retrieval
Matching a single sentence and returning it with a few neighbouring sentences on each side.
SFTAbbreviation
Short for supervised fine-tuning: fine-tuning on pairs of a prompt and an ideal response.
Shadow traffic
Sending a copy of real requests to a new version without showing its answers to users, to compare behaviour safely.
Softmax
A function that turns a list of scores into probabilities that sum to 1. Used on logits for the next token and inside attention.
Speculative decoding
A cheap drafter, often a small model, proposes several tokens and the large model verifies them in one pass. The output distribution is preserved, and the speed-up depends on how often drafts are accepted.
stdio transport
The MCP transport for local servers run as subprocesses of the host. Remote servers use Streamable HTTP instead.
Stopping controls
The limits that end an agent loop: a checkable done criterion, step cap, time and cost budgets, loop detection and escalation to a human.
Streamable HTTP
The MCP transport for remote servers, in which each message is an HTTP POST to one endpoint. It replaces the older, deprecated HTTP+SSE transport.
Streaming
Sending output tokens as they are generated. It improves perceived latency, not total latency or cost.
Strict mode
A tool-calling setting that makes arguments follow the schema more reliably. It does not check permissions or whether the values make sense.
Structured output
A reply that follows a defined shape, such as JSON matching a schema. When the provider enforces the schema, the form is reliable but the values can still be wrong, and a truncated reply or a refusal may not match, so validate anyway.
Supervised fine-tuning (SFT)
Fine-tuning on pairs of a prompt and an ideal response.
System prompt
Instructions set by the application that define the model's role and rules for a conversation. It helps steer behaviour but is not a security boundary.

T

Temperature
A sampling setting that divides the logits before softmax. Higher values flatten the distribution (more random); lower values sharpen it. At 0 the choice is greedy, which is more repeatable but not guaranteed identical across runs.
Tensor parallelism
Splitting each layer's weight matrices across several GPUs, so every GPU holds a slice of every layer and they exchange partial results at each layer. It lets a model too large for one GPU run, and it needs fast links between the GPUs.
Test-time compute
Extra computation spent when answering, rather than in training, to get better results. Longer reasoning, sampling several answers and verifying are examples.
Throughput
The total work a system completes per unit time, such as tokens or requests per second.
Time to first token (TTFT)
The delay from sending a request until the first output token arrives. It is driven by queueing and prefill.
Token
The unit a model reads and writes: a word, part of a word, a symbol or a byte sequence. Cost, speed and context limits are counted in tokens, not words.
Tokenizer
The component that splits text into tokens and maps them to integer ids, and back. Each model family has its own, so count tokens with the tokenizer of the model you call.
Tombstone
A marker recording that a document was deleted, so the deletion reaches the index and the content stops being retrieved.
Tool definition
The name, description and parameter schema that tell the model what a tool does. It is all the model knows about the tool, so vague ones lead to wrong calls.
Tool-output bloat
Tool results that fill the context with more tokens than the step needs. Trim or summarise them before they re-enter the prompt.
Top-k
A sampling filter that keeps only the k highest-probability tokens and samples among them. The cutoff is a fixed count, whatever the distribution looks like.
Top-p (nucleus sampling)
A sampling filter that keeps the smallest set of tokens whose cumulative probability reaches p. It keeps few tokens when the model is confident and more when it is unsure.
Trace
The recorded path of one request through a system, with each stage's inputs, outputs, timing and cost. Traces hold user data and need privacy controls.
Trajectory evaluation
Judging the steps an agent took, such as tool choices, cost and risk, in addition to its final result.
Transformer
The neural network design behind modern LLMs. Stacked blocks of self-attention and feedforward layers process all positions of the input in parallel during training and prefill.
TTFTAbbreviation
Short for time to first token: the delay from sending a request until the first output token arrives.

V

Validate, retry, fall back
The loop around model output: check it, retry a bounded number of times with the error message, then use a safe fallback. Also handle truncation and refusals.
Vector database
A store built to hold embeddings and find the nearest ones quickly, usually with metadata filters. Start with what you already run and move when a measured limit forces it.
Vector normalization
Scaling a vector to length 1. After it, cosine equals the dot product, which is cheaper to compute.
Verbosity bias
A judge's tendency to prefer longer answers regardless of quality.
Vision-language model (VLM)
A model that takes images as well as text. A vision encoder turns patches of the image into tokens the language model can read, so more images cost more.
VLMAbbreviation
Short for vision-language model: a model that takes images as well as text.
Vocabulary
The fixed set of tokens a model can read and produce. A bigger vocabulary gives fewer tokens per text but a larger embedding table and output layer.

W

Workflow
An LLM system that follows a path predefined in code. Prefer it when the path is predictable.
Working memory
In the course's four-way split of agent memory, whatever is in the context window or a rolling summary.

Z

Zero-shot prompting
Asking the model to do a task with instructions only and no worked examples. It is the cheapest starting point.