Skip to content

Packs / evals-public

eval-on-fixture

Score any model on a fixed case set (exact, contains, regex, JSON keys, numeric) from recorded outputs, local Ollama or any command; prints a score and fails below a threshold.

Install

logicpacks pack use evals-public/eval-on-fixture
get_pack evals-public/eval-on-fixture

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-localrecordedopenrouter
  • Checks: 3 in outcome/checks.yaml
  • Code: run_eval.py
  • Tools: python3

Usage, last 8 weeks

New: no recorded use yet.

Purpose (from spec/SPEC.md)

Goal

A repeatable score for a model on a fixed case set, with per-case PASS/FAIL and a JSON report.

Steps

  1. Write cases.jsonl (20-200 cases; pick the scorer per case: exact, contains, regex, json_keys, number).
  2. Run against the model: --ollama <model>, --cmd '<cli reading stdin>', or --outputs for recorded answers.
  3. Save --report base.json for the current model; run again for the candidate.
  4. Use regression-gate-before-ship to decide.

Edge cases

  • Temperature 0 and a fixed seed for Ollama; still expect small drift across Ollama versions.
  • number scorer takes the last number in the output; add tol for floats.

Don'ts

  • Don't tune the model on the eval cases.
  • Don't put customer data in cases.