B.17 Production AI
Connect training and inference to applications with measurable quality, latency, and cost.
Concepts from other sections (1)
This section uses these ideas. Each has a short definition and a link to the section that explains it in full. Tap a dotted term in the text to preview it.
- Retrieval-augmented generation (RAG): retrieving relevant evidence at query time and placing it in the context window, so a model answers from fresh, private, citable facts instead of only its parametric memory. Read more: Chapter 27: Retrieval and RAG
Reading route
Section titled “Reading route”- Training and Frameworks
- RPC and Protocols
- Streaming and SSE
- Distributed Data and Caching
- Durable Orchestration and Workers
- Retrieval and RAG
- Authorization and Access Control
- LLM Evaluation
- Model Routing and Cascades
- The AI Gateway
- Agent SDK
Backend readers can begin with communication and execution. ML readers can begin with training frameworks. For RAG, pair retrieval with caching, authorization, and evaluation. To reduce inference cost, freeze an evaluation harness before changing routing or models. Generic systems mechanisms live in Systems Engineering, and access control lives in Software Engineering.