Practical engineering notes on building production-grade AI systems. Written for engineers, not for the hype cycle.
Written by Gursharan Singh, senior software engineer.
What this is: practical engineering notes on MCP, RAG, and AI agents: the system design and production patterns that matter in real engineering work.
What this isn't: a survey of every framework, a model-picking guide, or a fine-tuning tutorial. The focus is architectural patterns that hold up in production.
Retrieval Failure Analysis · Part 2
We re-tested the question every chunking strategy failed, this time with BM25 and rank fusion, and with every prediction committed before the run. One of our own diagnoses did not survive.
Retrieval Failure Analysis · Part 1
A five-question retrieval experiment shows where fixed-size chunking breaks, why overlap doesn’t always help, and when the real problem is retrieval rather than chunking.
Building the loop that survives production: observe → decide → act → check → repeat, the patterns that extend it, and the boundaries that keep an agent inside its lane.
Retrieval past the toy example: chunking that holds up, retrieval that returns the right thing, and the failure modes that only show up once real documents are involved.
How tools actually connect to models: where the seams are, how authority and scope are decided, and what it takes to wire it up without surprises.