How to Evaluate RAG Retrieval Quality with a Small Test Set
Build a small, versioned set of real questions paired with the chunk IDs that should answer them, run only the retriever against it, and gate recall@k and…
FROM THE AUTHOR
Explore the published guides and contributions from John C. Mullen.
203 published articlesBuild a small, versioned set of real questions paired with the chunk IDs that should answer them, run only the retriever against it, and gate recall@k and…
You do not have to choose between AI-assisted spreadsheet work and data protection. A layered approach — define the output, classify the columns, minimise the extract, redact…
Sanitizing configuration before AI assistance means replacing every live credential and internal identifier with a role-preserving placeholder, then checking logs, stack traces, and screenshots for the same…
Answer-only grading hides the most common agent failures: the wrong tool called with a plausible-sounding summary. The fix is to capture the tool-call log as a structured…
LLM integrations cannot be tested with exact string assertions, because the same input can produce different wording on every call. The workable approach is layered: mock the…
WP-CLI handles the deterministic WordPress operations, and a local Ollama model supplies the judgement layer that shell scripts lack. This guide shows how to pipe WP-CLI's JSON…
Exact reproduction of an Ollama run requires pinning five layers at once: the model artifact, the runtime version, the sampling parameters, the prompt and context, and the…
A review rubric converts subjective approval into two machine-readable outputs: a score per quality axis and a named rejection reason when a draft fails. This guide explains…
GGUF, Safetensors and GPTQ are not three versions of the same thing. GGUF and Safetensors are container formats, while GPTQ is a quantisation method whose weights are…
Vendor and analyst guidance converges on the same default: start with one agent and add more only when a specific failure demands it. This guide explains what…
A clarify-before-answer gate is an explicit prompt rule that tells a model to ask, declare its assumptions, or stop when a request is missing something it needs.…
A WordPress AI content style guide turns brand voice into explicit rules that AI tools can follow. Start with the 3 Cs—Character, Consistency, Context—then encode tone, image…