Lion Cipher Lab

Evaluate an LLM with a rubric and a test set

Why it matters

Ask most people whether an AI model is any good and you get a shrug and a vibe: 'it seems smart', 'it felt off today'. A vibe cannot be compared, cannot be tracked over time, and cannot tell you whether the change you just made helped or hurt -- so teams that ship AI on vibes are flying blind, and they find out their model got worse from angry users instead of from a number. Evaluation is the fix, and it is not exotic: you write down a fixed set of test prompts, you write down what a good answer to each one must contain or do, you run the model, and you score every answer against those…

What you'll learn

Steps in this lab

  1. The problem: 'it seems good' is not a measurement
  2. The words you need, defined once
  3. Install the stack: Ollama, a small model, and one Python library
  4. Write your test set: prompts paired with expected criteria
  5. Call the local model once per test case
  6. Score correctness against ground truth
  7. Score refusal-when-appropriate: measuring safety objectively
  8. Score format: does the output have the shape you asked for
  9. Run the whole harness and print the pass-rate table
  10. Catch a regression: change the model and re-run the same test set
  11. What you built, its limits, and where it goes next

Open the full interactive lab →