AI Engineering
A builder-first path from your first model call to production AI systems. You will understand what happens inside an LLM, engineer prompts that hold up, measure quality with real evals, ground models in your data with RAG, design agents that use tools safely, fine-tune when it pays off, and run everything fast, cheap and secure. Four guided builds turn each stage into portfolio work, and every lesson comes with diagrams, runnable code, interactive widgets and a check-your-understanding quiz.
What you'll learn
- Explain, at the mechanism level, how tokens, embeddings, attention and decoding produce an answer
- Design prompts and structured outputs that stay reliable under real traffic
- Measure quality with golden datasets, LLM-as-a-judge and regression checks in CI
- Build retrieval pipelines with smart chunking, hybrid search and reranking, and prove they work
- Ship tool-using agents and know when a simple workflow is the better choice
- Decide when to fine-tune, and run LoRA/QLoRA and preference tuning end to end
- Cut latency and cost with caching, batching and quantization
- Defend against prompt injection, data leakage and abuse, and design complete AI systems under constraints
Prerequisites: Basic Python and comfort with the command line. School-level math (vectors, probability) helps; everything else is taught from scratch.
Curriculum
1. Start Here
What AI engineering is and how to get the most out of this course
2. Builder's Toolkit: Python, APIs & Setup
The practical toolkit: Python, environments, your first API call, JSON and dev tools
- The Python You Actually Need (4 min)
- Environments, Dependencies & API Keys (4 min)
- Your First Model Call, End to End (4 min)
- Working with JSON and Errors (4 min)
- Git, Notebooks & the Command Line (4 min)
3. How LLMs Really Work
What LLMs are, how they're built and trained, and how they generate text
- LLMs from First Principles (4 min)
- Tokens: How Models Read Text (10 min)
- Embeddings: Meaning as Vectors (5 min)
- From Pre-training to Instruction Tuning (5 min)
- Decoding: Temperature, Top-p and Friends (6 min)
- Context, Cost & Latency Budgets (6 min)
- Failure Modes & Picking a Model (4 min)
- How Transformers Work (6 min)
- Attention, in Plain Words (6 min)
4. Prompting as Engineering
Getting reliable behavior from a model without changing its weights
- The Anatomy of a Strong Prompt (5 min)
- Roles: System, User & Assistant (4 min)
- Teaching by Example: Few-shot Prompting (4 min)
- Reliable Structured Output (5 min)
- Reasoning: Chain-of-Thought and Beyond (5 min)
- Advanced Prompt Patterns (4 min)
- Debugging Prompts Systematically (4 min)
5. Measuring Quality with Evals
Knowing whether your system actually works — and catching regressions
- Why Evals Are the Job (4 min)
- A Map of Evaluation Methods (4 min)
- Building a Golden Dataset (4 min)
- Metrics and Scoring (7 min)
- LLM-as-a-Judge, Done Right (4 min)
- Evals in CI: Catching Regressions (4 min)
6. Build: A Prompt Lab with an Eval Harness
Build a prompt playground with a built-in evaluation harness
- Prompt Lab: Design (4 min)
- Prompt Lab: Build and Evaluate (4 min)
7. Retrieval & RAG
Grounding models in your own data
- Embedding Models in Depth (6 min)
- Similarity Search Explained (5 min)
- Chunking Strategies (7 min)
- Vector Indexes: HNSW, IVF and Friends (5 min)
- RAG, End to End (5 min)
- Reranking & Context Assembly (4 min)
- Production RAG Patterns (4 min)
- Measuring RAG Quality (4 min)
- Better Retrieval: Hybrid Search and Query Rewriting (7 min)
8. Shipping & Operating LLM Apps
Shipping LLM apps and keeping them healthy
- Deploying an LLM Service (4 min)
- Tracing Every Request (4 min)
- Watching Cost & Latency (5 min)
- Retries, Timeouts & Fallbacks (6 min)
- Observability Essentials (4 min)
9. Build: A Cited Docs Copilot
A production-grade, cited Q&A assistant over real documentation
- Docs Copilot: Design (4 min)
- Docs Copilot: Build and Serve (5 min)
10. Agents & Tool Use
Models that plan, call tools and act
- Agents: Loops, Not Magic (7 min)
- Function Calling in Practice (4 min)
- Planning & Reasoning Loops (5 min)
- Giving Agents Memory (4 min)
- Workflows vs Agents: Architectures (4 min)
- Multi-Agent Systems & Their Limits (4 min)
- Tool Integration with MCP (4 min)
11. Build: A Research Agent
A tool-using agent with search, browsing and a code sandbox
- Research Agent: Design (4 min)
- Research Agent: Build and Evaluate (4 min)
12. Fine-tuning & Training Data
Changing model behavior through data and training
- Should You Fine-tune? (5 min)
- Curating Training Data (4 min)
- Formatting & Quality Checks (4 min)
- Full, LoRA & QLoRA Fine-tuning (7 min)
- Preference Tuning: RLHF & DPO (4 min)
- Training Runs & Evaluation (4 min)
13. Inference, Cost & LLMOps
Fast, cheap and operable model serving
- What Makes Inference Fast (9 min)
- Batching & Caching (4 min)
- Quantization & Serving Stacks (5 min)
- Scaling Without Burning Money (4 min)
- LLMOps, Put Together (4 min)
14. Safety, Security & Governance
Safe, private, compliant AI systems
- Responsible AI in Practice (4 min)
- Prompt Injection & Jailbreaks (5 min)
- Privacy & Data Leakage (4 min)
- Access Control & Abuse Prevention (4 min)
- Governance for Enterprise AI (4 min)
15. Designing AI Systems
Designing end-to-end AI products under real constraints
- A Framework for AI System Design (4 min)
- Serving Many Users (4 min)
- The Cost–Latency–Quality Triangle (4 min)
- Picking Your Components (4 min)
- Capacity & Cost Planning (5 min)
- Worked Design Walkthrough (4 min)
16. Vision, Documents & Speech
Vision, documents and speech
- Vision Models in Practice (4 min)
- Document AI: PDFs, Scans & Forms (4 min)
- Grounded Visual Q&A (4 min)
- Speech & Audio Pipelines (4 min)
17. Build: Ship a Specialist Model
Fine-tune, evaluate and ship a small specialist model
- Specialist Model: Design (4 min)
- Specialist Model: Build (4 min)
- Specialist Model: Evaluate and Ship (4 min)
18. Landing the Role
Turn what you built into interview performance
- What Interviewers Look For (4 min)
- Coding Katas (4 min)
- Owning the System Design Round (4 min)
- Telling Your Project Story (4 min)
- Final Exam (25 min)