AI System Design - performance
#01 Data Engineering

Build a Chunking and Embedding Pipeline for 100M Documents Premium

A blueprint for a backfill-and-incremental pipeline that chunks, deduplicates, and embeds 100 million documents into 420 million vectors, sustaining 1,000 embeddings per second during backfill and a 15 minute freshness SLA in steady state.

Read
#02 Data Engineering

Build a Citation Tracing System for RAG Responses Premium

Design a citation tracing system that maps every sentence of a RAG answer back to its source chunk across 50M documents, holding 95% attribution accuracy at under 200ms added latency.

Read
#03 Performance

Build a Continuous Batching Server for High-Throughput LLM Inference Premium

Design a continuous batching server that dynamically admits and evicts sequences mid-generation, sustaining 8,000+ tokens per second across 128 concurrent requests on 4xA100 GPUs while keeping p99 time-to-first-token under 200ms.

Read
#04 Data Engineering

Build a Conversational Memory Store for Long-Running RAG Sessions Premium

Design a tiered memory store that keeps 30 million active sessions coherent across 400-turn conversations, packing the right 8,000 tokens of history into every prompt while holding p99 memory retrieval under 40ms.

Read
#05 Performance

Build a Data Loader Pipeline That Prevents GPU Starvation Premium

Build a data loader for 128 H100 GPUs consuming 38,460 images per second: sharded reads, hedged fetches, bounded prefetch queues and async pinned copies lift GPU utilization from 77% to 99% and save $126,600 per 21-day run.

Read
#06 Distributed Systems

Build a Data Parallel vs Model Parallel Training Pipeline Premium

Derive the parallelism layout for a 70B model on 512 H100 GPUs: why TP=8, PP=4, DP=16 fits in 80 GB, holds the pipeline bubble to 4.7 percent and keeps the gradient all-reduce at 8.2 GB per step.

Read
#07 Performance

Build a Disaggregated Prefill-Decode Inference Architecture Premium

Design a disaggregated prefill-decode inference architecture that separates compute-bound prefill from memory-bound decode across dedicated GPU pools, sustaining 12,000 decode tokens per second at sub-150ms TTFT while cutting GPU-hours 35% versus co-located serving.

Read
#08 Data Engineering

Build a Document Freshness and Re-Embedding Pipeline Premium

Design a pipeline that tracks change across 50 million indexed documents and re-embeds 2 million of them per day, keeping p99 index staleness under 15 minutes without a full reindex.

Read
#09 Databases

Build a Geo-Filtered Vector Search System for Location-Aware AI Premium

Design a geo-filtered vector search over 180 million places that serves 22,000 peak queries per second at 120ms p99, holds recall@10 above 0.95 inside hard radii, and picks scan or graph walk per query.

Read
#10 Distributed Systems

Build a Gradient Accumulation and Synchronization Engine for Large Batches Premium

Accumulate 64 microbatches in fp32, hide a 331 ms gradient all-reduce behind a 77 ms backward window, and run a 4.19M token batch with a ramped learning rate on 512 H100 GPUs.

Read