Find the word. Follow the idea.

Each definition leads to its full explanation. “Builds on” points backward to concepts already introduced, including earlier sections of the same chapter.

This is a reading aid, not a substitute for the lessons. Use your browser's Find command to locate a term. Everything here works without JavaScript.

01. Choose rules or learning

A programmed rule
A programmed rule is an instruction a person writes for a computer to follow.Builds on: Start here; no earlier concept required.
Related teaching picture
Machine learning
Machine learning is a way to build a model by adjusting it using examples.Builds on: A programmed rule
Related teaching picture
pattern
pattern is a relationship that recurs in examples.Builds on: Machine learning
Related teaching picture
Artificial intelligence, or AI,
Artificial intelligence, or AI, is a broad field concerned with making computers perform tasks such as recognizing patterns, using language, or planning actions.Builds on: A programmed rule, Machine learning
Related teaching picture
Deep learning
Deep learning is a kind of machine learning that uses neural networks with multiple processing layers.Builds on: Machine learning
Related teaching picture

02. Write useful observations

Data
Data is recorded information.Builds on: Machine learning
Related teaching picture
example
example is one case used for learning or checking a model.Builds on: Data
Related teaching picture
dataset
dataset is a collection of examples organized for a task.Builds on: example
Related teaching picture
feature
feature is an input property a model can use.Builds on: example
Related teaching picture
target
target is the quantity or category we want the model to predict.Builds on: feature
Related teaching picture
label
label is the recorded target value attached to an example.Builds on: target
Related teaching picture
Labeling
Labeling is the work of attaching target values to examples.Builds on: label
Related teaching picture
Data quality
Data quality means how well recorded information serves the intended task.Builds on: dataset, Labeling
Related teaching picture
Representative data
Representative data includes the kinds of situations the model is expected to face.Builds on: dataset
Related teaching picture
Data bias
Data bias is a systematic skew in what is collected or how it is recorded.Builds on: Representative data
Related teaching picture
Privacy
Privacy concerns how information about people is collected, used, shared, and retained.Builds on: Data
Related teaching picture

03. Choose a learning task

Supervised learning
Supervised learning learns from examples that include input features and recorded targets.Builds on: feature, label
Related teaching picture
Classification
Classification predicts membership in categories.Builds on: Supervised learning
Related teaching picture
Regression
Regression predicts a numerical quantity.Builds on: Supervised learning
Related teaching picture
Unsupervised learning
Unsupervised learning looks for structure in data without a supplied target answer for each example.Builds on: dataset, feature
Related teaching picture
clustering
clustering , which groups examples according to a chosen notion of similarity.Builds on: Unsupervised learning
Related teaching picture
Reinforcement learning
Reinforcement learning learns how to choose actions through feedback from an environment.Builds on: Machine learning
Related teaching picture
reward
reward is the numerical feedback used to encourage outcomes during that learning.Builds on: Reinforcement learning
Related teaching picture
policy
policy is a rule or model for choosing actions from the current situation.Builds on: reward
Related teaching picture

04. Improve a guess

model
model is a mathematical structure used to turn inputs into predictions or generated outputs.Builds on: Machine learning, feature, target
Related teaching picture
algorithm
algorithm is a specified procedure for carrying out a task.Builds on: A programmed rule, model
Related teaching picture
Parameters
Parameters are values that belong to the model and can be learned during training.Builds on: model
Related teaching picture
weight
weight is a parameter that scales an input or connection.Builds on: Parameters
Related teaching picture
bias parameter
bias parameter is an added offset.Builds on: Parameters
Related teaching picture
Inference
Inference is using a model with its current parameters to produce an output.Builds on: model, Parameters
Related teaching picture
Training
Training adjusts model parameters using data and a learning procedure.Builds on: Inference, label
Related teaching picture
loss
loss is a numerical penalty used to measure mismatch for a training objective.Builds on: Inference, target
Related teaching picture
Optimization
Optimization is the process of searching for parameter settings that improve an objective.Builds on: loss, Parameters
Related teaching picture
Gradient descent
Gradient descent is one method that uses the local slope of the loss to choose a direction for parameter changes.Builds on: Optimization
Related teaching picture
learning rate
learning rate scales how large each gradient-based update is.Builds on: Gradient descent
Related teaching picture
A hyperparameter
A hyperparameter is a setting chosen for the learning process or model design rather than an ordinary weight fitted by that process.Builds on: learning rate, Parameters
Related teaching picture
batch
batch is a group of examples processed together for a training step.Builds on: Training, dataset
Related teaching picture
epoch
epoch is one pass through the training dataset.Builds on: batch
Related teaching picture

05. Combine little calculations

neural network
neural network is a model made of connected numerical operations with learned parameters.Builds on: model, weight, bias parameter
Related teaching picture
unit
unit , sometimes called a neuron, combines input values with weights and usually applies a transformation to the result.Builds on: neural network
Related teaching picture
activation function
activation function transforms a unit's combined value before it passes onward.Builds on: unit
Related teaching picture
layer
layer is a stage of processing in a network.Builds on: unit, activation function
Related teaching picture
Architecture
Architecture is the arrangement of operations and connections in a model.Builds on: neural network, layer
Related teaching picture
Backpropagation
Backpropagation calculates how the loss depends on parameters throughout a network by passing derivative information backward through its operations.Builds on: Gradient descent, layer, loss
Related teaching picture

06. Check learning on new cases

training set
training set is the collection used to fit model parameters.Builds on: dataset, Training
Related teaching picture
validation set
validation set is separate data used to guide development choices, such as the learning rate or when to stop training.Builds on: training set, A hyperparameter
Related teaching picture
test set
test set is held-out data reserved for a less biased final check after those choices.Builds on: validation set
Related teaching picture
Generalization
Generalization is a model's ability to perform usefully on new examples beyond those used to fit it.Builds on: training set, test set
Related teaching picture
Overfitting
Overfitting happens when a model fits peculiarities of training data that do not carry over well to new cases.Builds on: Generalization
Related teaching picture
Underfitting
Underfitting happens when the model or training fails to capture enough useful structure, even in the practice data.Builds on: Generalization
Related teaching picture
Data leakage
Data leakage occurs when information unavailable at prediction time influences model development or evaluation in a misleading way.Builds on: feature, test set
Related teaching picture
Regularization
Regularization is a family of techniques that discourages some kinds of overly complex fitting.Builds on: Overfitting, loss
Related teaching picture

07. Represent information numerically

scalar
scalar is a single numerical value, such as a queue length of 3.Builds on: feature
Related teaching picture
vector
vector is an ordered collection of numbers.Builds on: scalar
Related teaching picture
matrix
matrix is a rectangular arrangement of numbers in rows and columns.Builds on: vector
Related teaching picture
tokenizer
tokenizer converts text into a sequence of pieces a particular model can use.Builds on: Data
Related teaching picture
token
tokenizer converts text into a sequence of pieces a particular model can use.Builds on: tokenizer
Related teaching picture
vocabulary
vocabulary is the tokenizer's collection of recognized token entries.Builds on: token
Related teaching picture
token ID
token ID is the numerical identifier assigned to an entry.Builds on: vocabulary
Related teaching picture
Encoding
Encoding converts information into a specified representation.Builds on: token ID
Related teaching picture
embedding
embedding is a numerical vector representing an item in a learned space.Builds on: vector, token ID, Parameters
Related teaching picture
Similarity
Similarity is a measure of how alike two representations are under a chosen comparison.Builds on: embedding
Related teaching picture
contextual representation
contextual representation is a numerical representation affected by the surrounding input.Builds on: embedding, layer
Related teaching picture
retrieval embedding
retrieval embedding is a representation produced for finding related items, such as a recipe note matching a question.Builds on: embedding, Similarity
Related teaching picture

08. Connect positions in a sequence

sequence
sequence is an ordered series of items.Builds on: token, vector
Related teaching picture
Positional information
Positional information tells a model about order or relative locations in a sequence.Builds on: sequence
Related teaching picture
Attention
Attention is a calculation that mixes information using weights based on relationships between representations.Builds on: vector, weight
Related teaching picture
query, key, and value
query, key, and value are numerical representations used to request, match, and supply information in attention.Builds on: Attention
Related teaching picture
Self-attention
Self-attention draws its queries, keys, and values from representations within the same sequence.Builds on: query, key, and value, sequence
Related teaching picture
Multi-head attention
Multi-head attention computes several attention mixtures using different learned projections and combines their results.Builds on: Self-attention
Related teaching picture
transformer
transformer is a neural-network architecture built around attention and other repeated processing operations.Builds on: Architecture, Multi-head attention, Positional information
Related teaching picture
transformer block
transformer block typically combines attention with a feed-forward network, residual connections, and normalization.Builds on: transformer, activation function
Related teaching picture
encoder
encoder builds representations of an input, often using information on both sides of a position.Builds on: transformer
Related teaching picture
decoder
decoder produces an output sequence, using earlier output and, in encoder-decoder designs, information from the encoder.Builds on: transformer, sequence
Related teaching picture
attention mask
attention mask restricts which positions can contribute.Builds on: Self-attention, decoder
Related teaching picture

09. Adapt broad learning

foundation model
foundation model is a model trained on broad data that can be adapted to many downstream tasks.Builds on: Training, neural network
Related teaching picture
large language model, or LLM,
large language model, or LLM, is a large model trained to model language patterns.Builds on: foundation model, token
Related teaching picture
A generative model
A generative model produces content, such as text, an image, or audio.Builds on: model, Inference
Related teaching picture
Pretraining
Pretraining is an initial broad training stage before later adaptation.Builds on: Training, foundation model
Related teaching picture
Self-supervised learning
Self-supervised learning creates training targets from the data itself instead of requiring a person to label each target.Builds on: target, Training
Related teaching picture
Fine-tuning
Fine-tuning is additional training that adapts a pretrained model using more data.Builds on: Pretraining, Training
Related teaching picture
Instruction tuning
Instruction tuning trains on examples of requests and desired responses to improve instruction following.Builds on: Fine-tuning
Related teaching picture
Preference alignment
Preference alignment adapts behavior toward preferences expressed in training feedback.Builds on: Fine-tuning, reward
Related teaching picture
RLHF
RLHF means reinforcement learning from human feedback.Builds on: Preference alignment, Reinforcement learning
Related teaching picture
Direct preference optimization, or DPO,
Direct preference optimization, or DPO, trains directly on preferred and less-preferred response pairs with a preference objective relative to a reference model.Builds on: Preference alignment, loss
Related teaching picture
modality
modality is a kind of information, such as text, images, or audio.Builds on: Data
Related teaching picture
multimodal model
multimodal model handles more than one modality.Builds on: modality, foundation model
Related teaching picture
Diffusion
Diffusion is a family of generative methods that learns to reverse a gradual noising process.Builds on: A generative model, Training
Related teaching picture

10. Understand a generated answer

prompt
prompt is input used to guide a model's response.Builds on: large language model, or LLM,, Inference
Related teaching picture
Messages
Messages are structured pieces of an interaction, often marked with roles such as user, assistant, or tool.Builds on: prompt
Related teaching picture
Instructions
Instructions tell the system what behavior is wanted.Builds on: Messages
Related teaching picture
Context
Context is the information available to the model in a particular invocation.Builds on: Messages, token
Related teaching picture
context window
context window is the supported capacity for an invocation's sequence, usually measured in tokens for text models.Builds on: Context
Related teaching picture
Logits
Logits are raw numerical scores a model produces for possible next tokens.Builds on: decoder, vocabulary
Related teaching picture
probability distribution
probability distribution : nonnegative shares across candidates that sum to one.Builds on: Logits
Related teaching picture
Decoding
Decoding here means the procedure for selecting output tokens from model scores.Builds on: probability distribution
Related teaching picture
Sampling
Sampling draws a choice using a probability distribution, so a less likely token can sometimes be selected.Builds on: Decoding
Related teaching picture
Temperature
Temperature is a decoding setting that changes how concentrated next-token probabilities are.Builds on: Sampling, Logits
Related teaching picture
Top-p
Top-p keeps a smallest set of highest-probability candidates whose cumulative probability reaches a chosen cutoff, then samples from that restricted set.Builds on: Sampling, probability distribution
Related teaching picture
hallucination
hallucination is generated content that is false or unsupported while being presented as an answer.Builds on: A generative model
Related teaching picture
Uncertainty
Uncertainty is the possibility that an answer or estimate is wrong or insufficiently supported.Builds on: hallucination, probability distribution
Related teaching picture

11. Find relevant evidence

Retrieval
Retrieval finds information from a collection for a particular request.Builds on: Context, Data
Related teaching picture
chunk
chunk is a portion of a document prepared as a retrieval unit.Builds on: Retrieval
Related teaching picture
index
index is a data structure organized to help locate items efficiently.Builds on: chunk
Related teaching picture
Keyword search finds and ranks items using words and other textual matching signals.Builds on: index
Related teaching picture
Vector search finds items whose embeddings are close to a query embedding under a chosen similarity measure.Builds on: index, retrieval embedding
Related teaching picture
Hybrid search combines textual and vector retrieval signals.Builds on: Keyword search, Vector search
Related teaching picture
Ranking
Ranking orders candidates by estimated usefulness.Builds on: Retrieval
Related teaching picture
Retrieval-augmented generation, or RAG,
Retrieval-augmented generation, or RAG, retrieves information and supplies it to a model to help generate an answer.Builds on: Retrieval, Context, A generative model
Related teaching picture
Grounding
Grounding connects an answer to supplied evidence or observed information.Builds on: Retrieval-augmented generation, or RAG,
Related teaching picture
Memory
Memory , in this guide, means information an application retains for later use.Builds on: Context, Retrieval
Related teaching picture
Persistence
Persistence means storing information so it survives the current interaction or process.Builds on: Memory
Related teaching picture
Context assembly
Context assembly selects and arranges what to include in an invocation.Builds on: Context, Memory
Related teaching picture
Compaction
Compaction shortens retained context, often by summarizing earlier work or removing redundant material.Builds on: Context assembly, context window
Related teaching picture

12. Connect permitted actions

API
API , or application programming interface, is a defined way for software components to communicate.Builds on: A programmed rule
Related teaching picture
tool
tool is a capability made available to an AI application for obtaining information or performing an operation.Builds on: API, Context
Related teaching picture
schema
schema describes the expected structure of data.Builds on: API
Related teaching picture
Function calling
Function calling lets a model produce a structured request for an available operation.Builds on: tool, schema
Related teaching picture
Authorization
Authorization decides whether an identity may perform an operation on particular data.Builds on: tool
Related teaching picture
tool result
tool result is the information returned by an executed operation.Builds on: Function calling
Related teaching picture
Model Context Protocol, or MCP,
Model Context Protocol, or MCP, is a protocol for exchanging tools and context between AI applications and connected programs.Builds on: API, tool, schema
Related teaching picture
A skill
A skill , in this guide, is a reusable package of task instructions and supporting resources that an agent application can load.Builds on: Instructions, tool
Related teaching picture

13. Coordinate work

application
application is the complete software people use to accomplish a task.Builds on: model, API
Related teaching picture
workflow
workflow organizes work into steps and transitions.Builds on: application
Related teaching picture
Deterministic and hybrid designs
Deterministic and hybrid designs describe how fixed rules and model behavior are combined.Builds on: workflow, Inference
Related teaching picture
agent
agent , in this guide, is a system where a model helps choose actions and next steps toward a goal, using observations from the environment.Builds on: application, tool, Context
Related teaching picture
agent loop
agent loop repeatedly gives the model current information, receives a proposed action or answer, executes allowed actions, and incorporates the resulting observations.Builds on: agent, tool result
Related teaching picture
Orchestration
Orchestration coordinates steps, tools, model calls, and their dependencies.Builds on: workflow, agent loop
Related teaching picture
runtime
runtime is the executing software environment that runs the system and manages those operations.Builds on: Orchestration
Related teaching picture
State
State is recorded information about the system's current situation.Builds on: runtime
Related teaching picture
checkpoint
checkpoint is a saved snapshot or record from which work can resume.Builds on: State, Persistence
Related teaching picture
Durable execution
Durable execution is execution designed to recover from interruptions using persisted progress.Builds on: checkpoint, tool result
Related teaching picture
A multi-agent system
A multi-agent system coordinates more than one agent.Builds on: agent, Orchestration
Related teaching picture

14. Bound the execution

agent harness
agent harness is the surrounding execution scaffold that enables and controls an agent's work.Builds on: runtime, agent loop
Related teaching picture
Context engineering
Context engineering is the work of selecting, arranging, and maintaining useful information for model invocations.Builds on: Context assembly, agent harness
Related teaching picture
tool registry
tool registry is a maintained collection of available tool descriptions and interfaces.Builds on: tool, agent harness
Related teaching picture
Least privilege
Least privilege gives a component only the access required for its task.Builds on: Authorization
Related teaching picture
sandbox
sandbox is an execution environment that restricts some interactions with the surrounding system.Builds on: runtime, Least privilege
Related teaching picture
Prompt injection
Prompt injection is an attempt to make instructions embedded in untrusted content redirect the system's behavior.Builds on: Instructions, Retrieval, tool result
Related teaching picture
Execution limits
Execution limits bound work by resources such as time, cost, steps, or tool use.Builds on: agent loop, agent harness
Related teaching picture
retry
retry repeats an operation after failure.Builds on: tool result, Execution limits
Related teaching picture
fallback
fallback switches to an alternative behavior when the main path cannot finish.Builds on: retry
Related teaching picture
Human review
Human review places a decision with a person before a consequential step proceeds.Builds on: State, Authorization
Related teaching picture
trace
trace records the observable steps of a run, such as tool calls, responses, timings, and errors.Builds on: agent loop, State
Related teaching picture
Logging
Logging stores operational events for diagnosis and monitoring.Builds on: trace, Privacy
Related teaching picture

15. Measure the outcome

evaluation, or eval,
evaluation, or eval, measures an AI system's behavior against defined criteria.Builds on: application, test set
Related teaching picture
evaluation dataset
evaluation dataset is a collection of tasks and the information needed to judge their outcomes.Builds on: evaluation, or eval,, example
Related teaching picture
expected outcome
expected outcome describes what should happen for a case.Builds on: evaluation dataset
Related teaching picture
rubric
rubric is a set of criteria for judging work that may have several acceptable answers.Builds on: expected outcome
Related teaching picture
Software tests
Software tests check specified behavior of code or a system.Builds on: A programmed rule, application
Related teaching picture
offline evaluation
offline evaluation runs on prepared cases outside ordinary live use.Builds on: evaluation, or eval,
Related teaching picture
online evaluation
online evaluation studies behavior in live operation, with appropriate safeguards and consent.Builds on: offline evaluation
Related teaching picture
model judge
model judge uses a model to grade outputs against criteria.Builds on: rubric, large language model, or LLM,
Related teaching picture
Regression evaluation
Regression evaluation checks that changes have not broken previously working behavior.Builds on: evaluation, or eval,, test set
Related teaching picture
Precision
Precision asks what fraction of items predicted positive are actually positive.Builds on: Classification, evaluation, or eval,
Related teaching picture
Recall
Recall asks what fraction of all actual positives were found.Builds on: Precision
Related teaching picture
Reliability and security checks
Reliability and security checks test continued operation under failures and resistance to unauthorized behavior.Builds on: Software tests, Authorization
Related teaching picture

16. Choose and operate the system

A model service
A model service is running software that accepts requests and serves model outputs, often through an API.Builds on: model, API, runtime
Related teaching picture
Deployment
Deployment makes a chosen system version available for use.Builds on: A model service, application
Related teaching picture
Latency
Latency is how long a request or step takes.Builds on: Inference, tool
Related teaching picture
Cost
Cost includes resources spent to run the task, such as model usage, tool calls, hardware, and maintenance.Builds on: A model service
Related teaching picture
Compute and memory resources
Compute and memory resources are the processing work and working storage used by the system.Builds on: matrix, Inference
Related teaching picture
cache
cache stores reusable results to avoid repeating work.Builds on: Inference, Persistence
Related teaching picture
KV cache
KV cache holds attention keys and values so compatible earlier token computations can be reused during generation.Builds on: cache, query, key, and value
Related teaching picture
Monitoring
Monitoring observes a running system over time, including failures, delays, resource usage, and signals of quality.Builds on: Deployment, Logging, evaluation, or eval,
Related teaching picture
Drift
Drift is a change in the data or relationships a system faces over time.Builds on: Monitoring, Representative data
Related teaching picture
A feedback loop
A feedback loop uses observations to guide later changes.Builds on: Monitoring, Training, Memory
Related teaching picture
A data boundary
A data boundary defines where information may go and who may access it.Builds on: Privacy, Authorization, A model service
Related teaching picture