How to Set Up a Local LLM Evaluation Harness with Ollama and Python
A local LLM evaluation harness runs a fixed set of prompts through a model on your own machine and scores the outputs automatically, so prompt or model…
TAGGED GUIDES
Explore the guides, ideas, and practical explanations in this topic.
13 published articlesA local LLM evaluation harness runs a fixed set of prompts through a model on your own machine and scores the outputs automatically, so prompt or model…
Evaluating hallucinations means checking each factual claim against a trusted source, then measuring how well your guardrail catches unsupported or contradicted claims. This guide covers a practical…
LLM-as-a-judge asks one model to score another model's output against a written rubric. It is the practical way to grade subjective qualities such as groundedness and helpfulness…
A prompt regression test suite combines a versioned JSONL prompt set, a deterministic scorer, a validated baseline, and a pass/fail gate. This guide walks through building one…
A repeatable AI test harness separates four parts—dataset, runner, scorers, and result store—so you can swap models, add checks, and compare runs without regenerating outputs. This guide…
A score difference is not a result until you test it. For two models evaluated on the same items, use McNemar's exact test on the items where…
Benchmarking hallucination rates on local models means choosing a test family, pinning your environment, and scoring fabrication separately from abstention. Two small MIT-licensed harnesses make this runnable…
Evaluating a local RAG pipeline means scoring two separate things: whether the retriever returned the right chunks, and whether the generator produced a correct, grounded answer. The…
A golden dataset is a curated, versioned set of inputs with reviewed expected outputs or explicit pass criteria, used as the fixed reference you run before every…
Hallucinations are best handled as two linked tasks: measuring them with a labelled evaluation set, and reducing them with grounded retrieval plus an output guardrail. This guide…
A hallucination evaluation for a local model needs three things: questions whose answers you have verified, a cold run with no tools or retrieval, and a grading…
Prompt engineering is the practice of writing, testing, and revising the instructions given to a language model so its output reliably serves a defined purpose. This guide…