AI System Design - databases
#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 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
#04 Databases

Build a Cross-Modal Embedding Store for Text, Image, and Video Premium

Design a cross-modal embedding store over 2.03 billion vectors spanning 400M text chunks, 1.2B images, and 1.8M videos, serving 2,500 queries per second at 112ms p99 with cross-modal nDCG@10 of 0.635.

Read
#05 Databases

Build a Distributed Approximate Nearest Neighbor Search Engine Premium

Design a sharded ANN engine that answers 9,400 QPS over 12.4 billion vectors across 48 shards and 144 replica nodes, holding p99 under 90ms by narrowing the fan-out, hedging the tail, and re-scoring the merge exactly.

Read
#06 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
#07 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
#08 Databases

Build a Hybrid Keyword + Vector Search Engine with RRF Fusion Premium

Design a hybrid search engine over 180 million documents that fuses BM25 and HNSW retrieval with weighted reciprocal rank fusion, serving 4,000 queries per second at 45ms p99 and nDCG@10 of 0.742.

Read
#09 Databases

Build a Knowledge Graph-Augmented RAG System Premium

A blueprint for augmenting RAG with a property graph of 5 million entities and 40 million relationships extracted from 2 million documents, fusing graph traversal with vector search to answer multi-hop questions at 200 requests/second under a 400ms p99 retrieval budget.

Read
#10 Data Engineering

Build a Multi-Hop RAG System for Complex Question Answering Premium

A blueprint for a multi-hop RAG system that decomposes complex questions into a dependency-ordered sub-question DAG, retrieves and re-ranks evidence per hop, and synthesizes a cited answer across 3 million documents at 150 requests per second under a 3.5 second p99 budget.

Read