AI and GenAI guides
RAG, vector databases, LLM serving, MCP and how AI systems run in production.
175 guides · Newest first · Updated
- Machine Translation System Design: Glossaries, Quality Checks and FallbacksGlossaries, protected placeholders, quality estimation, translation caching, human review and fallbacks.AI and GenAI · 23 min read ·
- Pgvector vs Vector Database: When Postgres Is Enough and When to SwitchRecall, filters, memory and write cost measured on 100,000 vectors.AI and GenAI · 24 min read ·
- Agent Failure Recovery: Checkpoints and Partial FailuresHow checkpoints, idempotency keys and undo steps let a crashed AI agent resume safely.AI and GenAI · 25 min read ·
- Design an AI Code Review Bot: PR Comments, Noise and CostHow a bot reads pull requests, cuts false positives and keeps cost per review low.AI and GenAI · 25 min read ·
- CPU vs GPU vs TPU for AI: Which Chip for Which JobA plain-English guide to choosing between CPUs, GPUs and TPUs for training, inference and embeddings, shown on one running example of an Indian-language search team.AI and GenAI · 26 min read ·
- Grouped Query Attention Explained: How GQA Shrinks the KV CacheHow multi-head, GQA and multi-query attention change memory use, speed and quality, shown on one running long-document chat example.AI and GenAI · 22 min read ·
- Buying an LLM Service: Vendor Due-Diligence ChecklistData retention, training use, who owns what, lock-in and a tested exit plan.AI and GenAI · 23 min read ·
- MCP in Production: Multi-Server Setups, Auth and LoggingShared servers over Streamable HTTP, tokens bound to one server, and traces across every tool call.AI and GenAI · 25 min read ·
- MCP Security: Tool Poisoning, Elicitation and Server TrustTool poisoning, rug pulls, tool shadowing, unsafe elicitation and how a client decides which servers to trust.AI and GenAI · 26 min read ·
- NIST AI RMF in Practice: Govern, Map, Measure, ManageA plain-English guide to the NIST AI RMF that turns its four functions into a worksheet for one AI feature, using one running hospital X-ray example.AI and GenAI · 23 min read ·
- Agent Skills Explained: Packaging Procedures in a SKILL.md FolderThe open SKILL.md folder format, how agents load a skill only when a task needs it, how skills differ from system prompts, tools and RAG, and how to review and test one.AI and GenAI · 22 min read ·
- LLM Model Deprecation: How to Migrate Without Breaking UsersFinding every model ID, pinning dated versions, golden eval sets, shadow and canary tests and rollback.AI and GenAI · 22 min read ·
- Mixture of Experts Explained: Routers, Active Parameters and VRAMHow a router sends each token to a few expert blocks, why total and active parameters differ, and why every expert still needs GPU memory.AI and GenAI · 22 min read ·
- Speculative Decoding Explained: Draft, Verify and When It Stops HelpingHow a small draft model guesses tokens, how the large model checks them without changing its output, and when the speed-up disappears.AI and GenAI · 20 min read ·
- Streaming LLM Responses: Render Tokens in a Chat UI Without JankFetch streams, safe UTF-8 decoding, SSE parsing, frame batching, scroll, stop and resume.Frontend · 26 min read ·
- Text to SQL Explained: Schema Context, Read-Only Roles and SQL ChecksSchema context, read-only database roles, parser checks, timeouts, row limits and result-based tests.AI and GenAI · 26 min read ·
- AI Agent vs Workflow: When You Actually Need an AgentA plain-English guide to the difference between an AI workflow and an AI agent, shown on one shop's support tickets from start to finish, with a simple way to decide which one to build.AI and GenAI · 23 min read ·
- Prompt Caching Explained: Faster, Cheaper LLM CallsWhat it reuses, why only an exact start matches, how to layer a prompt so the cache hits and how to check it.AI and GenAI · 24 min read ·
- AI Solutions Architect: Skills, Roadmap and Study PlanWhat the job involves, the six skill areas, a 12-week study plan, how you are tested and a readiness check.AI and GenAI · 28 min read ·
- Architecture Decision Records for AI Systems, With ExamplesThe sections, eval links and superseding.AI and GenAI · 24 min read ·
- Looped Transformers in 2026: More Depth, Same ParametersHow reusing one block of layers adds depth without new parameters, what three 2026 papers found, and the real costs in compute, KV cache and latency.AI and GenAI · 20 min read ·
- MCP Multi Round Trip Requests: How MRTR Replaces Server CallbacksInput_required results, retries with answers and sealed requestState, shown on one running refund example.AI and GenAI · 19 min read ·
- Prompt Injection Prevention: How to Defend AI AgentsA plain-English guide to prompt injection and how to defend an AI agent against it, shown on one email assistant from the first attack to a safer design and a test plan.AI and GenAI · 28 min read ·
- RAG Chunking Strategies: How to Split Documents for RetrievalA plain-English guide to splitting documents for RAG, from chunk size and overlap to structure-aware, semantic and parent-child chunking, shown on one running example of a farmer helpline.AI and GenAI · 27 min read ·