Building with AI (Stage 2)
Hands-on architecture for building AI systems.
less than a minute
Where Foundations explains the pieces and Deep Dives go deeper, Stage 2 is about assembling them into real systems — with diagrams for the architecture.
Roadmap
flowchart LR
A[AI system design] --> S[Scaling to production] --> V[Serving models] --> B[Building a RAG system]
B --> C[Agentic RAG] --> D[The agent harness] --> E[Loop engineering]
E --> F[From prompts to graphs] --> G[AI code structure] --> H[Tooling and frameworks]In this section
- AI system design — the standard shape of an AI app.
- Scaling to production — gateway, caching, serving, queues, reliability, cost at scale.
- Serving models — the inference layer: self-hosting, quantization, engines, queuing, routing.
- Building a RAG system — end-to-end reference architecture.
- Agentic RAG — retrieval driven by an agent, not a fixed pipeline.
- The agent harness — the loop, context, tools, memory, guardrails.
- Loop engineering — designing the loops themselves: closed loops, validators, orchestration.
- From prompts to graphs — the five engineering disciplines as one evolution.
- AI code structure — how to organize an AI app codebase.
- Tooling & frameworks — SDKs, frameworks, MCP, deployment.
Prerequisites
Work through Stage 0 — Foundations and Stage 1 — Deep Dives first — Stage 2 builds directly on both.