Skip to content

Packs / evals-public

llm-judge-rubric

Grade open-ended answers 1-5 against a written rubric with an LLM judge (local Ollama first), strict SCORE/REASON parsing and a minimum-mean gate.

Install

logicpacks pack use evals-public/llm-judge-rubric
get_pack evals-public/llm-judge-rubric

The second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.

Keys it needs (names only)

  • OPENROUTER_API_KEY

Playbooks included

  • Spec: spec/SPEC.md (goal, steps, edge cases, don’ts)
  • Routes: ollama-judgeopenrouter-judge
  • Checks: 2 in outcome/checks.yaml
  • Code: judge.py
  • Tools: python3

Usage, last 8 weeks

New: no recorded use yet.

Purpose (from spec/SPEC.md)

Goal

Rubric scores for open-ended answers that agree with a human on the obvious cases.

Steps

  1. Write the rubric as 3-5 anchored levels.
  2. Put question/answer pairs in a JSONL.
  3. Run with a judge stronger than (and different from) the model under test.
  4. Check 5-10 judged cases by hand; adjust the rubric wording, not the scores.

Edge cases

  • Judges prefer longer answers and the first option: keep length similar, swap A/B order for pairwise.
  • Unparseable replies count as failures (exit 1), never as a default score.

Don'ts

  • Don't use the model under test as its own judge.
  • Don't report judge scores without a human spot-check.