AI and GenAI guides
RAG, vector databases, LLM serving, MCP and how AI systems run in production.
175 guides · Newest first · Updated
- vLLM 0.32 Breaking Changes Explained: Locked-Down CORS and Template LimitsThe closed CORS default and the flag that reopens it, chat template time limits, refused image formats and the new max_tokens rule.AI and GenAI · 20 min read ·
- Agentic Design Patterns: Chaining, Routing, Parallel and LoopsFive ways to split an LLM app, from prompt chaining to evaluator loops, with a table for picking one.AI and GenAI · 25 min read ·
- Agentic RAG: When Retrieval Becomes a DecisionHow the model decides whether, where and what to search, and checks what it finds, shown on one running university helpdesk example.AI and GenAI · 26 min read ·
- AI Coding Assistant Team Setup: Rules, Permissions and ReviewShared rules files, safe permissions, secrets, enforced code review and honest measurement.AI and GenAI · 28 min read ·
- Coding Agent Architecture: Harness, Tools and SandboxesThe harness loop, tools, sandboxes, context on big repositories and test checks.AI and GenAI · 24 min read ·
- Debugging AI Agents: Reading Transcripts and Stop ReasonsHow to read a transcript round by round, what stop reasons mean, the common loop bugs and what to log, shown on one running IT helpdesk example.AI and GenAI · 22 min read ·
- How LLMs Are Trained: Pretraining, Fine-Tuning and RLHFA plain-English guide to every stage of LLM training, from cleaning data and pretraining to instruction tuning, RLHF, DPO, safety tuning and testing, shown on one running example of a farmers' helpline model.AI and GenAI · 25 min read ·
- How LLMs Work: The Life of a Prompt, Step by StepA plain-English walk through what happens inside a large language model, from tokens and embeddings to attention, next-token probabilities and the context window, built on one running recipe-app example.AI and GenAI · 26 min read ·
- How to Evaluate AI Agents: Trajectories, Not Just AnswersCheck the real end state, grade every step, pick graders and run each task many times.AI and GenAI · 24 min read ·
- Hybrid Search: How BM25 and Vector Search Work TogetherHow BM25 keyword search and vector search each fail, how to merge them with RRF or weighted scores, and how to measure the result, shown on one running auto parts store example.AI and GenAI · 25 min read ·
- LLM Structured Output: JSON Schemas That Don't BreakA plain-English guide to getting reliable JSON from a model, from JSON Schema and constrained decoding to validation, retries, missing fields, versioning and tests, shown on one running example of a GST invoice reader.AI and GenAI · 25 min read ·
- Temperature, Top-p and Top-k: LLM Sampling ExplainedHow temperature, top-k, top-p and seeds change each next-token pick, and why vLLM and llama.cpp apply them in a different order.AI and GenAI · 28 min read ·
- LLM Tokenization Explained: Why Hindi Costs More TokensWhat tokens are, how byte-pair encoding works, why Hindi needs more tokens and how to count them before you send, shown on one running Hindi news app example.AI and GenAI · 25 min read ·
- ML System Design Interview Framework: Six StepsSix steps, a 45-minute plan, a position-bias check and a practice rubric.AI and GenAI · 28 min read ·
- Advanced RAG Explained: Naive vs Advanced vs Modular RAGHow naive, advanced and modular RAG differ and which failure each fix solves.AI and GenAI · 26 min read ·
- PDF Parsing for RAG: How to Handle Tables, Scans and OCRRouting digital and scanned pages, fixing reading order, keeping tables whole and checking OCR.AI and GenAI · 30 min read ·
- Query Rewriting for RAG: Multi-Query, Decomposition and HyDESimple cleanup and chat-history rewrites, multi-query search, decomposition, step-back questions and HyDE, built on one running electronics store example.AI and GenAI · 22 min read ·
- RAG Access Control: Permission-Aware Retrieval ExplainedHow to stop an internal AI assistant from retrieving documents a user could not open.AI and GenAI · 24 min read ·
- RAG Evaluation Metrics: Recall@k, MRR and Context PrecisionA plain-English guide to measuring a RAG system in two halves, retrieval and generation, with worked numbers for most metrics, built on one running income-tax help assistant example.AI and GenAI · 24 min read ·
- RAG Reranking: Cross-Encoders Explained SimplyBi-encoders vs cross-encoders, how many chunks to fetch and keep, cost, speed and measuring the gain.AI and GenAI · 23 min read ·
- Reasoning Models Explained: Thinking Tokens and When They PayA plain-English guide to reasoning models, built on one running maths tutoring example, covering thinking tokens, training, thinking budgets, cost, routing and how to test whether the extra thinking pays.AI and GenAI · 22 min read ·
- Semantic Caching for LLM Apps: Reuse Answers Without Wrong HitsSimilarity thresholds, safe cache keys, expiry and false hits.AI and GenAI · 25 min read ·
- Tool Design for AI Agents: Descriptions, Errors and RetriesNames, descriptions, inputs, structured errors, safe retries, tool count and testing, built on one running ordering-agent example.AI and GenAI · 24 min read ·
- Agent Harness Explained: The Code That Turns an LLM Into an AgentThe prompts, tools, memory, guardrails and loop around a model, and why October 2026 research tunes the harness instead of the model.AI and GenAI · 19 min read ·