SysDesignAtlas

Applied AI Systems

Retrieval, agents, evaluation, guardrails, and ranking — the layer between a model and a product.

HLDHard12 min

Vector Search & ANN Indexes

HNSW, IVF, and product quantization — how approximate nearest neighbour search trades a little recall for a thousand-fold speedup, and the filtering problem nobody mentions.

HLDHard11 min

Vector Databases at Scale

Sharding an ANN index, replication when the index is derived state, incremental updates, and why "just add a vector column" is often the right answer.

HLDHard11 min

Retrieval Architecture (RAG)

Chunking, hybrid search, reranking, and evaluation — the pipeline between a question and a grounded answer, and why retrieval quality caps everything downstream.

HLDMedium9 min

Context Engineering & Memory

Assembling the prompt as a resource-allocation problem — cache-aware ordering, history compaction, and the memory architectures that let a system remember across sessions.

HLDHard11 min

Agent Architectures

The tool-calling loop, why unbounded autonomy fails, and how to build agents as state machines with checkpoints rather than hopeful while-loops.

HLDHard10 min

Agent Infrastructure

Durable execution, sandboxing, concurrency, and cost ceilings — the platform an agent needs to survive a process restart, a hostile input, and a runaway loop.

HLDMedium10 min

Structured Output & Tool Contracts

Getting reliable machine-readable output from a probabilistic system — schema design, constrained decoding, validation and repair, and idempotent tool execution.

HLDHard11 min

Evaluation Systems

Golden sets, LLM-as-judge, statistical power, and CI gates — building the measurement infrastructure without which every AI change is a guess.

HLDHard11 min

Guardrails, Safety & Abuse

Prompt injection as a confused-deputy problem, output filtering, PII handling, and cost abuse — defence in depth for a component that cannot distinguish instructions from data.

HLDMedium11 min

The ML Platform

Feature stores, training/serving skew, batch versus online inference, and drift monitoring — the classical ML infrastructure that still runs most production predictions.

HLDHard11 min

Ranking & Recommendation Systems

Candidate generation, ranking, and re-ranking — the funnel that picks 10 items out of 100 million in under 100 milliseconds, and why each stage uses a different model.

HLDHard11 min

Real-Time & Voice AI

Speech pipelines, latency budgets measured against human conversational expectations, and interruption handling — where a 300 ms delay is the difference between natural and broken.

HLDHard14 min

Agent Protocols — MCP & A2A

The two open standards agents use to reach the outside world — MCP for connecting a model to tools and data, A2A for one agent handing work to another — and the security and reliability problems that come with plugging strangers' code into your context window.

HLDMedium14 min

LLM Gateways & Semantic Caching

The layer between your applications and the model providers — one API, token budgets, routing and fallback, cost attribution — and the three kinds of caching it can do, including the semantic cache that saves money until it confidently answers the wrong question.