The AI Path
The goal: stop treating AI models as magic boxes and stop learning Rust as disconnected theory. Learn how inference runs, then build useful products where ownership, async, RAG, multimodal evidence, agents, evals, and operations appear exactly when the product needs them.
Part 1 · The mechanics — AI Systems · First Principles
Section titled “Part 1 · The mechanics — AI Systems · First Principles”- Foundations — what an LLM actually costs in latency, memory, and dollars, and why efficiency is the whole game.
- The transformer, mechanically — attention, prefill vs decode, and why the KV cache exists.
- Inference efficiency — batching, PagedAttention/vLLM, FlashAttention, speculative decoding — the levers that make it cheap.
- Application layer + the Claude-API capstone — prompt caching, routing, RAG, and a real before/after cost dashboard.
Part 2 · The design — System Design · First Principles
Section titled “Part 2 · The design — System Design · First Principles”- Building With LLMs — how LLM-backed features change system design: RAG, vector DBs, the new latency/cost/non-determinism budget, streaming UX, and guardrails.
- The data-intensive frontier — vector search (HNSW/IVF), streaming, and the lakehouse that feed AI features.
Part 3 · The build — Rust · Project-First
Section titled “Part 3 · The build — Rust · Project-First”- Project 4 ·
askr, an AI CLI — build a real AI command-line tool on the Claude API: streaming, a tiny RAG (embeddings + vector search), and production hardening. The mechanics and design, made concrete in code.
Part 4 · The complete build — Rust + AI · Project-First
Section titled “Part 4 · The complete build — Rust + AI · Project-First”- Brandforge — turn website evidence into a typed profile, claim audit, image prompt, and visual ad preview.
- AskDocs — build RAG from files, embeddings, vector search, streaming, citations, and evals.
- Signal Room + Cutroom — align images, audio, logs, and video into inspectable evidence timelines.
- Forge Agent — study the Rust Codex CLI and build typed tools, authorization, bounded loops, replay, memory, and release evals.
- Model Lab + Mosaic — run local models, route and improve them, then ship the durable, secure, observable production platform.