Six stages
Topics
The guide follows a request from the moment it leaves your application to the moment its answer is graded. Pick the stage you are working on.
- 01
Gateways & Routing
The layer between your application and model providers. Routing, failover, rate limits, and API keys.
14 articles
- 02
Context & Caching
What goes into the context window, what it costs, and how to stop paying for the same tokens twice.
11 articles
- 03
Agents & MCP
Tool calls, the Model Context Protocol, and the plumbing that lets a model act on other systems.
13 articles
- 04
Guardrails & Security
Prompt injection, data leakage, and the checks that run before and after a model call.
10 articles
- 05
Observability
Traces, token counts, and latency. What to record on every request so you can explain a bad answer.
8 articles
- 06
Evaluation
How to measure whether an LLM system is right, before release and on live traffic.
5 articles
How the stages fit together
Every request crosses the same six stages. The gateway takes the call from your application, picks a provider and a model, and retries or falls back when one fails. Context decides which tokens go into the call, and caching decides which of them you pay for again. When the model asks for a tool, the agent loop runs it and calls the model again with the result.
Guardrails check the request on its way in and the answer on its way out. Observability records a span at every boundary, so a bad answer can be traced to the step that caused it. Evaluation scores the answer after it is sent: on a fixed dataset before a release, and on live traffic after it.