AI GLOSSARY

A shared language for AI

Browse plain-language definitions drawn from the reviewed learning curriculum.

279 reviewed lesson definitions

What is AI?

Artificial Intelligence (AI) is the broad field of creating computer systems that can perform tasks that normally need human intelligence. Examples include understanding language, recognising images or speech, finding patterns, making predictions, solving problems, and supporting decisions. AI does not mean only robots. Machine learning is one important way of building AI systems, and deep learning is a type of machine learning.

AI is the broad field. Machine learning is one way to build AI, and deep learning is one type of machine learning.

Rules vs. Learning

In traditional programming, a developer writes the rules the computer should follow. In machine learning, we give the system examples and expected outcomes, and it learns a pattern that can be used on new data. Both approaches are useful, and many real systems combine them.

Traditional software follows written rules; machine learning learns patterns from examples.

How a Model Learns

A model starts by making imperfect predictions. Training compares those predictions with the correct answers, calculates the error, and adjusts the model to reduce that error. This process is repeated many times so the model can become better at making predictions on similar new examples.

A model learns by making predictions, measuring its error, and adjusting to reduce that error.

Training and Inference

Training is the learning stage: the model studies examples and adjusts its internal parameters. Inference is the using stage: the trained model receives new input and produces a prediction or answer without relearning everything from the beginning.

Training is when a model learns; inference is when the trained model is used.

Features and Labels

Features are the pieces of information given to the model, such as the number of bedrooms, floor area, or neighbourhood. The label is the correct answer we want the model to learn to predict. In this example, the sale price is the label.

Features are the inputs; the label is the target answer.

Classification

Classification is used when the answer belongs to a category. For example, an email can be classified as spam or not spam, or an image can be classified as cat, dog, or another class. The model learns patterns that help it decide which class best matches a new input.

Classification predicts a category; regression predicts a numeric value.

Generalisation

A model is useful when it can apply what it learned to new data. If it only remembers the training examples, it may fail in the real world. We therefore test it on separate examples that were not used for training.

Good AI should perform well on new data, not just memorise the training data.

Responsible AI

Responsible AI means thinking about both technical performance and human impact. Before deployment, teams should test for harmful errors and bias, protect privacy, explain important limitations, and decide when a person should review or override the AI system.

A good AI system should be useful, safe, fair, privacy-aware, and accountable.

The Artificial Neuron

A neuron multiplies each input by a learned weight, adds the results, and passes them through an activation. Training adjusts the weights to make useful patterns easier to detect.

Weights encode how much each signal should matter.

Activation Functions

Without activations, stacked layers collapse into a single linear transformation. Nonlinear activations let a network bend, gate, and combine patterns that a straight line cannot represent.

Activations give deep networks expressive power.

Hidden Layers

Hidden layers create intermediate representations: early layers may notice simple signals while later layers combine them into richer concepts. Their features are learned from the task.

Depth lets a model build complex ideas from simpler patterns.

Loss Functions

Loss converts prediction quality into a number that training can optimise. Lower loss generally means predictions better match the labelled examples, though evaluation still checks real usefulness.

Loss turns 'wrong' into a signal the optimiser can improve.

Gradient Descent

Gradient descent estimates which small parameter change will decrease loss, then takes a step in that direction. Many careful steps can fit a useful pattern.

Optimisation is a sequence of informed, small improvements.

Backpropagation

Backpropagation calculates how much each weight contributed to the output error. That credit assignment gives gradient descent the information it needs to adjust every layer.

Backpropagation assigns responsibility for an error across the network.

Embeddings

An embedding is a numeric vector learned or produced so that useful relationships can be compared mathematically. For many semantic embeddings, items with similar meaning tend to be closer than unrelated items, although the exact geometry depends on the model and task.

Embeddings represent useful relationships as vectors that can be compared by distance or similarity.

Evaluating Neural Networks

Accuracy can hide uneven performance, especially with imbalanced classes. Looking at precision, recall, examples, and slices of data makes failure modes more visible.

Evaluation asks where and how a model fails—not only its average score.

Tokens: How LLMs Read

Language models do not read words exactly as people do. Text is split into tokens, which are converted to numbers the model can process and predict.

Tokens are the model's working pieces of text.

Next-Token Prediction

Given prior tokens, the model assigns probabilities to possible next tokens. Repeating that prediction step can produce a response one token at a time.

An LLM generates by repeatedly predicting what should come next.

Attention

Attention computes relevance between token representations and uses those weights to combine information from the allowed context. In a causal language model, a token can attend only to positions permitted by the causal mask, usually itself and earlier tokens.

Attention lets a model dynamically combine the context that matters for the current representation.

Context Windows

A context window is the limited sequence of tokens available in one model call. Important material outside it must be summarised, retrieved, or otherwise brought back into the current context.

Context is powerful but finite.

Pretraining

Pretraining exposes a model to vast text and teaches it statistical language patterns through next-token prediction. It gives broad capability, but not necessarily the behaviour needed for a particular product.

Pretraining provides general language ability; product work adds direction and checks.

Instruction Tuning

Instruction tuning trains a pretrained model on examples of instructions and desired responses. It can improve helpfulness, task following, and response style, but it does not guarantee correctness or safety, so evaluation is still required.

Instruction tuning improves how a model follows tasks; it does not make the model infallible.

Hallucinations

An LLM predicts plausible text; it does not automatically verify every statement. For important claims, ground it in reliable sources, require citations, or route the task to a human.

Fluency is not evidence.

LLM Evaluation

A useful eval set includes realistic tasks, edge cases, and clear grading criteria. It is how you compare prompts, models, and changes without relying on impressions.

Evals turn 'seems good' into evidence.

Prompt Design

Clear instructions, relevant context, and a requested format make the task easier to interpret. Examples can show the standard of a successful answer without relying on magic wording.

Good prompts reduce ambiguity.

Few-Shot Examples

Few-shot examples show the model what a good transformation looks like within the current request. They are especially useful when the output format or decision rule is subtle.

Examples in the prompt guide this response, not the model's permanent weights.

System Instructions

System instructions establish the assistant's stable purpose and constraints. Product teams should keep them clear, test them against conflicts, and enforce critical rules outside the model as well.

System instructions guide behaviour; software controls enforce critical boundaries.

Retrieval-Augmented Generation

RAG searches a knowledge source, selects relevant material, and provides it to the model as context. It can improve factual grounding when retrieval quality and citations are evaluated carefully.

RAG connects a generative model to evidence at answer time.

Chunking Knowledge

A chunk should contain enough context to answer a likely question without dragging in unrelated text. Boundaries, overlap, headings, and metadata affect what retrieval can actually surface.

Retrieval quality begins with how knowledge is prepared.

Semantic Search

Semantic search compares embeddings so a query can find related ideas even when words differ. It still needs good data, suitable chunks, and evaluation against actual user questions.

Vector search finds nearby meanings, not merely identical strings.

Reranking

Fast retrieval can fetch a broad candidate set; a reranker can examine each candidate more carefully and put the most relevant evidence on top. This often improves answer grounding.

Retrieve widely, then rank precisely.

Grounded Answers

Citations make an answer auditable: readers can inspect the evidence and notice when support is weak. They are useful only when the cited source genuinely supports the nearby claim.

A trustworthy answer shows its evidence.

Evaluating RAG

RAG can fail because it finds the wrong evidence, loses useful context, or generates poorly from good evidence. Separate retrieval and generation evaluations reveal where to improve.

Diagnose the pipeline stage, not just the final sentence.

What Makes an Agent?

An agent uses a model inside a loop: it observes state, selects an action, checks the result, and continues or stops. The loop enables multi-step work but also creates new failure modes to manage.

Agents are model-driven control loops.

Tool Use

Tools connect an agent to systems such as search, databases, calendars, or code execution. A good tool contract clearly defines what the agent may call, what inputs are valid, and what result returns.

Tools turn language decisions into verified actions.

Planning

A plan gives an agent intermediate milestones and lets a system inspect progress before costly or risky actions happen. Plans should remain flexible when new observations invalidate an assumption.

Plans turn a vague objective into testable intermediate steps.

Agent Memory

Memory can preserve approved preferences, prior decisions, or retrieved knowledge across tasks. It needs clear retention rules, relevance checks, and ways to correct or delete stale information.

Memory is a controlled retrieval system, not an unlimited transcript.

State and Checkpoints

Explicit state records progress, inputs, intermediate outputs, and pending decisions. Checkpoints make long-running work safer because a retry does not have to guess what has already happened.

State makes an agent workflow durable and debuggable.

Multi-Agent Systems

Specialised agents can help when roles and handoffs are clear, but each extra agent adds coordination cost. Start with a single controlled workflow and add roles only when evidence supports it.

More agents are not automatically better.

Reliability and Recovery

Reliable agents expect tool timeouts, malformed data, and partial failures. They use timeouts, bounded retries, fallbacks, and explicit escalation rather than silently continuing on a false assumption.

Failure handling is part of the agent's plan.

Human-in-the-Loop

Human review is most valuable when an action is costly, uncertain, sensitive, or difficult to undo. The system should present enough evidence for the reviewer to make a real decision.

Escalate decisions, not just notifications.

Agent Architecture

A production agent is a system, not merely a prompt. Application code should enforce permissions, validate tool inputs, persist state, and log outcomes even when the model chooses the next action.

Put hard controls in software, not only in model instructions.

Evaluation-Driven Development

An evaluation suite lets you compare changes against the tasks and failures that matter. It should include success criteria, difficult cases, and regression tests for past incidents.

Ship evidence, not impressions.

Observability and Tracing

Traces reveal how an agent reached an outcome: which tools it used, what it observed, and where time or errors occurred. Good observability protects privacy while giving engineers the evidence to debug.

If you cannot inspect a run, you cannot reliably improve it.

Securing Agents

Prompt injection attempts to make a model follow instructions hidden in untrusted content. Keep trusted policy separate, validate tool inputs, restrict permissions, and require approval for risky actions.

Untrusted content can inform an answer; it must not control the system.

Cost and Latency

Production systems route work to the cheapest capable model, cache repeatable results, and measure the trade-off. Optimisation should be verified against the same quality and safety evaluations used for releases.

Optimise cost and latency with measured quality guardrails.

Safe Deployment

A staged rollout exposes a small, monitored portion of traffic to a new version. If safety, quality, or cost regress, the team can stop or roll back before the problem spreads.

A release is an experiment with a safe escape route.

Incident Response

Incident response begins by containing impact: pause risky actions, protect users, and preserve traces. Then investigate the cause, communicate appropriately, and add tests or safeguards that prevent recurrence.

Contain, understand, repair, and learn.

Agentic AI Capstone

Mastery is not a single clever demo. It is the ability to design an agent that solves a real task while remaining grounded, observable, secure, evaluated, and safe to operate.

Great agents earn trust through system design and evidence.

Data Lifecycle

Data has a life: it is collected, checked, stored, used, and eventually retired. Good AI starts with knowing where every important field came from and who owns it. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use data lifecycle with clear goals, evidence, and safeguards.

Data Contracts

A data contract is an agreement about what a data field means, its format, and how fresh it must be. It stops a silent source change from breaking a model. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use data contracts with clear goals, evidence, and safeguards.

Data Labeling

Labels are the answers used to teach supervised models. Clear instructions and quality checks matter because a model learns the mistakes in its labels too. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use data labeling with clear goals, evidence, and safeguards.

Data Augmentation

Data augmentation creates safe variations of training examples, such as slightly changing an image. It can help a model handle normal variation without pretending to create new truth. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use data augmentation with clear goals, evidence, and safeguards.

Feature Engineering

Feature engineering turns raw records into signals that help a model solve a task. The key rule is to use only information available at the time of the decision. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use feature engineering with clear goals, evidence, and safeguards.

Feature Stores

A feature store keeps approved model inputs consistent between training and live use. It reduces the common problem where a model sees different data in production. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use feature stores with clear goals, evidence, and safeguards.

Experiment Tracking

Experiment tracking records data versions, model settings, code, and scores. It lets a team reproduce why one model was chosen over another. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use experiment tracking with clear goals, evidence, and safeguards.

Model Registry

A model registry is a controlled catalogue of trained models and their approval status. It helps teams deploy the right version and roll back safely. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use model registry with clear goals, evidence, and safeguards.

Data and Model Drift

Drift means the real world has changed from the data a model learned from. Teams monitor it so they can investigate before quality harms customers. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use data and model drift with clear goals, evidence, and safeguards.

ML Pipelines

An ML pipeline makes repeated work such as data checks, training, evaluation, and deployment run in a known order. Automation is useful only when every step is observable. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use ml pipelines with clear goals, evidence, and safeguards.

Images as Data

A computer sees an image as a grid of numbers, not as a picture with human meaning. Models learn patterns from many labelled image examples. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use images as data with clear goals, evidence, and safeguards.

Convolutions

A convolution scans a small pattern across an image to notice useful details such as edges or textures. Reusing the same pattern in many places makes vision models efficient. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use convolutions with clear goals, evidence, and safeguards.

Object Detection

Object detection answers both what is in an image and where it is. It draws a box around each relevant object with a confidence score. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use object detection with clear goals, evidence, and safeguards.

Image Segmentation

Segmentation labels each pixel or small region, not just the whole image. It is useful when a system must measure the exact shape of an object. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use image segmentation with clear goals, evidence, and safeguards.

Optical Character Recognition

OCR converts text in an image into machine-readable text. A strong workflow keeps the source image so people can verify important extracted fields. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use optical character recognition with clear goals, evidence, and safeguards.

Video Understanding

Video AI adds time to image analysis, so it can recognise actions or changes across frames. It must handle motion, lighting, privacy, and context carefully. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use video understanding with clear goals, evidence, and safeguards.

Speech Recognition

Speech recognition turns audio into text by learning patterns in sound. Noise, accents, and specialised vocabulary make real-world evaluation essential. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use speech recognition with clear goals, evidence, and safeguards.

Text to Speech

Text-to-speech turns written language into spoken audio. Clear disclosure and voice-consent controls matter when generated voices resemble people. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use text to speech with clear goals, evidence, and safeguards.

Multimodal AI

Multimodal models combine text, images, audio, or video so they can reason across more than one kind of signal. Each extra input can also add privacy and reliability risk. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use multimodal ai with clear goals, evidence, and safeguards.

Edge AI

Edge AI runs a model close to the data source, such as on a camera or phone. It can reduce delay and data transfer, but devices have tighter resource limits. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use edge ai with clear goals, evidence, and safeguards.

Generative Models

Generative models learn patterns well enough to create new text, images, audio, or code. They produce plausible outputs, so important results still need review. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use generative models with clear goals, evidence, and safeguards.

Diffusion Models

A diffusion model learns to turn noise into an image step by step. The gradual denoising process is why it can create detailed visual content. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use diffusion models with clear goals, evidence, and safeguards.

Image Prompting

Image prompting describes the subject, setting, style, and constraints for image generation. Iteration is normal because a prompt is a direction, not a guarantee. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use image prompting with clear goals, evidence, and safeguards.

Code Generation

Code generation can draft functions, tests, and explanations from a request. Developers still run tests, review security, and check whether the code fits the real system. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use code generation with clear goals, evidence, and safeguards.

Structured Generation

Structured generation asks a model to return data in a defined schema such as JSON. Applications validate the result before using it in an automated action. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use structured generation with clear goals, evidence, and safeguards.

Function Calling

Function calling lets a model choose from approved operations using structured arguments. The application validates every call and never gives the model unlimited permissions. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use function calling with clear goals, evidence, and safeguards.

Fine-Tuning

Fine-tuning adjusts a base model using examples from a narrower task or style. It is useful when prompting alone cannot reliably teach the desired behaviour. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use fine-tuning with clear goals, evidence, and safeguards.

Parameter Efficient Tuning

Parameter-efficient tuning adapts a small part of a large model instead of changing every weight. It can reduce cost while keeping a shared base model stable. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use parameter efficient tuning with clear goals, evidence, and safeguards.

Synthetic Data

Synthetic data is generated data used to supplement training or testing. It can help with privacy or rare cases, but it must be checked for realism and bias. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use synthetic data with clear goals, evidence, and safeguards.

Generative AI Evaluation

Generative AI evaluation checks usefulness, faithfulness, safety, and format against real tasks. A beautiful sample is not enough evidence for deployment. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use generative ai evaluation with clear goals, evidence, and safeguards.

AI Risk Management

AI risk management identifies what can go wrong, who may be affected, and what controls reduce the harm. It is an ongoing practice, not a one-time checklist. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use ai risk management with clear goals, evidence, and safeguards.

Privacy and AI

Privacy means using personal data only for a clear purpose with suitable protection and retention limits. Teams minimise data instead of collecting it just because it may be useful. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use privacy and ai with clear goals, evidence, and safeguards.

Bias and AI

Bias can enter through data, labels, objectives, thresholds, and deployment choices. Finding it requires context, measurement, and input from people affected by the system. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use bias and ai with clear goals, evidence, and safeguards.

Explainability

Explainability helps people understand a system's limits, inputs, and reasons at the right level for their role. It is not the same as exposing every internal model number. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use explainability with clear goals, evidence, and safeguards.

AI Red Teaming

Red teaming deliberately tries to make an AI system fail, leak, or act unsafely. It turns surprising attacks into test cases and stronger safeguards. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use ai red teaming with clear goals, evidence, and safeguards.

Prompt Injection

Prompt injection is an attempt to make a model follow harmful instructions hidden in untrusted content. Trusted policy and tool permission must remain outside that content. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use prompt injection with clear goals, evidence, and safeguards.

Model Security

Model security protects models, data, prompts, and tools from unauthorised access or manipulation. It uses normal security engineering as well as AI-specific testing. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use model security with clear goals, evidence, and safeguards.

Content Safety

Content safety policies define what the system should refuse, redirect, or escalate. They should be tested with realistic edge cases, not only obvious examples. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use content safety with clear goals, evidence, and safeguards.

AI Governance

AI governance assigns ownership for approving, monitoring, changing, and retiring AI systems. Clear accountability is what turns policy into daily practice. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use ai governance with clear goals, evidence, and safeguards.

Compliance by Design

Compliance by design adds legal, policy, and audit needs while a system is built instead of after release. It is cheaper to design controls early than to retrofit them. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use compliance by design with clear goals, evidence, and safeguards.

AI Problem Framing

Good AI starts with a narrow problem, a clear user, and a measurable improvement. If a team cannot describe the decision, AI is unlikely to make it better. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use ai problem framing with clear goals, evidence, and safeguards.

Human Centered AI

Human-centered AI designs around what people need to understand, control, and correct. The system should fit the workflow instead of forcing people to work around it. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use human centered ai with clear goals, evidence, and safeguards.

AI Return on Investment

AI value is more than model accuracy. Teams compare the cost of building and operating a system with the time, risk, revenue, or quality it improves. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use ai return on investment with clear goals, evidence, and safeguards.

AI Adoption

Adoption means people trust, understand, and use an AI tool in their real work. Training, feedback, and good workflow design matter as much as the model. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use ai adoption with clear goals, evidence, and safeguards.

AI Change Management

AI changes roles and processes, so teams need communication, training, and a plan for exceptions. Successful change happens with users, not to them. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use ai change management with clear goals, evidence, and safeguards.

Evaluation Design

Evaluation design defines what success looks like before a team builds. It combines technical scores with real business outcomes and safety limits. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use evaluation design with clear goals, evidence, and safeguards.

A B Testing

A/B testing compares two product choices with comparable users to learn which outcome is better. It needs clear metrics and enough time to avoid false conclusions. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use a b testing with clear goals, evidence, and safeguards.

Feedback Loops

Feedback loops collect user corrections and outcomes so a team can improve the system. They need review because feedback can be noisy, biased, or manipulated. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use feedback loops with clear goals, evidence, and safeguards.

Build or Buy

Build-or-buy decisions compare control, speed, cost, data needs, integration, and long-term support. The best answer depends on the business problem, not marketing claims. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use build or buy with clear goals, evidence, and safeguards.

AI Roadmaps

An AI roadmap orders work by value, readiness, risk, and dependency. It avoids chasing exciting demos while foundational data and evaluation are missing. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use ai roadmaps with clear goals, evidence, and safeguards.

Agent Orchestration

Agent orchestration coordinates models, tools, state, and policies across a workflow. A good orchestrator makes every step explicit enough to inspect and recover. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use agent orchestration with clear goals, evidence, and safeguards.

Workflow Graphs

Workflow graphs represent tasks as connected steps with clear transitions. They make branching, retries, and approvals easier to reason about than one giant prompt. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use workflow graphs with clear goals, evidence, and safeguards.

Planning Patterns

Planning patterns such as plan-and-execute separate thinking about a task from taking actions. They help teams inspect a plan before an agent makes costly changes. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use planning patterns with clear goals, evidence, and safeguards.

Memory Patterns

Memory patterns decide what an agent remembers temporarily, retrieves later, or forgets. Useful memory is selective, permissioned, and easy to correct. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use memory patterns with clear goals, evidence, and safeguards.

Tool Safety

Tool safety validates arguments, limits scope, and checks results before an external action happens. A model may suggest an action, but software must enforce the boundary. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use tool safety with clear goals, evidence, and safeguards.

Agent Evaluation

Agent evaluation tests the whole loop: planning, tool use, recovery, final outcome, and safety. It measures whether the workflow succeeds, not just whether text sounds good. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use agent evaluation with clear goals, evidence, and safeguards.

Simulation for Agents

Simulation lets an agent practise in a safe model of the real environment before it affects customers or systems. It is especially valuable for expensive or irreversible actions. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use simulation for agents with clear goals, evidence, and safeguards.

Agent Swarms

An agent swarm uses several specialised agents on a larger task. It needs a coordinator, structured handoffs, and evidence that the extra complexity improves results. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use agent swarms with clear goals, evidence, and safeguards.

Long Running Agents

Long-running agents work over hours or days, so they need durable state, checkpoints, schedules, and clear stop conditions. They cannot rely on a single chat window. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use long running agents with clear goals, evidence, and safeguards.

Agentic AI Mastery

Agentic AI mastery combines useful problem framing, grounded models, safe tools, measurable evaluation, and responsible operations. The goal is dependable outcomes, not maximum autonomy. In real work, teams test it against the task, document its limits, and keep people responsible for important decisions.

Use agentic ai mastery with clear goals, evidence, and safeguards.

Python Environment for AI

A virtual environment isolates a project's Python packages so version changes in one project do not silently break another. Reproducible AI work also records package versions and setup steps.

A clean environment is the first reliability layer in an AI project.

Python Data Types and Collections

A dictionary stores key-value pairs, which makes it useful for structured records such as feature names, configuration values, model metadata, and API payloads.

Choose data structures that make the meaning of your data explicit.

Functions and Control Flow

Functions give repeated logic a name and a contract. They make preprocessing, validation, model calls, and evaluation steps easier to test and reuse.

Small, clear functions are easier to test than one large notebook cell.

Classes, Dataclasses, and Type Hints

Type hints document expected inputs and outputs and let editors, linters, and type checkers catch many integration mistakes before runtime. They complement rather than replace tests.

Typed boundaries make complex AI systems easier to reason about.

Files, JSON, and HTTP APIs

External calls can fail, time out, or return unexpected data. Production code checks the HTTP result, validates the payload, uses timeouts, and handles errors explicitly.

Treat every external response as data that must be validated.

NumPy and pandas for AI

NumPy provides fast n-dimensional arrays and vectorized numerical operations. pandas builds on array concepts to work with labeled tabular data, filtering, joins, missing values, and feature preparation.

NumPy handles numerical arrays; pandas organizes analytical tables.

Async Python and FastAPI

AI backends often spend time waiting on network services. Async I/O lets the process handle other requests instead of blocking a worker while an external model or tool responds.

Async improves concurrency for I/O-bound AI services; it does not make the model itself faster.

Testing, Logging, and SQL Basics

You cannot require a generative model to return identical wording, but you can deterministically test schemas, permissions, retries, fallback behavior, database writes, and response handling.

Test the deterministic system around the probabilistic model.

Vectors, Matrices, and Dot Products

A dot product combines corresponding vector components into one value. With normalized vectors, it is closely related to cosine similarity and is widely used in retrieval and neural-network computation.

Vectors represent information; dot products help compare and combine them.

Derivatives and Gradients

A gradient contains partial derivatives of the loss with respect to parameters. Optimizers use this local slope information to decide how to adjust weights.

Gradients turn error into a direction for parameter updates.

Probability and Statistics for AI

Probabilities summarize uncertainty under a model or process. Calibration, data quality, and distribution shift affect whether a numeric confidence behaves as expected in real use.

AI decisions should account for uncertainty, not hide it.

Train, Validation, Test, and Cross-Validation

Training data fits the model, validation data guides tuning, and a held-out test set provides a less biased final estimate. Reusing the test set for repeated tuning contaminates that estimate.

Evaluation is only meaningful when the model has not optimized against the answer key.

Regression and Logistic Classification

Regression predicts a continuous numeric value. Classification predicts a discrete class, often using a probability or score before applying a decision threshold.

Start with a simple baseline that matches the type of target you need.

Decision Trees, Random Forests, and Boosting

Ensembles combine several weak or diverse models. Random forests reduce variance by averaging trees; boosting builds trees sequentially to focus on remaining error.

Strong AI engineering compares modern neural models with simpler baselines when the data calls for it.

Clustering and PCA

K-Means alternates between assigning examples to the nearest cluster center and updating centers. PCA instead finds directions that explain large amounts of variance and can compress correlated features.

Unsupervised methods reveal structure, but the meaning of that structure still needs interpretation.

Regularization, Imbalance, and Better Metrics

When one class dominates, high accuracy can hide poor performance on the rare class. Precision, recall, F1, PR curves, class weighting, sampling, and threshold tuning help reveal and address the trade-off.

Choose metrics that reflect the business cost of each kind of error.

PyTorch Tensors and Autograd

PyTorch builds a computation graph from tensor operations. Calling backward on a scalar loss computes gradients for parameters that require them.

Autograd connects the forward computation to the gradients needed for learning.

The PyTorch Training Loop

A training step computes predictions, calculates loss, backpropagates gradients, and updates parameters. Gradients are cleared before the next update.

A training loop is a repeatable feedback cycle, not a single model call.

Optimizers and Learning-Rate Schedules

A learning rate that is too high can destabilize training; one that is too low can make progress extremely slow. Optimizers and schedules shape how update size changes over training.

Optimization settings strongly affect whether learning converges.

Dropout, Normalization, and Regularization

Dropout randomly masks some activations during training, which can reduce co-adaptation. Normalization methods can stabilize activations and optimization. These tools are chosen based on architecture and evidence.

Regularization helps a network generalize, but it must be evaluated rather than assumed.

CNNs Beyond the Basics

Convolutions share weights across locations and build hierarchical visual features. Deeper layers combine local patterns into increasingly task-specific representations.

CNNs exploit spatial structure instead of learning every image position from scratch.

RNNs, LSTMs, and GRUs

Simple recurrent networks struggle with long-range credit assignment. LSTM and GRU gates help preserve and update information across more steps, although transformers now dominate many language tasks.

Modern transformers make more sense when you understand the sequence models they replaced.

NLP Evolution: Rules to Transformers

Earlier NLP often represented text with counts or static vectors. Contextual models produce representations that depend on surrounding text, helping distinguish meanings and relationships.

LLMs are part of a long evolution in text representation, not a sudden isolated invention.

Tokenization and Vocabulary Design

Subword tokenizers represent common pieces efficiently while decomposing rare words into smaller units. Vocabulary design affects sequence length, multilingual behavior, and compute.

The model does not read words directly; it works with token IDs chosen by a tokenizer.

Positional Information

Transformers combine token representations with position information so the model can distinguish sequences with the same tokens in different orders. Implementations may use learned, sinusoidal, rotary, or related position methods.

Meaning depends on both token identity and where it appears.

Queries, Keys, and Values

Each token is projected into query, key, and value vectors. Query-key similarity produces attention scores; those scores weight the value vectors that are combined into the output representation.

Queries ask what matters, keys describe what is available, and values carry the information to combine.

Scaled Dot-Product Attention

Dot products tend to grow in magnitude as vector dimension increases. Scaling by √dₖ helps keep softmax from becoming excessively saturated and improves optimization behavior.

The scaling term is a numerical-stability detail with a large practical effect.

Multi-Head Attention and the Transformer Block

Multiple heads apply separate projections and attention patterns before their outputs are combined. Transformer blocks then mix this information with feed-forward transformations, residual paths, and normalization.

A transformer block alternates communication across tokens with computation inside each token representation.

Causal Masking

During next-token training, each position should predict from only the allowed prefix. A causal mask hides future positions so training matches the autoregressive generation setup.

Causal masking protects the direction of information flow used for next-token prediction.

Logits, Softmax, and Sampling

The model produces one score per candidate token. Softmax converts those logits into probabilities, and a decoding strategy chooses the next token from that distribution.

Generation is a repeated score → probability → token selection process.

Temperature, Top-k, and Top-p

Temperature rescales logits before softmax. Lower values emphasize high-probability tokens; top-k and top-p restrict which candidates may be sampled. These controls change output diversity, not the underlying learned facts.

Sampling settings control variability, not truthfulness.

KV Cache and Fast Generation

During generation, past tokens do not change. Caching their key and value projections lets each new token reuse prior attention state, reducing repeated work at the cost of memory.

KV cache trades memory for much faster token-by-token decoding.

Build a Mini GPT in PyTorch

A small GPT-style model takes a sequence of token IDs and learns to predict the next token for each position. Cross-entropy compares predicted logits with the shifted target sequence.

Building a tiny GPT makes the transformer pipeline concrete.

LLM Data and Training Pipeline

Large corpora often contain duplicated or near-duplicated text. Deduplication can reduce wasted compute, reduce some memorization risks, and help keep evaluation data from leaking into training.

Model quality starts with disciplined data engineering before the first optimizer step.

Mixed Precision and Distributed Training

Lower-precision arithmetic can reduce memory use and accelerate tensor operations. Techniques such as BF16/FP16, gradient scaling, accumulation, DDP, FSDP, and ZeRO address different compute and memory limits.

Distributed training is a systems problem as much as a modeling problem.

LoRA and QLoRA

LoRA injects trainable low-rank updates into selected model layers. QLoRA combines this idea with a quantized frozen base model to reduce memory requirements further.

PEFT adapts behavior without paying the cost of updating every model weight.

RLHF, DPO, and Preference Optimization

Post-training can use human or synthetic preference comparisons to favor more useful or aligned responses. RLHF uses a reward-model-and-RL pipeline; DPO directly optimizes preferences under a related objective.

Post-training shapes behavior; it does not replace safety evaluation or policy controls.

Hugging Face Ecosystem

The Hugging Face ecosystem provides reusable libraries and a hub for models and datasets. Model and dataset cards help teams document provenance, intended use, limitations, and evaluation evidence.

Reusable tooling is most valuable when paired with documentation and responsible evaluation.

Vector Databases and ANN Search

Exact search becomes expensive as collections grow. ANN indexes such as HNSW search a structured graph or partitioned space to retrieve strong candidates without comparing against every vector.

Vector retrieval is an indexing and systems problem, not only an embedding problem.

Metadata Filtering and Namespaces

Vector similarity alone may return semantically relevant but unauthorized or inappropriate content. Metadata filters and access-control checks narrow the search space before or during retrieval.

Semantic relevance must never bypass permissions.

BM25, Sparse Search, and Hybrid Retrieval

Dense retrieval is good at paraphrases and meaning; sparse methods such as BM25 are strong for exact terms, identifiers, and rare keywords. Hybrid search combines both signals before reranking.

Good retrieval uses the signals that match the task rather than assuming one method wins everywhere.

Query Rewriting and Multi-Query Retrieval

A rewritten query can make retrieval easier, but it can also drift from the original intent. Strong systems preserve the original question, evaluate rewrites, and compare the retrieved evidence.

Rewrite to improve recall without silently changing the user's goal.

Parent-Child and Contextual Chunking

Small chunks improve retrieval precision while larger parent sections preserve coherence. Parent-child approaches search fine-grained units and return the larger source context needed for generation.

Retrieval units and answer context do not have to be the same size.

Adaptive, Corrective, and Self-RAG

Adaptive and corrective RAG systems can route questions, assess whether evidence is sufficient, rewrite the query, retrieve again, or abstain. Self-RAG-style approaches add explicit reflection or critique signals around evidence use.

Advanced RAG adds control loops around retrieval instead of assuming one pass is enough.

Multi-Hop RAG

Some questions require a chain such as identify an entity, then retrieve a related event, then combine facts. Multi-hop systems iteratively retrieve and update the query or working state.

Complex questions may require retrieval as a sequence of evidence-building steps.

Knowledge Graphs, Entities, and Relations

Knowledge graphs represent facts as entities and relationships, often expressed as subject-relation-object triples. Ontologies and entity resolution help keep graph meaning consistent.

Graphs make relationships explicit instead of leaving them implicit inside text.

GraphRAG and Neo4j/Cypher Concepts

GraphRAG approaches create or use structured relationships so retrieval can traverse connected entities, neighborhoods, or communities. Graph databases such as Neo4j expose traversal through query languages such as Cypher.

Graph retrieval complements vector similarity when relationship structure carries important meaning.

Agent Frameworks: What They Provide

Frameworks can speed development by packaging common patterns, but they also introduce abstractions and upgrade cost. Evaluate state handling, tool contracts, tracing, portability, and operational fit.

Learn the underlying agent concepts first; frameworks are implementation choices.

Stateful Agent Graphs

Graph-based workflows make control flow visible: which node runs, what state changes, what happens after failure, and where a human can intervene. This is useful for durable production agents.

Explicit graphs make complex agent behavior easier to operate than one giant prompt loop.

MCP: Host, Client, and Server Architecture

MCP standardizes how an AI application discovers and invokes capabilities provided by external servers. The host still owns policy, user experience, permissions, and how returned data is used.

MCP standardizes connection patterns; application security still has to be engineered.

MCP Tools, Resources, Prompts, Transports, and Security

Descriptions help a model choose tools, but they are not a security boundary. Real authorization must be enforced by trusted application or service code, with validation and auditing.

Protocols describe capabilities; trusted software enforces permission.

Agent-to-Agent (A2A) Concepts

Agent-to-agent interoperability needs more than sending text. Systems need capability discovery, identity, task lifecycle, structured artifacts, error handling, and trust boundaries.

A2A is about interoperable delegation with explicit contracts and ownership.

Multi-Agent Design Patterns

Multiple agents can improve specialization or parallelism, but every handoff adds latency, cost, and another failure boundary. Start simple and add roles only when evaluation justifies them.

Multi-agent architecture is a trade-off, not a maturity badge.

Model Routing and Capability Selection

A router should use observable criteria and be tested against representative tasks. It may choose a fast model for extraction, a stronger model for hard reasoning, or a non-LLM tool when deterministic code is better.

Route work to the cheapest reliable capability, not automatically to the largest model.

Harness Engineering

A model becomes a dependable working agent only when surrounded by an execution harness: instructions, context assembly, tools, sandboxes, state, hooks, verification, tracing, permissions, and recovery paths. Harness engineering improves that surrounding system whenever failures reveal a missing control or capability.

Agent quality depends on the model and the harness that makes its work legible, executable, and verifiable.

Harness vs. Framework vs. Orchestrator

A framework is a developer toolkit. Orchestration is the control logic for sequencing or delegation. A harness includes those choices plus context, tools, runtime, validation, state, permissions, tracing, and recovery.

Clear vocabulary helps teams design the correct layer instead of hiding everything behind the word agent.

Repository Instructions and Context Engineering

Coding agents perform better when the repository itself explains how to work safely: architecture, test commands, style, generated-file rules, deployment constraints, and pointers to authoritative docs. Context should be discoverable rather than repeatedly pasted.

Good context engineering makes the repository teach the agent how to work in it.

Tools, Skills, Sandboxes, and Permissions

A harness exposes capabilities deliberately. Sandboxes, allowlists, typed inputs, scoped credentials, approval gates, and read-only defaults reduce the blast radius of model mistakes or malicious content.

The harness should make the safe action easy and the dangerous action difficult.

Verification Loops, Hooks, and Evals

Harness engineering treats recurring failures as missing infrastructure. If a bug can be detected deterministically, encode that detection into tests, static checks, hooks, CI, or evaluation gates so future runs get immediate feedback.

A good harness converts repeated review comments into automated feedback.

Subagents and Long-Running Work

Long-running agents need artifacts that survive individual model contexts: task plans, current state, test results, commits, generated reports, and explicit handoff instructions. Subagents should receive bounded responsibilities and return structured evidence.

Durable work products are the memory of a long-running engineering agent.

AI Coding Agent Workflow

A dependable coding workflow asks the agent to inspect the repository, implement a bounded change, run lint/typecheck/tests/build, inspect failures, fix them, and produce a concise change report. Human review focuses on intent and edge cases rather than discovering basic breakage.

Humans steer; the harness makes execution and verification repeatable.

From Failure to Harness Improvement

Harness engineering is cumulative. After an incident, identify whether the root cause was missing context, a weak tool contract, absent tests, insufficient permission boundaries, poor observability, or a missing recovery path—and improve the harness accordingly.

The harness should get stronger every time the agent exposes a weakness.

LLM Inference and Serving

Interactive systems care about time-to-first-token and per-token latency, while high-volume services also optimize total requests or tokens processed per second.

Serving design balances user latency, hardware utilization, and cost.

Continuous Batching and KV Memory

Static batches wait for every sequence to finish. Continuous batching can replace completed sequences with new work, improving utilization. KV-cache management becomes a key memory constraint.

High-throughput LLM serving is largely a scheduling and memory-management problem.

Quantization and Serving Engines

Quantization represents weights or activations with fewer bits. It can reduce memory bandwidth and model footprint, enabling cheaper or local serving, but quality and hardware compatibility must be measured.

Quantization is a systems optimization that must be validated against task quality.

Docker, Kubernetes, and GPU Workloads

Containers package application code and runtime dependencies consistently. Kubernetes can schedule replicas, expose services, manage configuration, and request specialized resources such as GPUs.

Model quality is only one part of shipping a dependable AI service.

Cloud AI Architecture and Managed Identity

Cloud architecture should separate identity, secrets, network boundaries, model access, data stores, and observability. Managed identities and secret stores reduce credential sprawl.

Enterprise AI architecture is mostly disciplined systems engineering around model access.

LLMOps: CI/CD and Continuous Evaluation

LLMOps extends software delivery with versioned model behavior and evaluation. Release pipelines can compare candidate prompts, models, retrieval settings, and policies against regression suites before canary rollout.

AI releases need behavioral evidence in addition to unit tests.

Observability, Cost, Rollback, and Recovery

Production AI needs traces for model/tool steps, latency and token metrics, cost attribution, quality signals, release versions, and clear rollback rules. Canary releases and feature flags limit the blast radius of regressions.

Operate AI like a real service: observe it, budget it, and keep a safe path back.

One-Shot Prompt Layer

A one-shot interaction sends a prompt and receives a response. There is no persistent state, retry policy, tool loop, or workflow controller unless the application adds those capabilities around the model.

Start with the simplest interaction that can solve the task before adding agentic complexity.

Prompt Engineering Layer

Prompt engineering shapes the instruction layer: task wording, examples, role framing, expected format, constraints, and explicit success criteria. It guides behavior but does not itself enforce permissions or retries.

Prompts guide the model; hard guarantees belong in software controls.

Context Engineering Layer

Context engineering decides what the model sees at each step: system instructions, user intent, conversation state, RAG evidence, memory, tool observations, repository rules, and summaries. Good context is relevant, trusted, current, and within budget.

The quality of an agent depends heavily on what enters its context window and what stays out.

Harness Engineering Layer

Harness engineering builds the operating environment around the model: context assembly, tools, schemas, sandboxes, permissions, state, checkpoints, hooks, tests, evals, tracing, budgets, retries, and recovery. The harness turns model capability into dependable work.

Model intelligence is only one part of an agent; the harness determines how safely and reliably that intelligence can act.

Loop Engineering Layer

Loop engineering turns a model interaction into an iterative worker. Each cycle observes current state, chooses an action, checks the result, and decides whether to continue, retry, escalate, or stop. Production loops need budgets and stuck-loop protection.

Every agent loop needs a way to prove progress and a safe way to stop.

Graph Engineering Layer

Graph engineering makes control flow explicit. Nodes perform work; edges encode transitions; shared state carries durable facts; conditional branches, parallel fan-out, joins, retries, and human approvals become visible and testable.

Graphs make multi-step agent behavior inspectable instead of hiding orchestration inside one giant prompt.

Architectural Constraints for Agents

Examples include import-boundary rules, dependency policies, generated-file restrictions, schema validation, formatting, linters, tests, architecture decision records, and repository instructions. These constraints reduce the cost of reviewing repetitive mistakes.

If a rule can be checked by software, prefer an automated check over repeated human correction.

Workflow Control, Decomposition, and Parallelism

Task decomposition creates bounded units with clear inputs, outputs, and ownership. Independent research or analysis can run in parallel, while coupled work may need sequencing. Parallelism needs merge rules, conflict detection, and a final integration check.

Parallel execution only helps when coordination cost is lower than the time it saves.

Entropy Management in Agentic Codebases

Agentic development can accelerate both useful change and disorder. Entropy management means pruning obsolete context, consolidating duplicated patterns, refreshing docs, updating dependencies, validating architecture boundaries, and keeping the harness internally consistent.

A fast agent on a decaying workspace becomes slower over time; maintenance is part of the harness.

Document, Rule, and Skill Freshness

Stale documentation creates false confidence. Strong agentic teams version instructions beside code, review them during architectural changes, add freshness checks where possible, and remove contradictory guidance.

Context quality depends on freshness, not just completeness.

The Failure-to-Harness Improvement Cycle

A mature agentic system learns operationally: observe failure, identify the missing context or control, add a rule/tool/test/eval, rerun the task, and preserve the improvement. This creates a compounding reliability loop.

The harness should become stronger every time the agent exposes a weakness.

Claude Code: Product, Surfaces, and Use Cases

Claude Code is an agentic coding environment available across terminal, IDE, desktop, web, and other surfaces. It can inspect repositories, modify files, run commands, integrate with tools, and automate engineering workflows.

Use Claude Code for agentic software work; use direct APIs or the Agent SDK when you need a custom application boundary.

How Claude Code's Agent Loop Works

Claude Code operates through an agent loop: it reads context, chooses actions such as file reads or commands, observes results, updates its working state, and continues until the task is complete or needs user input.

Claude Code is a tool-using workflow runtime around a model, not just an autocomplete surface.

CLAUDE.md: Persistent Project Instructions

CLAUDE.md provides persistent project context. Good entries are concise and durable: build commands, architecture decisions, coding rules, testing expectations, naming conventions, and pointers to deeper documentation.

Put stable facts in CLAUDE.md; move long procedures into skills and enforce critical rules with code or hooks.

Instruction Hierarchy, Imports, and .claude/rules

Claude Code can load instructions at organization, user, project, local, and nested scopes. Imports reduce duplication, while .claude/rules can keep domain-specific guidance modular and conditionally relevant.

Instruction scope should match code scope so context stays precise instead of noisy.

CLAUDE.md and AGENTS.md Interoperability

Many repositories support multiple coding-agent ecosystems. A clean approach is to keep shared repository guidance in one source and have Claude-specific instructions import or complement it, reducing duplication and drift.

Cross-agent instruction design should minimize duplicated policy.

Claude Code Auto Memory

Claude Code can maintain repository-specific memory of useful discoveries such as build commands, debugging insights, and recurring preferences. Auto memory is context, not a hard policy boundary.

Use memory for useful learned context, not for security enforcement.

Context Window, /compact, and Context Hygiene

Claude Code operates within a finite context window. Large logs, repeated files, oversized instructions, and irrelevant tool output can crowd out useful context. Compaction and subagents help preserve the most important state.

Context is a budget; spend it on information that changes the next decision.

Prompt Caching in Claude Code

Prompt caching reduces repeated processing of stable prefixes such as system instructions or long reusable context. Good context organization can improve both cost and latency when large portions remain unchanged.

Stable, well-structured context is not only clearer; it can also be more efficient.

The .claude Directory and Settings

The .claude directory can hold project-scoped configuration and reusable agent assets. Team-owned configuration should be reviewable and versioned, while personal or secret information belongs outside shared source control.

Treat agent configuration as production configuration: review it, version it, and keep secrets out.

Claude Code Permission Modes

Claude Code permission modes trade convenience against oversight. Sensitive repositories need more review; isolated sandboxes can tolerate more autonomy. Explicit allow, ask, and deny rules remain important because convenience modes are not a substitute for security design.

More autonomy is appropriate only when the environment and permission boundaries make mistakes recoverable.

Sessions, Resume, Continue, and Fork

Claude Code sessions preserve working context. You can resume, continue, or fork depending on whether you need the same history, a related branch, or a fresh context. Session discipline reduces irrelevant carryover.

Treat session state as a design choice, not an invisible convenience.

Claude Skills and SKILL.md

Skills turn repeated operational procedures into reusable agent capabilities. A skill can include instructions, supporting files, arguments, controlled tool access, and task-specific context without bloating every session.

CLAUDE.md stores durable always-on guidance; skills package on-demand procedures.

Claude Code Hooks

Hooks run at defined lifecycle points such as before tool use, after tool use, on failures, around compaction, or when sessions and subagents change state. They are useful for policy enforcement, formatting, testing, logging, and automated feedback.

Hooks turn important agent lifecycle events into programmable control points.

Claude Code with MCP

MCP lets Claude Code connect to tool and context providers using a standard protocol. The host still needs to decide which servers are trusted, what tools are allowed, and how credentials and permissions are enforced.

MCP standardizes connectivity, not trust.

Custom Claude Code Subagents

Subagents isolate specialized work from the main conversation. They can be configured with their own instructions, tools, permissions, skills, memory, and hooks, which helps both specialization and context management.

Use subagents to isolate bounded work, not simply to maximize agent count.

Agent Teams and Background Agents

Multiple agents can work in parallel on independent subtasks or separate sessions. Effective teams need scoped responsibilities, conflict avoidance, progress visibility, and a lead or integration process that reconciles results.

Parallel agents need stronger coordination, not weaker structure.

Headless CLI and Programmatic Claude Code

Claude Code can run non-interactively for automation. Headless usage is useful for pipelines that feed logs, diffs, or files into a task and consume structured output or a process exit result.

Headless mode turns an interactive coding agent into a composable automation component.

Git, Pull Requests, and CI/CD with Claude Code

Claude Code can participate in normal software delivery, but source control, CI, review, security checks, and branch protections remain the authority. The agent should produce evidence, not replace governance.

Use coding agents inside your engineering controls, not instead of them.

Remote, Web, Mobile, and Scheduled Workflows

Cloud and remote coding workflows make long-running automation convenient, but they increase the importance of durable state, scoped credentials, auditability, notifications, and clear stop conditions.

Asynchronous agents need stronger operational controls because humans are not continuously present.

Plugins, Extensions, and Reusable Claude Tooling

Reusable extensions reduce copy-paste drift. Strong packages have clear ownership, versions, documented permissions, tests, migration notes, and a review process because agent extensions can execute powerful actions.

Reusable agent capabilities should be governed like reusable software dependencies.

Claude Agent SDK in Python

The Claude Agent SDK exposes the same agentic foundations programmatically in Python and TypeScript. Applications can manage sessions, tools, hooks, permissions, MCP, structured output, and custom orchestration.

The Agent SDK is the bridge from an interactive coding agent to a productized custom agent.

Agent SDK Tools, Hooks, MCP, and Permissions

The Agent SDK supports built-in tools, custom tools, in-process MCP servers, hook callbacks, session control, and permission decisions. Security-critical decisions belong in trusted code and deployment policy.

SDK flexibility increases the need for explicit authorization and observability.

Agent SDK Checkpointing, Cost, and Observability

Production agent systems need session history, traces, cost and token data, checkpointing, error events, and release identifiers. Observability makes failures diagnosable and supports safe rollback or recovery.

An agent you cannot inspect is an agent you cannot reliably improve.

Claude Code Enterprise Governance and Security

Enterprise use requires governance beyond individual prompts: approved configuration, least-privilege tools, managed integrations, protected resources, secret handling, logging, policy review, and safe environments for autonomous execution.

Enterprise coding agents should inherit organizational controls, not rely on individual caution.

Claude Code Production Capstone

A strong capstone is not a clever demo. It is a governed engineering system where instructions are maintainable, tools are bounded, automation is testable, parallel work is coordinated, failures improve the harness, and releases remain reviewable.

Claude Code mastery means engineering the environment around the agent as carefully as the code the agent writes.

OpenAI Platform Setup, Projects, and API Keys

API keys are credentials and belong in trusted server-side environments. Separate projects, keys, environments, and budgets help limit blast radius and support reliable operations.

Treat model access like any other production credential.

OpenAI Responses API

The Assistants API was sunset in 2026. New integrations should use the Responses API, which works with input and output items and can be combined with conversations, tools, streaming, and other platform capabilities.

Build new OpenAI applications on current APIs, not retired abstractions.

Conversations, Prompts, and Stateful Applications

Production applications need explicit control over conversation history, tool outputs, retries, and prompt configuration. State should be intentional, bounded, and compatible with privacy and retention requirements.

Conversation state is application architecture, not just a long message array.

OpenAI Model Selection, Reasoning, Latency, and Cost

Model selection should be evidence-driven. Use representative evaluations, understand token and tool costs, and route simpler tasks to smaller models when they meet the quality bar.

The best model is the cheapest reliable model for the specific task.

Structured Outputs and Function Calling

Structured outputs help applications receive predictable data, while function calling lets the model request approved actions. Schemas improve reliability but do not replace server-side validation or authorization.

Let the model propose actions; let trusted code decide whether they may execute.

OpenAI Built-in Tools

Built-in tools expand what a model can observe and do. Production designs should expose only the capabilities a task needs, define approval rules, and measure tool success and failure.

Every additional tool expands both capability and attack surface.

OpenAI File Search, Embeddings, and RAG

Retrieval supplies task-relevant content to the model at inference time. Good RAG still requires chunking, metadata, permissions, retrieval evaluation, citations, and fallback behavior when evidence is weak.

RAG is an evidence pipeline, not just a vector database.

Realtime, Voice, Audio, Vision, and Multimodal OpenAI

Realtime systems add timing and interaction design constraints beyond text chat. Voice sessions need interruption handling, state, streaming, network recovery, and careful tool approval.

Multimodal AI is an interaction-systems problem, not only a model-call problem.

Streaming, Batch, Caching, and Cost Control

Streaming improves perceived latency for interactive applications, while batch processing can improve economics for large asynchronous jobs. Caching and token discipline reduce repeated work.

Match the execution mode to the user's latency requirement.

OpenAI Evals, Safety, and Production Observability

AI systems need regression datasets, task-success metrics, safety checks, traces, token and cost monitoring, error budgets, and incident response. Evaluations should be representative of real user work.

Production AI needs evidence, not intuition, before release.

OpenAI API Lifecycle and Migration Strategy

The OpenAI platform evolves quickly. For example, the Assistants API was sunset in 2026. Durable systems isolate provider-specific code, monitor official release notes, and test new models and APIs against a regression suite before switching.

API lifecycle management is part of AI engineering.

Google Cloud and Vertex AI Foundations

Vertex AI sits inside Google Cloud governance. Projects define resource and quota boundaries; IAM controls access; service identities and ADC make workloads authenticate without embedding long-lived secrets.

Cloud AI starts with identity, project, region, and quota design.

Google Gen AI SDK on Vertex AI

Google has moved Gemini application development toward the Google Gen AI SDK while retaining Vertex AI for cloud governance and enterprise services. The SDK can use Vertex-backed authentication, projects, and locations.

Learn the current SDK surface and understand the cloud platform behind it.

Vertex AI Model Garden

Model Garden centralizes model discovery across first-party, partner, and open models. Engineers should compare modality, context, region, licensing, cost, safety, and deployment model before adoption.

Model selection is a platform decision as well as a modeling decision.

Gemini on Vertex AI: Multimodal, Structured Output, and Tools

Gemini can process multimodal inputs and call declared functions. The application remains responsible for validating arguments, authorizing the user, executing tools, and returning results safely.

Function calling is orchestration, not authorization.

Vertex Embeddings and Vector Search

Vector Search can serve high-scale semantic retrieval, but the index must match embedding dimensions and distance configuration. Metadata filters and permissions remain essential.

A vector database is only as correct as its embedding and access design.

Vertex AI RAG Engine

Vertex AI RAG Engine provides managed RAG orchestration and can work with multiple retrieval backends. Teams still need source governance, evaluation, permissions, freshness, and citation design.

Managed RAG reduces plumbing, not responsibility for evidence quality.

Agent Search and Grounding with Google Search

Google provides managed retrieval and grounding options for enterprise data and Google Search. Choose the source based on freshness, trust, permissions, latency, and regulatory requirements.

Grounding strategy depends on where authoritative evidence lives.

Google ADK and Agent Engine

Google's agent stack separates development tooling from managed runtime capabilities. Agent frameworks help structure behavior; managed runtime services help deploy, scale, secure, and observe agents.

Agent development and agent operations are separate engineering concerns.

Vertex AI Evaluation and Observability

Separating retrieval quality, groundedness, answer quality, latency, safety, and cost makes failures diagnosable. A single overall score hides which layer needs improvement.

Measure each stage of the AI pipeline so you know what to fix.

Vertex AI Pipelines, Registry, Endpoints, and Monitoring

Vertex AI also provides traditional MLOps capabilities such as pipelines, model registry, online and batch inference, feature services, and monitoring. End-to-end AI engineers should understand both ML and GenAI operations.

Generative AI does not eliminate the need for disciplined MLOps.

Vertex AI Security, Networking, Cost, and Capstone

A production design considers service accounts, VPC controls, encryption, regions, quotas, budgets, data access, retrieval, agents, evaluation, traces, incident response, and rollback.

Cloud AI architecture is the full operating system around models.

Microsoft Foundry and Azure OpenAI Overview

Microsoft Foundry combines model access, agent services, tool integrations, evaluation, tracing, RBAC, networking, and policy under an enterprise Azure platform.

Foundry is an AI application platform, not just an endpoint for one model family.

Azure OpenAI v1 and Responses API

Azure supports OpenAI SDK patterns through Azure endpoints, including Responses API scenarios. Managed identity through Microsoft Entra ID is preferred in many production environments.

Use the current Azure API surface and cloud-native identity.

Foundry Model Catalog and Deployment Models

Foundry provides access to a large model catalog. Enterprise teams should compare availability, licensing, deployment type, data handling, region, quota, evaluation results, and cost.

Cloud model choice is a governed procurement and engineering decision.

Microsoft Foundry Agent Service

Foundry supports managed agent patterns and hosted agent code. The right choice depends on how much custom orchestration, networking, state, and runtime control the application needs.

Choose the agent hosting model that matches your control requirements.

Azure AI Search, Hybrid Search, and Agentic Retrieval

Azure AI Search supports vector and hybrid search and newer agentic retrieval patterns that can decompose complex questions. Permission-aware design and evaluation remain essential.

Enterprise retrieval should combine relevance with authorization.

Foundry Tools, MCP, File Search, and Code Execution

Foundry agents can use several managed and external tools. Each tool introduces permissions, data movement, and operational dependencies that should be reviewed and monitored.

Tool connectivity is powerful only when policy and identity are equally strong.

Foundry Evaluation, Tracing, and Application Insights

Agent quality includes both local behavior and overall task completion. Foundry provides evaluators and trace-based workflows so teams can diagnose tool errors, instruction drift, and user-experience failures.

Evaluate the journey, not only isolated answers.

Microsoft Foundry Enterprise Capstone

The capstone should connect architecture, retrieval, agents, identity, networking, evaluation, observability, cost, and operational recovery into one governed system.

A demo proves capability; production proves control.

Amazon Bedrock Foundations and Model Access

Bedrock integrates with AWS IAM and regional service controls. Production workloads should use scoped roles, temporary credentials, monitoring, and explicit model permissions.

Bedrock inherits AWS identity and governance strengths when configured correctly.

Bedrock Converse, Invoke, and OpenAI-Compatible APIs

Bedrock supports several API patterns. Converse standardizes many multi-turn interactions, while other endpoints support provider-native or OpenAI-compatible patterns. Choose based on capabilities and portability needs.

Use a stable internal abstraction even when the cloud offers several API styles.

Amazon Bedrock Knowledge Bases

Knowledge Bases provide managed retrieval and RAG capabilities, but enterprise applications still need authorization filters, data freshness, source quality, and retrieval evaluation.

Managed retrieval does not remove data-governance requirements.

Amazon Bedrock Agents

Bedrock Agents can orchestrate tools and knowledge, but authorization belongs in trusted AWS or application controls. Session state and guardrails should be observable and testable.

Managed agents simplify orchestration, not accountability.

Amazon Bedrock Guardrails

Guardrails can evaluate inputs and outputs and apply policy-based interventions. They improve defense in depth but do not replace identity, tool permissions, or application-specific policy.

Safety controls work best in layers.

Bedrock AgentCore Runtime and Memory

AgentCore separates runtime concerns from memory services. Memory design should define what is stored, when it is retrieved, how it is corrected, and when it expires.

Memory is a governed data system, not just longer chat history.

AgentCore Gateway and Identity

AgentCore Gateway provides a centralized access point and can front MCP, HTTP, and agent/runtime targets. Identity services manage agent and user credentials so downstream calls can remain scoped and auditable.

Agent infrastructure needs first-class identity just like human-facing systems.

AgentCore Browser and Code Interpreter

Managed execution environments can isolate code and browsing from production systems. Network mode, IAM role, file access, timeouts, and observability should be deliberately configured.

Sandboxes make powerful tools safer when permissions are narrow.

Bedrock Evaluation and Observability

AWS provides model and knowledge-base evaluation capabilities and AgentCore evaluation/observability services. Strong teams combine managed metrics with domain-specific regression tests.

Measure the entire agent path, not only the foundation model.

Bedrock and AgentCore Enterprise Capstone

The capstone should combine IAM, private networking, model inference, RAG, guardrails, runtime, memory, tool gateways, code/browser sandboxes, evaluation, CloudWatch-style observability, and cost controls.

Cloud-native agent engineering is security architecture plus AI architecture.

Anthropic API Foundations

Claude API applications need the same production discipline as any other model provider: secure credentials, retries, timeouts, budgets, logging, and evaluation.

Provider choice does not change basic security engineering.

Claude Tool Use and Structured Workflows

Claude can request tools, but the application executes them, checks authorization, and returns results. This keeps business actions under deterministic control.

Tool use is a cooperative loop between model and application.

Claude Prompt Caching and Context Economics

Prompt caching is most useful for stable repeated prefixes. Engineers should organize context so reusable content is separate from rapidly changing user or tool data.

Context design affects both quality and economics.

Claude Batch Processing

Batch workflows are useful for high-volume offline generation or classification. They need job tracking, idempotency, result validation, and retry handling.

Batch is an operations pattern, not just a cheaper endpoint.

Claude Enterprise Safety, Privacy, and Governance

LLM policy instructions are not access controls. Enterprise deployments need identity, least privilege, data governance, auditability, and evaluation around model behavior.

Security policy must be enforced outside the model.

Claude Direct API vs Cloud Marketplaces

Enterprises may access Claude directly or through supported cloud environments. The decision depends on procurement, identity, networking, regional availability, features, latency, and governance.

The same model can have different operational characteristics depending on where it is hosted.

Claude API Production Capstone

A serious capstone includes tool authorization, RAG, context management, prompt caching, tests, evaluation, rate-limit handling, observability, security, and operational fallbacks.

Production quality comes from the system around the model.

Hugging Face Hub and Transformers

Open-model ecosystems provide huge flexibility, but engineers remain responsible for license compatibility, trust, safety, data handling, and reproducibility.

Open access does not mean zero governance.

Hugging Face Datasets and Tokenizers

Dataset versioning, deterministic preprocessing, schema validation, and tokenizer configuration are foundational for trustworthy experiments.

Data pipelines deserve the same rigor as model code.

PEFT, LoRA, Accelerate, and TRL Concepts

PEFT methods such as LoRA reduce memory and compute requirements. Accelerate and related tools simplify distributed training, while post-training libraries support preference and reinforcement workflows.

Open-model adaptation is a systems and evaluation problem, not just a training command.

vLLM and High-Throughput Model Serving

vLLM-style serving focuses on efficient scheduling and memory management for autoregressive models. Production deployments still need authentication, rate limits, monitoring, and capacity planning.

Serving efficiency is an infrastructure discipline.

llama.cpp, Ollama, and Local AI

Local inference can improve privacy, offline operation, and latency for suitable models. Trade-offs include hardware constraints, model quality, upgrades, observability, and local security.

Local AI trades cloud convenience for control and hardware responsibility.

Quantization and Model Compression

Quantization can reduce memory and increase serving efficiency but may affect quality. Benchmark the actual workload and hardware rather than assuming one bit width is universally best.

Compression is a measurable trade-off, not a free optimization.

Open-Model Security, Licenses, and Supply Chain

Open ecosystems can include custom code, weights, package dependencies, and external artifacts. Use trusted sources, pin versions, scan dependencies, sandbox untrusted code, and review licenses.

Open-source AI requires software supply-chain discipline.

Self-Hosted AI Production Capstone

A production open-model service needs model artifact management, serving runtime, GPU scheduling, authentication, rate limits, observability, cost tracking, canaries, and recovery.

Self-hosting shifts operational responsibility from the provider to your team.

Provider Abstraction and Portable AI Architecture

A useful abstraction preserves common application needs while allowing provider-specific escape hatches. Over-abstraction can hide important capabilities; under-abstraction creates migration pain.

Abstract the stable core, not every detail.

Model Routing, Fallback, and Resilience

Fallbacks need task-level evaluations, schema compatibility, tool compatibility, and safety testing. Availability alone is not enough.

Resilience must preserve task quality, not just uptime.

Cross-Provider RAG Architecture

A modular RAG architecture lets teams switch embedding models, vector stores, rerankers, and generators independently, while keeping evaluation and permissions consistent.

RAG portability comes from clear contracts between pipeline stages.

Portable Tools, MCP, and Agent Interoperability

MCP and similar protocols can reduce tool integration duplication, but applications still need provider adapters, identity mapping, audit logs, and consistent error handling.

Protocol interoperability helps most when business rules stay outside model prompts.

Multi-Provider Evaluation Matrix

Provider evaluation should measure quality, groundedness, tool success, safety, latency, throughput, cost, region support, and operational fit on your real use cases.

Benchmark the workload, not the hype.

AI FinOps and Cost Engineering

AI cost comes from more than tokens. Tool calls, vector storage, managed runtimes, GPUs, data transfer, idle endpoints, and retries all matter. Cost attribution makes optimization measurable.

You cannot optimize AI spend you cannot attribute.

Data Residency, Privacy, and Cross-Cloud Governance

Different providers, regions, and products can have different data processing and retention properties. Enterprise architecture should document approved data classes and routes.

Data governance determines where AI is allowed to run.

End-to-End Multi-Cloud AI Platform Capstone

The capstone brings the curriculum together: user experience, provider adapters, model routing, RAG, tools, agents, MCP, identity, evaluations, traces, budgets, data governance, deployment, incident response, and rollback.

End-to-end AI engineering means controlling the whole lifecycle from data and model choice to production operations.

Model Context Protocol (MCP)

Model Context Protocol is an open protocol for connecting AI applications with external tools and context sources through defined host, client, and server roles.

MCP standardizes connections; it does not itself make a model safe or grant unlimited permissions.