Generative & Agentic AI
From neural networks to LLMs, RAG, GraphRAG and AI agents with LangChain, LangGraph, MCP and A2A, built on AWS, Azure or Google Cloud, with hands-on projects.
56 lessons, 39 of them free.
AI Foundations
- Machine Learning in 15 Minutes: Before GenAI: how a computer 'learns' from examples.
- Neural Networks from Scratch: Build a neural network in your head: neurons, layers, loss, gradient descent and backprop, with tiny numbers you can check by hand.
- What Is GenAI? LLMs & Tokens: How ChatGPT-like models actually work: predicting the next token.
- Tokenization & Byte-Pair Encoding: See text the way an LLM does: as tokens. Train a tiny byte-pair encoding (BPE) tokenizer by hand, and explain why tokens decide cost, context limits and some famous model mistakes.
- Transformers & Attention: The architecture behind every modern LLM, without the scary maths.
- How LLMs Are Trained: Pretraining, SFT & RLHF: Explain the three training stages that turn random numbers into a helpful assistant, and why each stage is needed.
- Reasoning Models & RL Post-Training: Explain how reasoning models think longer at test time, how RL with verifiable rewards and GRPO train them, where reward hacking comes from, and when a reasoning model is worth its latency and cost.
Working with LLMs
- Prompt Engineering: Talk to models clearly to get great results: no code changes needed.
- In-Context Learning & Inference Parameters: Structure prompts, teach a model with examples instead of training, and set temperature, top-k, top-p, max tokens and stop sequences on purpose.
- Decoding: Greedy, Beam Search, Sampling & Structured Output: Explain how an LLM turns next-token scores into text: greedy, beam search, temperature, top-k, top-p, min-p, penalties, stop sequences and constrained decoding for reliable JSON, and implement beam search.
- Building With LLM APIs: Messages, roles, streaming, JSON output and costs: the daily work of an AI engineer.
- Context Engineering & Prompt Caching: Treat the context window as a budget: choose what goes in, order it so prompt caching works, keep long chats inside the limit, and stop untrusted text from taking control.
- Embeddings & Vector Search: Turn meaning into numbers so computers can find 'similar' things.
GenAI on the Cloud
- GenAI on AWS: The Big Picture: Map any GenAI idea onto AWS's three layers and the six-stage project lifecycle, and choose between Amazon Q, Bedrock, SageMaker and self-hosting.
- Amazon Bedrock & the Converse API: Call any Bedrock model with one message format, read stop reasons and token usage, and run a full tool-use loop.
- Guardrails & Responsible AI on Bedrock: Design a guardrail that filters harmful content, blocks off-limits topics, masks personal data and catches ungrounded answers, on both the prompt and the response.
- Open Source vs Cloud LLMs: Run Llama on your laptop or call Bedrock/Vertex/Azure, and size the hardware.
Retrieval-Augmented Generation
- RAG: Chat With Your Own Documents: Retrieval-Augmented Generation: give the model an open-book exam.
- Vector Databases & Similarity Search: Understand how a vector database finds the closest embeddings among millions in milliseconds, pick a distance metric and index, and choose the right AWS vector store.
- Advanced RAG: Chunking, Hybrid Search & Reranking: Fix the common ways basic RAG fails: chunk documents well, combine keyword and vector search with reciprocal rank fusion, rerank and diversify the results, rewrite vague questions, and measure it all.
- Bedrock Knowledge Bases: Managed RAG: Set up RAG on AWS without building the plumbing: connect a data source, let Amazon Bedrock Knowledge Bases parse, chunk, embed and index it, then query with Retrieve or RetrieveAndGenerate, with metadata filters and citations.
- GraphRAG: Knowledge Graphs for Retrieval: See why top-k vector search fails on multi-hop and whole-dataset questions, build a knowledge graph from text with an LLM, answer with local search (walk out from the matched entities) or global search (community summaries), and run it on AWS with Neptune Analytics and Bedrock Knowledge Bases.
Agentic AI
- What Is Agentic AI?: Tell an LLM call, a chatbot, a workflow and an agent apart, know the five common workflow patterns, and decide when an agent is worth its cost and when a simple workflow is better.
- AI Agents & Tool Calling: LLMs that can take actions: search, calculate, call APIs, and loop until done.
- Build a ReAct Agent from Scratch: Write a working ReAct agent in plain Python: a prompt that teaches Thought / Action / Observation, a tool registry, a parser for the model's reply, a loop with stop conditions, and error handling that lets the model recover.
- Agent Memory, Planning & Reflection: Give agents memory that fits the context window and survives across sessions, make them plan before acting, let them critique their own work, and stop them from looping.
- Model Context Protocol (MCP): Understand why MCP exists, how hosts, clients and servers talk over JSON-RPC 2.0 (initialize, tools/list, tools/call), which transport to use, how to keep MCP tools safe, and how AgentCore Gateway turns AWS APIs and Lambda functions into MCP tools.
- Amazon Bedrock Agents: Build a managed AWS agent from instructions, a foundation model, Lambda action groups and knowledge bases, call it with InvokeAgent, and read its trace.
- Amazon Bedrock AgentCore: Running Agents in Production (Pro): Know what each AgentCore service does (Runtime, Memory, Gateway, Identity, Code Interpreter, Browser, Observability), how a request flows through them, and when to pick AgentCore over Bedrock Agents.
- Multi-Agent Systems (Pro): Decide when to split work across several agents, choose a pattern (supervisor, hierarchy, swarm, graph, agents-as-tools), build it on AWS, and avoid loops, cost blow-ups and conflicting answers.
Agent Frameworks & Protocols
- LangChain Essentials: Know what LangChain gives you and when to skip it: chat models on Amazon Bedrock, prompt templates, parsers and structured output, composing steps with the pipe, retrievers, tools and create_agent, plus tracing.
- LangGraph: Agents as Graphs: Model an agent as a state machine: typed state with reducers, nodes, conditional edges and loops, a recursion limit, checkpointers for memory and resume, human approval with interrupts, streaming and subgraphs, then ship it on Bedrock AgentCore Runtime.
- Agent2Agent (A2A) Protocol: Connect agents built by different teams and vendors: discover them with Agent Cards, send them work as tasks, follow the task lifecycle (including input-required), stream updates or get push notifications, receive artifacts, and run A2A agents on Amazon Bedrock AgentCore Runtime alongside MCP tools.
Customize & Ship
- Fine-Tuning & LoRA: Teach a model new habits cheaply, and know when NOT to.
- Making Models Smaller & Faster (Pro): Do the memory maths for any model, choose a precision, explain quantization, distillation, the KV cache, FlashAttention and batching, and serve models on AWS with autoscaling and safe rollouts.
- LLM Inference & Serving at Scale: Explain prefill and decode, size the KV cache, and design a serving stack that uses continuous batching, paged memory, prefix caching, speculative decoding and Mixture of Experts, on Bedrock or SageMaker AI.
- Multimodal & Image Generation: Understand how models read images (vision-language models), how diffusion models create images by removing noise step by step, and how to use Claude vision, Amazon Nova Canvas and Stability models on Bedrock safely.
- Evaluation & Guardrails: How to know your AI app actually works, and keep it safe.
- LLMOps: Shipping GenAI on the Cloud (Pro): Architecture, caching, cost and monitoring for real GenAI products on AWS/GCP/Azure or open source.
Frontier GenAI
- Computer-Use, Browser & Coding Agents: Understand agents that act through a screen or a terminal: the observe, think, act loop, pixels versus element references, browser, desktop and coding agents, sandboxes and approvals, and how to make them less slow, less brittle and measurable on AWS.
- Real-Time Voice Agents: Build voice agents that feel natural: choose a cascaded or speech-to-speech pipeline, budget the time to first audio, detect the end of a turn with VAD, handle barge-in, stream every stage, call tools mid-conversation, and connect phone lines on AWS.
- AI Agent Security: Prompt Injection & Tool Abuse: Threat-model an agent: direct and indirect prompt injection, the private data + untrusted content + way out combination, least-privilege tools, approvals, output handling, memory poisoning and MCP supply chain, mapped to the OWASP Top 10 for LLM applications and to AWS controls.
Build Projects
- Project: Serverless Document Q&A on AWS (Pro): Build a real, serverless 'ask our documents' app on AWS: S3, a Bedrock Knowledge Base, API Gateway + Lambda calling RetrieveAndGenerate, Cognito sign-in and a CloudFront site, then cost it, evaluate it and harden it.
- Project: Customer-Support Agent with Bedrock (Pro): Build a production-style support agent on AWS: tools for orders, a refund-policy knowledge base and tickets, clear instructions, guardrails, human handoff, memory, an evaluation set, deployment and monitoring.
- Project: Multi-Agent Research Assistant (Pro): Build a research assistant from a planner, parallel researchers with a search tool, a writer and a critic loop using Strands Agents, deploy it on AgentCore Runtime with Memory and Observability, and keep rounds and cost under control.
GenAI Interviews
- GenAI System Design: Interview Walkthrough: Run a GenAI design interview end to end: clarify, do the token and cost math, draw an AWS architecture with guardrails, routing, caching, RAG and agents, then defend evals, safety and failure handling.
Advanced: Inside the Model
- Long Context: Attention at Scale (Pro): Explain why attention gets expensive as the context grows, how models know word order (sinusoids, then RoPE) and stretch their window, and the tricks that make long context work: sliding windows, attention sinks and FlashAttention.
- Mixture of Experts (MoE) (Pro): Explain how a mixture-of-experts layer routes each token to a few experts, why total and active parameters differ, how load balancing and capacity limits work, and what MoE means for serving.
- Build a Tiny GPT from Scratch (Pro): Build a character-level language model in plain Python: tokenize, count bigrams, generate with greedy and temperature sampling, then see exactly what a transformer block and a training loop add on top.
- Interpretability: Looking Inside the Model (Pro): Know what we can and cannot explain about a model's internals: why attention maps mislead, how probes and the logit lens read the residual stream, how sparse autoencoders find features, and how circuits and ablations test causes.
Advanced: Training at Scale
- Distributed Training: Data, Tensor & Pipeline Parallel (Pro): Do the per-GPU memory maths for training, then choose between data parallel, ZeRO / FSDP sharding, tensor and pipeline parallel, bf16 and gradient checkpointing to make a big model fit and train fast.
- Synthetic Data & Knowledge Distillation (Pro): Train a small student from a big teacher with soft targets and temperature, build a synthetic-data pipeline that filters hard, and avoid model collapse, test leaks and licensing traps.
- Preference Optimization: RLHF, DPO & Variants (Pro): Go beyond the overview: train a reward model, run PPO with a KL leash, derive and compute the DPO loss from preference pairs, place IPO, KTO, ORPO and SimPO, and spot reward hacking and bad preference data.
Advanced: Production at Scale
- Evaluating AI Agents: Outcomes, Trajectories & Reliability (Pro): Measure an agent the way production will: check the final state and the path it took, run every task several times and report pass@k and pass^k, track cost and latency per task, and keep a regression suite with simulated users.
- LLM Routing, Cascades & Caching (Pro): Cut cost and latency without losing quality: route or cascade requests across models, do the cost maths of escalation, tune a semantic cache against false hits and stale answers, and pick between prompt caching, response caching and batching.
- Small & On-Device Models (Pro): Decide when a small model beats a big one, check whether it fits a phone or laptop with the parameters × bits rule, shrink it with distillation and 4-bit quantization, and design a hybrid that runs on the device first and falls back to the cloud.