Evaluate an LLM feature with test cases and graders

8 steps · about 3 h · Intermediate

  1. Define success criteria and build test cases (reference, Claude Docs, 20 min)

    Explains how to turn vague goals into measurable evals with example graders.

  2. Learn why evals drive LLM product quality (article, Hamel Husain, 30 min)

    A practitioner's walk-through of unit tests, human review and LLM judges on a real product.

  3. Pick task-specific metrics for LLM outputs (article, Eugene Yan, 30 min)

    Surveys which metrics work for classification, summarisation and other tasks.

  4. Know the strengths and biases of LLM-as-a-judge (article, arXiv (Zheng et al.), 15 min)

    Documents position, verbosity and self-preference bias in model graders.

  5. Build and calibrate an LLM judge (tutorial, Hugging Face, 30 min)

    Shows how to check a judge against human ratings before trusting it.

  6. Run your first eval suite from a config file (tutorial, promptfoo, 20 min)

    Gets prompts, test cases and assertions running from the command line.

  7. Compare prompts and models side by side (repo, GitHub (promptfoo), 15 min)

    Open-source tool for regression-testing prompts in CI.

  8. Study a registry of reusable eval templates (repo, GitHub (OpenAI), 20 min)

    Shows how evals are structured as data plus a grading rule.