mikekeror-rgb

RAG Eval Harness — AI skill for Claude Code

AI community

Claude Code skill: add a RAG evaluation harness that also checks its own metrics (case study: 2 router bugs, a metric that passed by construction on 72% of questions, a judge that rewarded wrong refus.

How to install RAG Eval Harness

This entry records only its repository, not the path inside it, so there is no exact command to give. Open mikekeror-rgb/rag-eval-harness and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What RAG Eval Harness does

Claude Code skill: add a RAG evaluation harness that also checks its own metrics (case study: 2 router bugs, a metric that passed by construction on 72% of questions, a judge that rewarded wrong refusals)

Alternatives in AI

  • No No Debug — No-No Debug — Self-evolution system for AI coding assistants 153 ★
  • Eval LLM Judge — ../../skills/eval-llm-judge/SKILL.md 94 ★
  • Buyer Eval Skill — B2B software vendor evaluation skill for Claude Code — domain-expert questions, vendor AI agent conversations 67 ★

README

rag-eval-harness

A [Claude Code](https://claude.com/claude-code) skill that adds a repeatable evaluation harness to an existing RAG app: a golden question set, retrieval metrics (hit@k, MRR), judge-scored faithfulness and relevancy, citation and refusal checks, and a CI quality gate. It also checks the metrics themselves, because the most expensive eval bug is a metric that can't fail.

Case study: what auditing a real RAG eval turned up

The checks in this skill come from evaluating the [Advocate Remuneration Assistant](https://github.com/mikekeror-rgb/advocate_renumeration_assistant_v1), a RAG assistant for Kenyan advocates' fees, scored on 236 pre-registered questions with a Qwen2.5-7B model. Its headline was 87.7% correct. Auditing the evaluation found:

  • Two router bugs. Digits inside case citations (2026KEHC13078) were read as a Kshs 13,078 fee, and a calculation guard fired on any question that mentioned calculating. Six of 236 questions got a canned calculator reply instead of an answer. Fixed, the same model scored 213 instead of 206 in a paired run.
  • A retrieval metric that passed by construction on 72% of questions (171 of 236). It counted any chunk of the right type as a hit, so it reported 98.3% for ruling questions while the gold passage itself was retrieved for 78.6%.
  • A judge that rewarded wrong refusals. The faithfulness judge gave a perfect 5/5 to 7 of the base model's 10 wrong "Not covered in the provided documents" answers. A refusal is always "supported by the context".
  • A citation check stricter than the thing it checked. Exact matching flagged real, retrieved chunks as fabricated when the model fixed the corpus's misspelling ("Renumeration" → "Remuneration"). On the 62-question set, 6 answers contained an invented citation, not the 11 reported.

With the metrics fixed, a retrieval-only harness (no model, no judge, about 30 seconds per run) screened candidate retrieval changes. Re-ranking was the one worth a full run