Visuals
Visual walkthroughs
20 ideas you can step through one stage at a time. Most are diagrams you advance with Previous and Next; a few let you type and watch the answer change. Each one links back to the chapter that teaches it.
RAG Pipeline
Docs → chunks → vectors → retrieve → generate with citations.
4 stepsWhat is RAG?Tokenization
Text → token IDs. Costs and limits are in tokens.
4 steps · interactiveTokenizationSelf-Attention
Every token looks at every other token to decide meaning.
3 stepsThe Transformer, SimplifiedTool Calling Loop
LLM decides to act, calls JSON tool, observes result.
3 stepsTool CallingReAct Agent Loop
Thought → Action → Observation, until done or human needed.
3 stepsWhat are AI Agents?Embeddings Space
Similar meaning = close vectors. Search becomes math.
3 stepsWhat are Embeddings?Chunking Strategies
How you split docs decides what RAG can find.
3 stepsChunking StrategiesHybrid Retrieval
Keywords (BM25) + vectors, then merge.
3 stepsChunking StrategiesReranking
Cheap recall first, precise cross-encoder second.
3 stepsBuilding a Production RAG PipelineCitations & Grounding
Every claim points at a chunk id.
3 stepsBuilding a Production RAG PipelineKV-Cache
Why streaming the 2nd token is fast.
3 stepsWhat are LLMs?Two Pointers (visual)
Sorted array? Converge from both ends.
3 stepsTwo PointersSliding Window (visual)
Expand right, shrink left past trouble.
3 stepsSliding WindowBinary Search (visual)
Halve the suspects every step.
3 stepsBinary SearchHashing (Two Sum)
Remember complements as you go.
3 stepsHash TablesLoad Balancing
Spread traffic, kill the SPOF.
3 stepsLoad BalancingCache-Aside
App checks cache, else DB then fill.
3 stepsCaching BasicsCAP in 3 slides
Partition? Pick consistency or availability.
3 stepsConsistency & CAPDiffusion Denoising
Images from noise, step by step.
3 stepsVision ModelsMCP Protocol
USB-C for AI tools.
3 stepsWhat is MCP?