Skip to content
Sesha's Blog

Posts

All the articles I've posted.

  • What an Agent Looks Like to a GPU

    The GPU has never heard of your agent. It sees separate requests that grow every turn, with idle gaps between them. Measured on a MacBook: the same 10-turn agent in 31 seconds or 78, depending on one line of the prompt.

  • RAG from Scratch

    Series 7 parts · Updated 25 Oct 2026

    A series on Retrieval-Augmented Generation, built from first principles with runnable code: chunking, embeddings, the query flow, evaluation, BM25, and advanced retrieval.

  • RAG from Scratch, Part 6: Advanced Retrieval

    Hybrid search with Reciprocal Rank Fusion, rerankers, query transformation, small-to-big and contextual retrieval, GraphRAG, and agentic RAG, plus how to choose between them.

  • RAG from Scratch, Part 5: BM25

    Why vector search confuses error code E-4012 with E-4021, how BM25 scores exact matches, a worked example you can check by hand, and why BM25 scores have no fixed scale.

  • RAG from Scratch, Part 1: Chunking

    Why a '50-character' chunk turned out to be 47, and how fixed-size and recursive chunking actually work, implemented from scratch in Python.