How to Test Local AI Answers for Hallucinations and Accuracy
A local model can check its own answers for hallucinations only when you give it a source to read. This guide covers the grounded-versus-open-world split, a five-step…
FROM THE AUTHOR
Explore the published guides and contributions from John C. Mullen.
250 published articlesA local model can check its own answers for hallucinations only when you give it a source to read. This guide covers the grounded-versus-open-world split, a five-step…
A WordPress RAG chatbot answers questions about your own content by retrieving relevant passages and passing them to a language model as context. A documented all-local stack…
Evaluating hallucinations in a local model splits into two different problems: grounded checks against a source you supply, and open-world checks against reality. A small local model…
Error paths are a distinct leak surface in AI applications: verbose exceptions, retry logs, cache entries, and fallback responses can expose PII, credentials, and internal configuration that…
Chat templates are the model-specific bridge between role/content messages and the token sequence a chat model expects. This guide explains how to inspect tokenizer.chat_template, apply it with…
Measure local model performance by tracking three numbers separately: prompt processing speed, generation speed, and peak memory. llama.cpp's llama-bench and Ollama's --verbose flag produce these figures directly,…
A WordPress content audit becomes reliable when you split it in two: WP-CLI does the deterministic work of enumerating URLs, querying for missing metadata and checking internal…
Comparing quantization levels on one model is a controlled experiment: change the quant, hold the runtime, context, and prompts constant, then measure memory footprint and task accuracy…
A reviewer assignment and escalation system decides three things before an AI draft reaches an audience: who reviews it, what counts as acceptable, and what happens when…
Bulk-generating WordPress meta descriptions and image alt text means solving three problems: finding every item that lacks metadata, sending each item's context to an AI provider, and…
Safe WordPress AI automation separates observation, authenticated access, and action. This guide explains how to design agent workflows for content, SEO, and support with least privilege, human…
You can run a local language model without a GPU by using a small quantized model and a CPU-focused inference stack such as llama.cpp, Ollama, or LM…