AI and GenAI guides
RAG, vector databases, LLM serving, MCP and how AI systems run in production.
175 guides · Newest first · Updated
- System Prompt Best Practices: Guidance, Not EnforcementA plain-English guide to writing good system prompts, why models can still break them and which rules must move into code, shown on one running example of a savings app's chat helper.AI and GenAI · 21 min read ·
- A/B Testing LLM Applications: Metrics, Splits and Safe RolloutOffline checks, shadow tests, metrics, user splits, test length and a safe rollout.AI and GenAI · 24 min read ·
- Choosing an AI Agent Framework: Plain Loop, Graph-Based or Role-BasedA plain loop, LangGraph, CrewAI, Pydantic AI or Microsoft Agent Framework, tested on one running example of a small tax-assistant team.AI and GenAI · 21 min read ·
- AI System Design Case Study: AI-Assisted Loan OriginationA loan system where AI reads documents and drafts a risk summary but a person decides.AI and GenAI · 31 min read ·
- AI SLA: How to Turn AI Trade-offs into Promises You Can KeepSLIs, SLOs, quality audits, error budgets, fallbacks and client reports.AI and GenAI · 27 min read ·
- AI Agent Authorization: Authentication vs Authorization GuideAuthentication vs authorization, OAuth scopes and tokens, service accounts, the confused deputy problem, token storage and MCP.AI and GenAI · 28 min read ·
- AI Solution Architecture: From Business Problem to DesignDiscovery questions, success metrics, the no-AI check, building blocks, a first diagram and a phased rollout.AI and GenAI · 27 min read ·
- How to Debug LLM Hallucination: Prompt, Context or Model?Reproduce the wrong answer, read the trace, prove the cause with one change and fix the right layer, shown on one insurance help bot.AI and GenAI · 24 min read ·
- AI Compliance Architecture: GDPR, HIPAA and FedRAMP ExplainedA plain-English guide to what GDPR, HIPAA, FedRAMP and the EU AI Act mean for how you build an AI system, shown on one running example of a clinical note-taking app.AI and GenAI · 27 min read ·
- LLM Model Selection Per Task: Tiering, Routing and CascadesPass marks, small test sets, tiers, routers, cascades and fallbacks.AI and GenAI · 25 min read ·
- Human in the Loop AI: Designing Escalation and ApprovalsA plain-English guide to deciding which AI decisions need a person, when to escalate, how to design the reviewer screen and how to stop rubber-stamping, using one motor insurance claim from start to finish.AI and GenAI · 25 min read ·
- AI Agent Security: Least Privilege and Fixing Tool BloatA plain-English guide to applying least privilege to AI agents, from auditing a bloated tool list to narrow tools, scoped short-lived credentials, approvals and logs, shown on one HR assistant from start to finish.AI and GenAI · 28 min read ·
- LLM Latency Optimization: Accuracy vs Latency Trade-offsWhere the wait comes from, how to measure it at p50 and p95, how to cut it safely and when accuracy must win.AI and GenAI · 27 min read ·
- LLM Cost Optimization: Cut Your AI Bill Without Hurting QualityHow token pricing works, how to measure cost per feature and per user, and which fixes cut the bill.AI and GenAI · 30 min read ·
- LLM Data Residency: Where Your AI Actually RunsWhat data leaves your app, the four places a model can run, what to ask about retention and training, and DPDP and GDPR transfer basics, all shown on one running clinic example.AI and GenAI · 26 min read ·
- LLM Evaluation Metrics and Test Frameworks ExplainedGolden test sets, the main evaluation metrics, LLM-as-judge, error margins and regression tests in CI, all.AI and GenAI · 28 min read ·
- LLM Feedback Loop Design: Turning User Feedback into FixesA plain-English guide to designing a feedback loop for an LLM product, from collecting thumbs, edits and overrides to safe fixes, shown on one running example of AI essay feedback.AI and GenAI · 22 min read ·
- LLM Guardrails Explained: Layered Checks Before and After the ModelInput checks, retrieval and tool limits, output checks, human review and testing.AI and GenAI · 29 min read ·
- LLM Observability: Catching Silent Regressions and Cost DriftWhat to log, how to trace multi-step calls, which alerts catch quality drops and rising cost, and how to find the cause.AI and GenAI · 25 min read ·
- MCP vs API vs Agent-to-Agent: Which Integration to UseWho decides each call, how they fit together and when to pick each.AI and GenAI · 25 min read ·
- Multi-Agent System Design: When Orchestration Is Worth the CostA plain-English guide to multi-agent system design, from orchestrators, workers and handoffs to cost, failure and testing, using one month-end report example from start to finish.AI and GenAI · 26 min read ·
- Prompt Caching Explained: Faster, Cheaper LLM CallsHow a model service reuses the start of a prompt, how to order prompts so the cache works, what breaks it, how vLLM does it and when it does not help.AI and GenAI · 25 min read ·
- LiteLLM's October 2026 PyPI Compromise Explained: Stolen Tokens, Startup HooksHow a poisoned 1.107.0 ran code at every Python start, how the release pipeline was hijacked, and how to check and clean up.AI and GenAI · 23 min read ·
- MCP Python SDK's Sept-Oct 2026 Advisories Explained: What Upgrading MissesWhat each bug did, what mcp 1.30.0 and 2.2.0 fix by default and which settings you still must change.AI and GenAI · 26 min read ·