Writing

Things I'm trying
to understand.

Notes on software, history, economics, and the things that make the world a little easier to make sense of.

RAG Explained Simply: How to Make an AI Read Your Documents Before It Answers

A beginner-friendly, picture-first guide to Retrieval Augmented Generation. Why LLMs need it, how it differs from fine-tuning, and how indexing, retrieval, augmentation and generation fit together.

How I Built a Production-Ready Feed Cache with Redis Cache-Aside, Jitter, and Distributed Locks Explained

The story of how I built the feed for my Threads clone, what went wrong at each step, and how I ended up with a production grade caching strategy using Redis covering cache-aside, TTL jitter, and distributed locks.