Skip to content
Yashraj Yadav

Writing

What I learned building and breaking production systems: RAG, backends, and Postgres.

  1. 8 min read

    I Had the Index. My Query Was Still Timing Out.

    A Postgres RPC with the right index still threw 57014 statement timeouts on a 5.5M-row table. The index was fine, but the way I wrote the query wasn't.

    Database · PostgreSQL · Indexing · Performance

  2. 8 min read

    Your RAG System Is Lying to You: Index Questions, Not Chunks

    Standard RAG returned the wrong page with a confident 0.753 score. A version that scored lower — 0.694 — returned the right one. Here's RAG's silent failure mode, why similarity scores can't be trusted, and the fix I shipped as QIndex.

    AI Engineering · RAG · Embeddings · Retrieval