amitshekhariitbhu/ai-system-design
AI System Design - Learn how to design AI systems built on LLMs, RAG, and AI Agents step by step.
What it is
AI System Design is a free, open-source guide that teaches how to build complete systems around large language models (LLMs) — not just call an API, but design the infrastructure that makes an AI product fast, cheap, reliable, and safe. It covers everything from GPU hardware and inference servers to RAG, AI agents, voice AI, safety guardrails, cost optimization, and interview prep.
Who it's for
The README lists these target roles: AI Engineer, Gen AI Engineer, LLM Engineer, Agentic AI Engineer, AI Agent Engineer, Forward Deployed Engineer, AI Solutions Architect, AI Platform Engineer, Applied AI Engineer, Machine Learning Engineer, MLOps Engineer, LLMOps Engineer, and Backend Engineer building AI products. It also explicitly welcomes software engineers, backend/mobile/frontend developers, ML engineers, data scientists, engineering managers, tech leads, architects, students, and anyone preparing for AI System Design interviews.
What it covers
The guide is organized as a step-by-step learning path with ~40 major topics, including:
- Foundations — tokens, inference servers, GPU/TPU/LPU hardware
- LLM inference internals — prefill vs. decode, latency metrics, batching
- Scaling & serving — parallelism, auto-scaling, load balancing, caching, rate limiting, AI gateways
- Retrieval — vector databases, RAG, hybrid search, reranking, GraphRAG
- Agents — AI agents, tool calling, MCP (Model Context Protocol), multi-agent systems, agent memory
- Multimodal & voice — voice AI agents, realtime APIs, edge AI
- Safety & quality — guardrails, prompt injection defense, observability, evaluation pipelines
- Operations — cost optimization, fine-tuning infrastructure, fault tolerance, prompt management
- Interview prep — a step-by-step framework for solving AI System Design problems, real-world case studies (Claude Code, Cursor, a voice AI agent), and sample interview questions
Each section is written for beginners (no jargon, every term explained), includes practical numbers and trade-offs, and links to a deeper blog post where the topic deserves more depth.
How it's structured
The README includes a visual learning-path flowchart showing the recommended order: Foundations → LLM Inference → Scaling → Caching/Routing → Embeddings/Vector DBs/RAG → Context Management → Streaming/Queues/Gateway → Agents/Tools/MCP/Memory → Multi-Agent Systems → Multimodal/Voice → Guardrails/Safety/Privacy → Observability/Evaluation → Cost/Fine-Tuning/Optimization → Problem-Solving Framework.
Usage guidance from the README:
- New readers: go top to bottom; each section builds on the previous
- Interview prep: read the problem-solving framework first, then the building blocks
- Deep dives: open the linked blogs
- After each section, try explaining it to a friend to confirm understanding
Core definition
The guide's central definition: AI System Design = System Design + the new constraints of AI models. Those constraints are GPUs, tokens, long streamed responses, non-deterministic output, and a real cost on every request. The motivating example: calling an LLM API takes ten lines of code, but serving 100,000 users with sub-second responses, grounded answers, no data leaks, and a fixed budget is what AI System Design is about.
Author & maintenance
Created and maintained by Amit Shekhar, founder of Outcome School (an education platform). He also maintains a companion open-source project, the AI Engineering Course, which covers the ML/LLM side (machine learning, deep learning, transformers, fine-tuning, RAG, agents) — the AI System Design guide focuses specifically on the system-design side.
The README notes the field is moving fast, so the guide will keep growing as new blog posts are added.
Format
A single long-form GitHub README with a detailed table of contents, a Mermaid flowchart, and links to external blog posts for each deep-dive topic. No code samples or interactive elements are mentioned in the README.
Related
- Project
- Project
- Project
- Project
- Project