Skip to content
Writing

Notes from production.

Notes from building GenAI systems that survive real users, and from teaching them to engineers, executives and MBA students. Every claim is linked to its source.

Subscribe via RSS
11 min read

Where did the fact die? Root-causing a wrong RAG answer

Aggregate RAG scores tell you something is wrong, not where. How to trace each expected fact through parsing, chunking, retrieval, ranking, assembly and generation, and name the stage that lost it.

  • RAG
  • Evaluation
9 min read

MCP or A2A? Tools versus colleagues

MCP connects an agent to tools and data. A2A lets it hand work to another agent it cannot see inside. What each protocol contains as of October 2026, and when the second one is worth its cost.

  • MCP
  • A2A
  • Agents
10 min read

MCP explained, then hardened

What the Model Context Protocol is as of the 2026-07-28 specification, a tool call on the wire, the attacks seen so far, and a hardening checklist for anyone connecting servers to agents.

  • MCP
  • Agents
  • Security
10 min read

Sizing an LLM server by hand: the KV-cache maths

A worked example that sizes Llama 3.1 8B on one H100 on paper: weights, KV cache, how many requests fit, and how fast decoding runs once memory bandwidth sets the pace.

  • Inference
  • Teaching
9 min read

One agent first: when multi-agent is worth it

A ladder from a single LLM call to several agents, what each rung costs in tokens, latency and debugging, and the few reasons that justify splitting one agent into many.

  • Agents
  • Evaluation
10 min read

Evaluating agents, not just answers

An agent changes the world, so check the world, the path it took, how often it gets it right, and what it cost. A practical method with a refund agent, a task file and a tiny grader.

  • Agents
  • Evaluation
  • Observability
10 min read

Ten questions to ask before approving a GenAI project

A plain checklist for managers who must approve or fund a generative AI project: ten questions, what a good answer sounds like, and the red flags.

  • Teaching
  • Strategy
  • Evaluation
10 min read

How large language models work, in one hour, without maths

Teaching notes for a one-hour explanation of large language models for executives: six ten-minute blocks, each with one idea, one analogy, one exercise and one misconception.

  • Teaching
7 min read

Prompt injection is a data problem

Retrieved documents, tool results and emails are untrusted input. A security layer for RAG and agents: a trust boundary, least privilege for tools, and an attack set in CI.

  • Security
  • Agents
  • RAG
6 min read

Agents need contracts: three things to write down before the first tool call

Tool schemas, structured outputs with a refusal path, and a trace for every step. The boring paperwork that makes a multi-agent system debuggable once it runs thousands of times a day.

  • Agents
  • Observability
  • MCP
6 min read

Parsing and chunking are the first model you ship

Before embeddings and prompts, a RAG system is a document pipeline. How to parse real PDFs, chunk by structure instead of by token count, and measure the result with retrieval recall.

  • RAG
  • Data
  • Evaluation
4 min read

Hybrid RAG in production: what the tutorials leave out

Dense retrieval alone is not enough. A practical walk through hybrid search, reranking, and the evaluation loop that keeps a RAG system honest once real users arrive.

  • RAG
  • Retrieval
  • Evaluation