AI and GenAI guides
RAG, vector databases, LLM serving, MCP and how AI systems run in production.
175 guides · Newest first · Updated
- Labeling and Active Learning: Ask Where the Model Is UnsureThe model picks the examples it is least sure about for experts to label, built on one running crop-disease app example.AI and GenAI · 23 min read ·
- AI Agent Sandboxing Explained: How to Contain Agents That Run CodeContainers vs gVisor vs microVMs, egress control, short-lived credentials, tamper-resistant logs and kill switches.AI and GenAI · 22 min read ·
- AI Decision Models Explained: Typed Choices Instead of Generated TextPicking one allowed option with probabilities, running them locally and setting thresholds.AI and GenAI · 20 min read ·
- Class Imbalance: When Fraud Is 1 in 1,000The right metrics, sampling, class weights and thresholds, built on one running payment fraud screening example.AI and GenAI · 19 min read ·
- Exploration vs Exploitation Explained: How Bandits Help RecommendersA plain-English guide to the exploration exploitation tradeoff and the bandit algorithms recommenders use to handle it, built on one running short-stories app example.AI and GenAI · 20 min read ·
- How Diffusion Models Generate Images, Step by StepA plain-English guide to how diffusion models turn random noise into a picture, built on one running example of a textile print design studio.AI and GenAI · 26 min read ·
- Design an Image Captioning System for Product Alt TextA plain-English guide to designing an image captioning system that writes alt text for a large product catalogue, built on one running marketplace example.AI and GenAI · 29 min read ·
- Knowledge Distillation for LLMs: Small Models from Big OnesA plain-English guide to LLM distillation, where a small student model learns from a large teacher model, shown on one running example of a Kannada voice assistant.AI and GenAI · 29 min read ·
- ML Model Monitoring: Data Drift and Concept DriftWhat data drift and concept drift are, how to detect each, and when to retrain, built on one running microfinance example.AI and GenAI · 26 min read ·
- RAPTOR: Hierarchical Summaries for Long DocumentsA plain-English guide to RAPTOR RAG, which builds a tree of summaries over long documents so broad questions get good answers, built on one running consulting firm example.AI and GenAI · 25 min read ·
- Real-Time Features: Batch vs Streaming vs Request-TimeHow to trade freshness against cost, shown on one running quick-commerce example.AI and GenAI · 25 min read ·
- Design a Semantic Search Engine: Find Jobs by MeaningEmbeddings, vector indexes, filters, hybrid keyword search and reranking.AI and GenAI · 28 min read ·
- Small Language Models: When Smaller WinsA plain-English guide to small language models for routing, data extraction and on-device features, built on one running receipt-scanning app example.AI and GenAI · 26 min read ·
- Text-to-Image System Design: GPU Queues, Filters and StorageGPU job queues, batching, prompt and image safety checks, and private image storage.AI and GenAI · 28 min read ·
- Text to Speech System Design: Voices for a News AppText cleanup, pronunciation lexicons, render-once audio caching and a fast lane for breaking news.AI and GenAI · 20 min read ·
- Text to Video System Design: Long Jobs, Cost and PreviewsLong background jobs, GPU cost and preview frames.AI and GenAI · 25 min read ·
- Visual Search System Design: Search by Photo in a Fashion AppPhoto to garment crop to vectors to results.AI and GenAI · 28 min read ·
- Loom Auth Bypass Explained (CVE-2026-103956): Fail-Closed Login and SSRF FixesFail-open vs fail-closed login, outbound URL guards and what operators must do. Everything is.Backend · 21 min read ·
- Linux's October 2026 PwnEscape Bug Explained: How a Checksum Hint Leaks MemoryHow a guest VM's checksum hint corrupted a host IPv4 header, who is exposed and how to patch.Backend · 12 min read ·
- vLLM Preload Explained: Restart LLM Servers in Seconds with a Weight CacheHow a per-GPU weight-cache daemon lets a restarting engine reuse weights already in GPU memory, and where it stops helping.AI and GenAI · 19 min read ·
- Monorepo Version Control at Scale Explained: Why Git Struggles with Agent MergesWhy git struggles when agents merge thousands of changes a day, what partial clone, sparse checkout and server-side systems fix.System design · 19 min read ·
- Reverse Engineer Anything Explained: How AI Agents Drive Ghidra Through MCPHow its local MCP server lets an AI coding agent query Ghidra, Hopper or IDA, check its findings and stay within safety and legal limits.AI and GenAI · 20 min read ·
- Transformers as Associative Memory Explained: How Layers Store and Recall FactsHow feed-forward layers store facts as key-value pairs, how attention recalls from the prompt and why look-alike keys collide.AI and GenAI · 20 min read ·
- LLM Inference System Design: KV Cache, Batching and the Gateway in FrontHow production LLM serving works, explained for system design interviews: prefill vs decode, the KV cache and PagedAttention, continuous batching, streaming, the inference gateway, and the latency metrics that matter.AI and GenAI · 16 min read ·