Building with AI (Stage 2)

Hands-on architecture for building AI systems.

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

  1. AI system design — the standard shape of an AI app.
  2. Scaling to production — gateway, caching, serving, queues, reliability, cost at scale.
  3. Serving models — the inference layer: self-hosting, quantization, engines, queuing, routing.
  4. Building a RAG system — end-to-end reference architecture.
  5. Agentic RAG — retrieval driven by an agent, not a fixed pipeline.
  6. The agent harness — the loop, context, tools, memory, guardrails.
  7. Loop engineering — designing the loops themselves: closed loops, validators, orchestration.
  8. From prompts to graphs — the five engineering disciplines as one evolution.
  9. AI code structure — how to organize an AI app codebase.
  10. Tooling & frameworks — SDKs, frameworks, MCP, deployment.

Prerequisites

Work through Stage 0 — Foundations and Stage 1 — Deep Dives first — Stage 2 builds directly on both.