THE FIELD GUIDE

Words become understanding.

A growing vocabulary for thinking clearly about AI. Every definition connects to a lesson.

56 terms

A

Ablation

A controlled experiment that removes or changes one component to estimate its contribution. Results depend on the remaining system and on keeping comparison conditions matched.

Research methodology and hypotheses

Agent

An agent uses model decisions and tools in a feedback loop toward a goal. The important design choices are its authority, observations, allowed actions, and stopping conditions. A fixed workflow can be better when the task is predictable.

What makes an AI agent?

Agent memory

Agent memory is application-managed information retained across steps or sessions. It differs from model weights and the current context window. Store only what supports the task, with clear provenance and deletion behavior.

Agent memory

Artificial intelligence

Artificial intelligence is the study of systems that perform tasks such as recognizing patterns, planning, and generating language. Start with the task, not the technology: what input is available, what decision is needed, and how will you know the result is useful? A simple rule can sometimes solve the problem more reliably than a learned model.

Introduction to AI

Attention

Attention forms a weighted combination of information selected by relevance scores. Queries ask what is needed, keys describe what is available, and values provide the content to combine. These are learned projections, not human questions and answers.

Attention mechanisms

B

Backpropagation

Backpropagation efficiently computes how each parameter contributes to loss. It moves backward through the computation graph using the chain rule. It calculates gradients; the optimizer decides how to use them.

Backpropagation and the chain rule

Benchmark contamination

Overlap or leakage between training/development information and an evaluation benchmark. It can inflate scores and weaken claims about generalization to genuinely unseen tasks.

Evaluating research evidence

Bias and fairness

Bias can arise from sampling, labels, modeling choices, or deployment conditions. Fairness concerns how benefits and errors are distributed across people; metrics must be chosen in context.

Ethics, limitations, and responsibility

C

Calibration

Agreement between predicted probabilities and observed frequencies over comparable cases. If predictions near 0.8 are calibrated, roughly 80% of those outcomes occur.

Probability and statistics

Checkpoint

A saved model state containing weight tensors and sometimes optimizer, scheduler, and run state. It must be paired with a compatible architecture, tokenizer, and configuration.

Understanding model weights

Clustering

Clustering groups similar observations. Similarity is a modeling choice: customers may look close by spending but far apart by location. Start by deciding what comparison is meaningful for the task.

Clustering and distance

Context window

The context window bounds how many tokens a model can consider in one invocation. Prompt instructions, conversation history, retrieved documents, and generated output can compete for this budget. Application memory is separate from model context.

Context windows and memory

Convolution

An operation applying a shared local kernel across positions. In neural networks, learned convolutional kernels detect recurring local patterns with fewer parameters than independent dense connections.

CNNs and RNNs

Cosine similarity

Vectors can represent direction, measurements, or learned features. Length measures magnitude; angle can measure alignment. An embedding is a learned vector, not a transparent list of human concepts.

Vectors, matrices, and similarity

D

Data leakage

Information unavailable at the intended prediction time enters training or model selection, inflating evaluation. Examples include fitting preprocessing on test data or splitting near-duplicates across datasets.

Training, validation, and test sets

Decision tree

A decision tree repeatedly asks questions about features and routes an example to a leaf prediction. The resulting rules are often readable, but a very large tree can memorize training noise.

Decision trees

Derivative

Calculus describes how quantities change and accumulate. For AI, the derivative tells us how a small change in a parameter affects a loss. It is a local description, so a large step may behave differently from the predicted small-step change.

Calculus: measuring change

Diffusion

Diffusion models learn to reverse a gradual noising process. Generation starts from noise and iteratively forms a sample, often conditioned on text. The process creates plausible images rather than retrieving a verified photograph.

Diffusion-based image generation

E

Embedding

Embeddings map discrete items into numeric vectors. Training encourages useful relationships to appear in geometry. Similarity is meaningful only within a compatible model and representation space.

Embeddings and semantic space

Encoder and decoder

Transformer families differ in how positions can use context. Encoders commonly read both sides of an input. Causal decoders read only prior positions. Encoder-decoder models transform an input sequence into an output sequence.

Encoder, decoder, and encoder-decoder models

F

Fine-tuning

Supervised fine-tuning adapts a pretrained model using input-target examples. It is useful for behavior, format, or domain patterns, but is not always the best way to add frequently changing factual knowledge.

Supervised fine-tuning

Forward pass

A forward pass computes a prediction by moving inputs through the network. It records intermediate activations that can later be used to calculate gradients. No weights need to change during a forward pass.

Forward propagation

Function calling

Function calling lets a model propose a structured request to an application-defined function. The proposal is data. The application validates it and decides whether execution is authorized; the model does not automatically acquire permission.

Function calling

G

Generative AI

Generative AI creates samples such as text, images, or audio from learned patterns. A prompt conditions the output but does not turn a model into a database of verified facts. The same input can produce different samples depending on the decoding method and random seed.

Understanding generative AI

Gradient

A gradient extends a derivative to a function with several inputs. Each component describes change along one coordinate while holding the others fixed. It points toward the steepest local increase under the usual Euclidean geometry.

Derivatives and gradients

Gradient accumulation

Combining gradients from several microbatches before an optimizer update to achieve a larger effective batch with a smaller memory footprint. Loss scaling and update timing must be handled consistently.

Training efficiency and optimization

Gradient descent

An iterative optimizer that updates parameters by subtracting a learning rate times a gradient estimate. Step size and objective geometry determine whether the updates converge.

Gradient descent in practice

I

Image tensor

A digital image is an array of measured intensities. A color image usually has height, width, and channel dimensions. A model sees numeric values, so preprocessing defines the connection between the file and its input tensor.

Images as tensors

Inference API

An inference API exposes model execution through a request-response contract. Even when generation is remote, the application is responsible for input handling, credentials, errors, and interpreting results.

Inference APIs and contracts

L

Language model

A language model assigns probabilities to sequences. Autoregressive models predict the next token from earlier tokens; masked models reconstruct hidden tokens from surrounding context. Their training objectives shape how they are used.

Language modeling

Linear transformation

A mapping that preserves vector addition and scalar multiplication, often written y=Wx. Adding a nonzero bias produces an affine transformation instead.

Linear algebra for learning systems

LoRA and QLoRA

LoRA adapts selected weight matrices with low-rank updates while usually freezing the base weights. QLoRA combines a quantized frozen base with trainable low-rank adapters, reducing adaptation memory needs.

LoRA and QLoRA

M

Machine learning

Methods that learn patterns or decision rules from data rather than having every rule written explicitly. Learning still requires a defined objective and evaluation on new examples.

AI, ML, and deep learning

MCP

MCP standardizes how AI applications connect to external capabilities and context. A host application manages client connections to servers. The protocol helps interoperability but does not make a server or its content inherently trustworthy.

Model Context Protocol (MCP)

Multimodal model

Multimodal models combine modalities such as text, images, and audio. A modality encoder transforms raw input into features that a shared system can use. Combining modalities does not eliminate ambiguity or hallucination.

Multimodal AI

N

Neural network

A neural network is a composition of parameterized transformations. Each layer builds features from the previous layer. The brain analogy is limited: these are mathematical functions trained for specific objectives, not biological replicas.

Artificial neural networks

O

Object detection

Detection identifies both what objects are present and where they are. A detector predicts bounding boxes, class labels, and confidence scores. Several objects may appear in a single image.

Object detection

Observability

Evaluation measures whether a system meets its task. Observability records enough evidence to understand runtime behavior. Use both: a good offline score can coexist with production failures caused by changed inputs or dependencies.

Evaluation and observability

Optimization

Optimization searches for parameters that improve an objective. The objective must reflect the real task: minimizing average error may ignore a rare but costly failure. Constraints such as memory, latency, and fairness affect which solution is useful.

Optimization and objectives

P

Parameter

Parameters are learned numeric values such as weights and biases. More parameters can increase representational capacity, but quality also depends on data, training, architecture, and evaluation. Parameter count is not a universal intelligence score.

Parameters and model capacity

Precision and recall

Precision is the fraction of predicted positives that are correct: TP/(TP+FP). Recall is the fraction of actual positives found: TP/(TP+FN). They answer different questions about errors.

Evaluating machine-learning models

Pretraining

Pretraining learns broad patterns from a large dataset before adaptation to a narrower use. An instruction-tuned model has undergone additional training for following instructions; a base model may mainly continue text.

Pretraining and adaptation

Prompt engineering

A prompt defines the task, context, constraints, and expected output. Clear examples often help more than dramatic role descriptions. Treat prompt design as an empirical process evaluated on varied inputs rather than a collection of magic phrases.

Prompt engineering

Prompt injection

An attack that places hostile instructions in untrusted data read by a model. Defenses need application-enforced permissions and validated actions, not only instructions asking the model to ignore attacks.

Security and approval workflows

Q

Quantization

Quantization represents values using fewer bits. It can reduce memory and bandwidth needs, sometimes at a quality cost. The effect depends on the quantization scheme, model, hardware, and task.

Quantization and numerical precision

R

Regression

Prediction of a numeric target such as price or duration. The loss quantifies numeric error. Logistic regression, despite its name, is commonly used for classification.

Regression and classification

Regularization

Overfitting occurs when a model learns training-specific details that do not transfer. A widening gap between training and validation performance is a warning. Underfitting instead means the model cannot capture useful structure even in training.

Overfitting and regularization

ReLU and sigmoid

ReLU returns max(0,x), preserving positive inputs and zeroing negative ones. Sigmoid maps real numbers into (0,1), but saturates and has small gradients at extreme inputs.

Activation functions

Reproducibility

Reproducibility means another person can inspect the procedure and obtain consistent findings under stated conditions. Exact numeric equality is not always possible across hardware, but undocumented conditions make even approximate reproduction difficult.

Experiment reproducibility

Retrieval-Augmented Generation

RAG retrieves external information and supplies it as context for generation. It can improve access to domain evidence without retraining weights, but success requires both useful retrieval and faithful use of the evidence.

Retrieval-Augmented Generation

S

Segmentation

Segmentation assigns labels at pixel level. Semantic segmentation labels categories, while instance segmentation distinguishes individual objects of the same category. This gives finer spatial information than boxes.

Image segmentation

Supervised learning

Supervised learning uses examples with target labels. Unsupervised learning searches for structure without those targets. Neither approach removes the need to define what a useful result means.

Supervised and unsupervised learning

T

Temperature

Decoding chooses tokens from model scores. Temperature rescales logits before softmax: lower positive values concentrate probabilities; higher values flatten them. It changes sampling behavior, not the knowledge stored in weights.

Sampling and temperature

Tokenization

A tokenizer converts text into units from a vocabulary. Tokens may be words, subwords, bytes, or characters. Token counts vary by tokenizer and language, so a word count is not a reliable context or cost estimate.

Tokenization: text into units

Transformer

Transformers use attention to mix information across sequence positions. They can process positions in parallel during training, while autoregressive generation still produces tokens sequentially. Position information is needed because attention alone does not encode order.

Transformers: the big picture

V

Vector index

A vector index supports similarity search over embeddings. It is a retrieval mechanism, not a source of truth by itself. Documents, metadata, permissions, and embedding versions remain essential parts of the system.

Vector databases and retrieval

Start with a question

Introduction to AIAI FoundationsA brief history of AIAI FoundationsTypes of AIAI FoundationsAI, ML, and deep learningAI FoundationsUnderstanding generative AIAI FoundationsEthics, limitations, and responsibilityAI FoundationsLinear algebra for learning systemsMathematics for AIVectors, matrices, and similarityMathematics for AICalculus: measuring changeMathematics for AIDerivatives and gradientsMathematics for AIProbability and statisticsMathematics for AIOptimization and objectivesMathematics for AI
K to open · Escape to close