HNSW: The Algorithm Quietly Deciding What Your LLM Sees as 'Truth'
A practical deep dive into how HNSW powers vector retrieval for RAG systems, why it dominates ANN search, and how poor recall can silently degrade LLM answers.
Deep dives into distributed systems, database internals, LLMs, and things I build. I write when I feel like I've understood something well enough to explain it.
A practical deep dive into how HNSW powers vector retrieval for RAG systems, why it dominates ANN search, and how poor recall can silently degrade LLM answers.
A deep, implementation-level breakdown of how I built SRE Agent Swarm: six cooperating agents, incident FSM orchestration, safety gates, runbook execution, human approvals, and chaos-driven MTTD/MTTR scoring.
How I built a real-time collaborative document editor using Conflict-free Replicated Data Types — implementing the RGA algorithm, tombstone deletion, and out-of-order operation handling with zero external CRDT libraries.
A deep dive into building a 32-bit x86 operating system from scratch. Features a custom bootloader sequence, memory management, interactive shell, and more.
A Java-based simulation of a Linux file system, implementing core concepts like inodes, directories, and bitmap-based block allocation to understand how data is organized on disk.
How I built a SQL-compliant transactional database engine in Go with LSM Tree storage, Write-Ahead Logging, and MVCC — achieving 3× faster writes than B-Tree implementations.
Raft is beautiful once you visualize it. I built Rafty — a real-time 5-node Raft cluster simulator with deterministic fault injection — to deeply understand leader election, log replication, and network partitions.
Written in Markdown · Rendered with remark + rehype-pretty-code · Deployed on Vercel