Writing

Blog

Notes on AI, engineering, and building useful things.

Nov 30, 2026

RAG Systems: Are We Overengineering Vector Search?

Key takeaways from Jimmy Lin’s paper comparing flat search, HNSW, sparse vs. dense retrieval, and quantization in RAG systems: showing why flat dense search often beats HNSW on corpora under 1M docs, why hybrid retrieval improves robustness, and how drops in retrieval recall can directly could increase LLM hallucinations.

Nov 30, 2026

Cosine Similarity Is Not That Scary: An Intuitive Explanation

An intuitive, jargon-free breakdown of cosine similarity: why it measures the angle (direction) between vectors rather than their length, how the dot product and vector magnitudes work together, and why it matters for embeddings, semantic search, recommendations, and RAG systems.