Module 10
AdvancedBuilding AI Applications
Build real AI products: robust LLM API usage with structured outputs, tool calling and caching; modern RAG; agents and MCP; context engineering and memory; rigorous evaluation; and guardrails for agents with tools.
What you'll be able to do
- โCall LLM APIs robustly with streaming, strict structured outputs, tool calling, retries, rate-limit handling, and prompt caching
- โBuild a RAG pipeline with smart chunking, contextual retrieval, hybrid search, reranking, and query rewriting, and know when long context replaces it
- โDesign agent loops with well-scoped tools, planning, MCP integrations, budgets, and human-in-the-loop approval
- โManage the context window with compaction, tool-result clearing, sub-agents, and long-term memory, and estimate the cost of each choice
- โEvaluate LLM systems with versioned datasets, validated LLM judges, paired statistics, tracing, and offline plus online evals
- โDefend agents against prompt injection with least privilege and policy enforced in code, protect PII, and operate with observability and fallbacks
Lessons
- 1
Working with LLM APIs
Call language models like a professional: messages and system prompts, streaming, structured outputs with JSON Schema, tool calling, retries, rate limits, and prompt caching.
36 minโก 120Free preview - ๐
Retrieval-Augmented Generation
Ground LLM answers in your own documents: chunking, embeddings, hybrid search, reranking, query rewriting, contextual retrieval, GraphRAG, and when long context replaces RAG.
38 minโก 140Pro - ๐
Agents and Tool Use
Give LLMs the ability to act: the agent loop, workflows versus agents, planning, memory, the Model Context Protocol, multi-agent patterns, failure modes, and human-in-the-loop control.
34 minโก 140Pro - ๐
Context Engineering and Memory
Manage the context window as a scarce budget: what to include, compaction and summarization, tool-result clearing, retrieval versus memory, sub-agent isolation, and the cost implications of every choice.
32 minโก 135Pro - ๐
Evaluating LLM Systems
Measure whether your LLM application actually works: eval datasets, code-based graders, LLM-as-judge and its pitfalls, RAG and agent metrics, statistics for comparing versions, tracing, and offline versus online evaluation.
32 minโก 135Pro - ๐
Production Guardrails
Ship LLM apps safely: threat-model prompt injection (especially for agents with tools), apply defense in depth, protect PII, validate outputs, and build observability and graceful degradation.
32 minโก 135Pro