AI Engineering roadmap
Connect model behaviour to useful applications, from the foundations to practical engineering decisions.
7 parts · 15 modules · 168 lessons
Foundations
Module 01: AI engineering fundamentals
13 lessons- Introduction to AI engineering
- The AI application stack: from model to product
- Calling a model API: request, response and cost
- Tokens: how models read text and charge for it
- Choosing a model: capability, cost and speed
- Hosted and open-weight models: the tradeoffs
- Sampling and temperature: controlling randomness
- Context windows: what fits and what gets lost
- Streaming responses: showing output as it arrives
- Model API errors, rate limits and retries
- Estimating the cost and latency of a feature
- Design: a ticket summary feature
- Lab: a command-line chat with streaming
Module 02: How LLMs work: what builders need to know
12 lessons- Next-token prediction: how an LLM writes text
- Embeddings: turning words into numbers with meaning
- Attention: how the model decides what to focus on
- Transformers: the architecture in one picture
- Training stages: pretraining, tuning and feedback
- KV cache and prompt caching: reusing earlier work
- Quantization: running models in less memory
- Mixture of experts: large models that run fast
- Reasoning effort: paying for extra thinking
- Hallucinations: why models state false things
- Under the hood: queries, keys and values
- Under the hood: how decoding picks each token
Module 03: Prompting and structured outputs
12 lessons- Prompt anatomy: instructions, context, examples, format
- System prompts: setting the role and the rules
- Few-shot prompting: teaching by example
- Step-by-step prompting: asking for the reasoning
- Structured outputs: getting reliable JSON
- Validating model output with Pydantic
- Prompt templates and version control
- Long inputs: splitting work across many calls
- Multimodal inputs: images, PDFs and audio
- Prompt pitfalls: ambiguity, drift and leakage
- Design: an invoice data extractor
- Lab: turning messy emails into clean records
Retrieval and knowledge
Module 04: Embeddings and vector search
10 lessons- Semantic search: finding by meaning, not keywords
- Embedding models: choosing and comparing them
- Similarity measures: cosine, dot product, distance
- Vector databases: what they add to search
- pgvector: vector search inside PostgreSQL
- Approximate nearest neighbours: speed vs recall
- Vector indexes: HNSW, IVF and quantization
- Filtering vector search by metadata
- Choosing a vector store for your workload
- Lab: semantic search over 10,000 documents
Module 05: RAG: answering from your own data
16 lessons- RAG: grounding answers in your own documents
- Long context or RAG: when to send the whole document
- Document ingestion: parsing PDFs, pages and tables
- Chunking: splitting documents for retrieval
- Contextual retrieval: giving each chunk its context
- Hybrid search: combining keywords and vectors
- Reranking: putting the best passages first
- Query rewriting: improving what gets searched
- Citations: showing where each answer came from
- Keeping a RAG index fresh: updates and deletes
- Access control in RAG: who may see what
- Debugging RAG: the common failure modes
- Text-to-SQL: answering questions from databases
- Advanced retrieval: multi-step, graph and agentic
- Case: Intercom’s custom reranker for support RAG
- Design: a support assistant over company docs
Tools and agents
Module 06: Tool use and the Model Context Protocol
10 lessons- Function calling: letting models use tools
- Designing tools a model can use well
- Handling tool results and tool errors
- Parallel and sequential tool calls
- Model Context Protocol: one standard for tools
- Building an MCP server in Python
- Code execution: running model-written code safely
- Computer use: models operating browsers and apps
- Design: a meeting booking assistant
- Lab: give a model a weather and maps tool
Module 07: Agents: models that plan and act
15 lessons- Agents: models that act until a goal is met
- Workflows vs agents: when you need autonomy
- ReAct: reasoning, acting and observing in turns
- Planning: breaking a goal into steps
- Agent memory: short-term context, long-term stores
- Context engineering: choosing what the model sees
- Multi-agent systems: orchestrators and subagents
- Agent2Agent protocol: agents calling other agents
- Human in the loop: approvals and handoffs
- Agent reliability: loops, limits and budgets
- Agent frameworks: when to use one
- Lab: an agent loop from scratch in Python
- Lab: rebuilding your agent with LangGraph
- Case: Swiggy’s text-to-SQL analyst agent
- Design: a research agent that writes reports
Quality and safety
Module 08: Evaluating AI applications
15 lessons- Evals: testing systems that never answer the same way
- Building an eval set from real examples
- Code-based checks: exact match, rules and schemas
- Testing code that calls a model: fakes and recordings
- LLM-as-judge: grading outputs with a model
- Judge calibration: checking LLM judges against people
- Human review and labeling
- Evaluating RAG: retrieval and answer quality
- Evaluating agents: task success and trajectories
- Simulated users: testing agents before launch
- Regression testing for prompts and models
- Online evaluation: A/B tests and user feedback
- Error analysis: finding what to fix first
- Case: how Shopify evaluates its merchant agent
- Lab: an eval harness for a support assistant
Module 09: Guardrails and security
12 lessons- Risks in LLM applications: an overview
- Prompt injection: when input becomes instructions
- Indirect prompt injection through documents and tools
- Data leakage: protecting secrets and personal data
- Input and output guardrails
- Refusals and fallbacks: when the model declines
- Content moderation: filtering harmful output
- Least privilege for agents and tools
- MCP security: servers, tokens and tool poisoning
- Red-teaming an AI application
- AI regulation: EU AI Act, DPDP and content labels
- Design: a safe customer-facing assistant
Production
Module 10: Cost, latency and scaling
11 lessons- Where the time goes in an LLM request
- Caching for LLM apps: exact, semantic and prompt
- Token economics: caching, batch and effort together
- Model routing: small models first, large when needed
- Batch and background processing for LLM jobs
- Provider rate limits, queues and fallbacks
- Cost control: budgets, quotas and alerts
- Charging for AI features: metering and quotas per customer
- Self-hosting open models: when and how
- Case: Instacart’s batch platform for LLM jobs
- Design: scaling a chat assistant to a million users
Module 11: Observability and operations
9 lessons- Deploying an AI service: containers and the cloud
- Tracing LLM calls: seeing every step
- Monitoring quality in production
- Prompt and model versioning in production
- AI user experience: waiting, uncertainty and corrections
- User feedback loops: learning from real usage
- Model upgrades: switching without regressions
- Incident response for AI features
- Lab: adding tracing to an agent
Customization and multimodal
Module 12: Fine-tuning and model customization
9 lessons- Prompting, RAG or fine-tuning: choosing the right fix
- Fine-tuning basics: what changes in the model
- Preparing data for fine-tuning
- LoRA: fine-tuning with small add-on weights
- Distillation: training a small model from a large one
- Preference tuning: RLHF and DPO in plain terms
- Synthetic data: generating training examples
- Evaluating a fine-tuned model
- Lab: fine-tuning a small open model with LoRA
Module 13: Multimodal and voice applications
7 lessons- Vision models: understanding images and screenshots
- Document AI: extracting data from scans and forms
- Speech to text and text to speech
- Voice agents: real-time spoken conversation
- Multimodal embeddings: searching images and text
- Lab: a voice agent with a latency budget
- Design: a voice ordering assistant
Design practice and interviews
Module 14: End-to-end AI system design
8 lessons- Design: a shopping assistant like Amazon’s
- Design: a meeting notes summarizer
- Design: a writing assistant like Notion AI
- Design: an AI search engine like Perplexity
- Design: a coding assistant like GitHub Copilot
- Design: an enterprise document Q&A product like Glean
- Design: an AI customer support platform
- Design: a data analysis agent
Module 15: AI engineering interviews
9 lessons- AI engineering interviews: what companies test
- Explaining LLM concepts clearly in interviews
- AI system design interviews: a framework
- Live coding with model APIs
- Take-home tasks: shipping an AI feature to review
- Discussing evals and tradeoffs under pressure
- Common mistakes in AI engineering interviews
- Mock interview: a RAG assistant
- Mock interview: an agent for internal tools