Authored by Mohan Sai Puttagunta
A collection of 18 engineering articles, deep dives, and tutorials published by Mohan Sai Puttagunta.
Agentic Design Patterns: Reflection, Planning, and Multi-Agent Orchestration
A comprehensive analysis of foundational design patterns for autonomous AI agents: ReAct loops, Reflexion self-critique, hierarchical supervisors, and swarm protocols.
Modern Production RAG: Hybrid Search, Reranking & Contextual Retrieval
A battle-tested blueprint for architecting enterprise retrieval-augmented generation systems that eliminate hallucination and achieve >95% recall.
Data Preprocessing using Google Colab
https://colab.research.google.com/
Demystifying LLM Reasoning & Test-Time Compute: Inside R1, o1, and Beyond
An architectural deep dive into test-time compute scaling, reinforcement learning with verifiable rewards (RLVR), process reward models, and chain-of-thought search mechanisms.
Fine-Tuning vs RAG vs In-Context Prompting: The Engineering Decision Matrix
A definitive guide to choosing between parameter-efficient fine-tuning (LoRA/QLoRA), retrieval-augmented generation, and long-context prompt engineering.
Getting started with Machine Learning
Foundation stones in learning ML
The Comprehensive Guide to Model Context Protocol (MCP)
Everything you need to know about Anthropic's open standard for connecting LLMs to databases, developer tools, internal APIs, and local resources.
Simple Linear Regression
Quick sneak peak into SLR
Building an Autonomous Tool-Calling Agent from Scratch in Python
A hands-on step-by-step developer tutorial implementing an agentic execution loop with tool registration, memory management, and error handling.
Building a Production-Ready SQLite MCP Server in TypeScript
A hands-on tutorial on developing, packaging, and testing a Model Context Protocol (MCP) server that exposes database exploration tools to LLMs.
Implementing Hybrid Vector Search with BM25 and Qdrant in Python
A complete practical guide to setting up hybrid search with dense embeddings, sparse lexical vectors, and reciprocal rank fusion.
Deterministic Agent Intent Router & Tool Classifier Prompt
A fast, low-token router prompt for classifying user requests into specialized downstream agent topics and selecting appropriate tool sets.
Structured Chain-of-Thought & Self-Reflection System Prompt
A production-tested system prompt template that forces LLMs to reason step-by-step, self-audit edge cases, and emit valid JSON schemas.
Multi-Agent Orchestration Patterns: Hierarchical, Swarm, and Event-Driven
Architectural blueprints for structuring resilient multi-agent AI topologies, preventing state synchronization conflicts, and optimizing execution latency.
Transformer Attention & The KV Cache: Memory Footprint and Optimization
A deep dive into Multi-Head Attention, Grouped-Query Attention (GQA), FlashAttention-3, and PagedAttention memory management in LLM serving.
DeepSeek-R1 Architecture Breakdown: Pure RL & Test-Time Compute
Comprehensive technical notes on DeepSeek-R1, Multi-Head Latent Attention (MLA), DeepSeekMoE, and the emergence of reasoning via GRPO.
Gemini 2.0 Flash & Real-Time Multimodal Agent Architectures
A technical evaluation of Gemini 2.0 Flash: native real-time audio and vision streaming, sub-second tool execution, and agentic workflows.
Top AI & ML Engineer System Design Interview Scenarios
Key architectural scenarios, trade-off questions, and technical answers for AI Engineer and Applied Scientist system design interviews.