VidyalAI: Knowledge Amplified. An open book releasing glowing icons for AI, science and skills, beside a digital human profile. People + ideas + AI = a brighter tomorrow.

New series · LLM System Design

Build LLM systems that hold up in production

25 in-depth articles on retrieval, evaluation, agents, serving, security and operations. Each one gives you the design, the numbers that size it, the ways it fails, and the sources to check.

Three articles that cover the ground most LLM products stand on.

All articles

Explore by topic

Seven areas you need to get right before an LLM feature is ready for real traffic.

The full reading order

Twenty-five deep dives on building production LLM systems, from retrieval and evaluation to serving, security and operations.

  1. 01Designing a RAG System for 10 Million DocumentsRetrieval & RAG
  2. 02Debugging a RAG System That Gives Wrong AnswersRetrieval & RAG
  3. 03Chunking Legal Contracts for RetrievalRetrieval & RAG
  4. 04BM25 vs Dense vs Hybrid Search: When to Use EachRetrieval & RAG
  5. 05Adding a Reranker and Proving It HelpedRetrieval & RAG
  6. 06Cutting LLM Cost by 70% Without Losing QualityCost, Latency & Serving
  7. 07Reducing Time to First Token in a Chat AppCost, Latency & Serving
  8. 08Designing a Semantic Cache with Hit-Rate TrackingCost, Latency & Serving
  9. 09Routing Requests Between a Cheap and a Strong ModelCost, Latency & Serving
  10. 10Building Tool-Using Agents That Work ReliablyAgents & Tool Use
  11. 11Detecting and Recovering from Agent LoopsAgents & Tool Use
  12. 12Designing Long-Term Memory for an LLM AssistantAgents & Tool Use
  13. 13Guaranteeing Valid JSON Output from LLMsAgents & Tool Use
  14. 14Detecting and Reducing LLM HallucinationsEvaluation & Reliability
  15. 15Building an Eval Suite for a Customer Support BotEvaluation & Reliability
  16. 16Making LLM-as-a-Judge Trustworthy: Calibration, Bias and DriftEvaluation & Reliability
  17. 17Defending Tool-Using Agents Against Prompt Injection by DesignSecurity & Privacy
  18. 18Building a PII Redaction Gateway in Front of Your LLMSecurity & Privacy
  19. 19Fine-Tuning vs RAG vs Prompting: An Eval-First Decision ProcedureFine-tuning & Adaptation
  20. 20Fine-Tuning a Small Model with LoRA on 5,000 ExamplesFine-tuning & Adaptation
  21. 21Serving Open-Weight LLMs at Scale: Batching, KV Cache, QuantizationCost, Latency & Serving
  22. 22Streaming LLM Responses over SSE and Surviving DisconnectsProduction Engineering
  23. 23Tracing Every Step of a Multi-Agent WorkflowProduction Engineering
  24. 24Rolling Back a Bad Prompt Change in ProductionProduction Engineering
  25. 25Designing a ChatGPT-Style Chat Service for 1M Daily UsersProduction Engineering