Field guide series

The AI Factory Stack

Seven layers that turn a raw language model into a working AI product — each one solving a specific gap the layer below it leaves open. This hub links out to a deep, engineer-level guide on each layer as it's written.

The framing — LLM, RAG, Vector DB, AI Agent, MCP, Guardrails, Evals as one connected stack — follows the popular breakdown circulating among AI practitioners (including a widely-shared explainer by Brij Kishore Pandey). Read top to bottom for the big picture, or jump straight into whichever layer you're building right now.

01

LLM

The reasoning engine. A model trained to predict the next token from massive text and code — the core intelligence layer everything else in the stack is built around.

Guide available
02

RAG

Retrieval-Augmented Generation. Grounds the LLM in your own, current data by retrieving relevant documents at query time instead of relying only on what's frozen into the model's weights.

Guide available
03

Vector DB

The retrieval engine's memory. Stores content as embeddings and finds semantically similar matches fast — what makes RAG's retrieval step actually work at scale.

Guide available
04

AI Agent

The orchestration layer. A system that runs an LLM in a loop to plan, call tools, and take multi-step action toward a goal, rather than answering once and stopping.

Guide available
05

MCP

Model Context Protocol. A standard interface for connecting agents to tools, data sources, and other systems consistently, instead of every integration being bespoke.

Guide available
06

Guardrails

The safety and control layer. Input/output filtering, policy enforcement, and structured-output validation that keep the system's behavior inside acceptable bounds.

Guide available
07

Evals

The measurement layer. How you know whether any of the above is actually working, and whether a change made the system better or worse.

Guide available
How this series is built: each guide is researched and written on its own, in the same format — concept-level, engineer-facing, with a Sources page citing exactly what it draws on. New layers get added here as they're finished, so this hub is worth bookmarking rather than any single guide's URL.