Understand AI,
one idea at a time.
A practical path from the foundations to building with AI. Learn how models work, where they fall short, and how to check what they produce.
No machine-learning background required. Start at the beginning or choose the question you have today. The developer guides use small code examples and familiar application scenarios.
Start with AI foundations →Looking for the AI Assistant? It has moved to /assistant. Sign in there for coding help.
AI Fundamentals
Build a clear mental model of learning, prediction and generation.
Artificial Intelligence vs Machine Learning vs Deep Learning
Understand the relationship between AI, machine learning and deep learning, and choose an appropriate approach for a real task.
No prior AI knowledge neededHow AI Models Learn: Training and Inference
Follow data through training, evaluation and inference, and learn why a model can perform well in training yet fail in use.
Before you start: AI, machine learning and deep learningWhat Is Generative AI?
Learn what generative models produce, where they help, and how to evaluate outputs without confusing fluency with accuracy.
Before you start: Training and inferenceHow Large Language Models Work
Explore tokens, learned representations, attention and next-token generation through a practical language-model workflow.
Before you start: Generative AITokens and Context Windows
Plan a context budget, understand tokenization, and manage long conversations without silently losing important information.
Before you start: Large language modelsWhat Are Embeddings?
Understand vector representations and semantic retrieval, including the limits of similarity scores and document search.
Before you start: Large language models · Basic JavaScript for the exampleWhy AI Hallucinates
Recognize unsupported claims and invented APIs, then use evidence, evaluation and abstention to reduce their impact.
Before you start: Generative AI
Using AI Tools
Use everyday AI tools with clear instructions and independent checks.
Using ChatGPT
Understand the chat workflow, give useful context, and check answers and tool results against evidence.
Before you start: Generative AIUsing Claude
Work with documents and coding tasks in Claude, while checking claims, permissions and the results of any tools.
Before you start: Generative AIUsing Google Gemini
Use Gemini for a bounded task, understand grounding and connected tools, and distinguish a generated answer from verified evidence.
Before you start: Generative AIPrompt Engineering for Developers
Write clear tasks, supply relevant context and test prompt changes against examples instead of relying on magic phrases.
Before you start: Tokens and context windowsUsing AI for Research
Turn a research question into a source plan, verify citations and build conclusions that reflect the available evidence.
Before you start: Hallucinations and reliabilityUsing AI for Programming
Specify a small programming task, inspect the proposed implementation and test it against independent examples.
Before you start: Basic JavaScript · Prompt engineeringAI Agents and Tool Use
Follow an agent loop and learn how tool contracts, permissions, confirmation and stopping rules constrain its actions.
Before you start: Prompt engineering · Basic JavaScript
Building with AI
Build reliable applications around models, data and controlled actions.
Working with AI APIs
Design a server-side AI integration with validation, timeouts, cost limits and useful handling of incomplete or invalid results.
Before you start: HTTP requests · Basic server-side programmingIntegrating AI into a Website
Connect a browser interface to a controlled server boundary, with clear loading, cancellation and failure behavior.
Before you start: AI APIs · JavaScript fetch and async/awaitBuilding an AI Chatbot
Manage conversation state, context budgets and concurrent messages without treating generated replies as trusted facts.
Before you start: AI APIs · JavaScript arrays and functionsStructured Outputs and Function Calling
Distinguish schema-constrained data from proposed tool actions, then validate both structure and authority before use.
Before you start: AI APIs · JSON and basic validationRetrieval-Augmented Generation
Build an evidence path from documents to answers, with access controls, useful chunks, citations and retrieval evaluation.
Before you start: Embeddings · AI APIsVector Databases and Similarity Search
Understand vector indexes, distance metrics and filtered retrieval, and evaluate search quality without confusing similarity with truth.
Before you start: Embeddings · Database basicsHow to Verify AI-Generated Code
Review generated code against requirements, independent tests, security boundaries and the dependencies you actually use.
Before you start: Basic JavaScript and testsUsing AI to Debug Code
Turn a reproducible failure into a focused investigation, test hypotheses and verify the smallest justified correction.
Before you start: JavaScript functions, promises and async/awaitBuilding AI Features Securely
Separate model suggestions from authority, protect private data and constrain tools before adding AI to an application.
Before you start: AI APIs · Authentication and authorization basics
Generative & Multimodal AI
Explore how AI generates and interprets images, video, speech and other inputs.
AI Image Generation
Write an image brief, iterate on controlled changes and evaluate generated visuals for usefulness, consistency and disclosure.
Before you start: Generative AIHow Diffusion Models Work
Explore noise, denoising and conditioning through a careful model of the diffusion process and its limitations.
Before you start: Training and inference · Generative AIAI Video Generation
Plan a short generated scene and evaluate motion, temporal consistency, editing constraints and the final delivery.
Before you start: AI image generationAI Speech and Voice
Distinguish transcription from speech generation, prepare audio tasks and evaluate intelligibility, errors and consent.
Before you start: Generative AIMultimodal AI
Combine text, images and audio in a task while preserving evidence boundaries and testing what each input contributes.
Before you start: Large language models · Generative AIComputer Vision
Distinguish classification, detection and segmentation, then evaluate predictions under realistic image conditions.
Before you start: Training and inference
Applied & Advanced AI
Apply AI in real systems, measure its results and examine its wider effects.
AI and the Internet of Things
Follow sensor data into a prediction, validate input quality and keep physical control decisions outside the model.
Before you start: Training and inference · Basic JavaScript for the exampleEdge AI
Plan local inference around device memory, latency, energy and quality, including quantization and offline behavior.
Before you start: Training and inferenceAI Automation
Place a bounded AI step in a reliable workflow with explicit state, human review, safe retries and recovery.
Before you start: AI agents and tool use · Basic JavaScriptFine-Tuning AI Models
Decide when training is justified, prepare separate datasets and compare a fine-tuned model with simpler approaches.
Before you start: Training and inference · AI APIsEvaluating AI Models
Build task-specific evaluations, interpret precision and recall, and examine failure cases before and after release.
Before you start: Training and inference · Basic JavaScript for the exampleAI Privacy, Safety and Ethics
Map an AI feature’s data and effects, evaluate potential harms and define responsibilities, review and redress.
Before you start: Generative AI
Need a programming refresher? Browse the language documentation or experiment in the Playground.