Check my levelCoursesProgramsFor teamsPricing
UKSign inSign up
Check my levelCoursesProgramsFor teamsPricingClaude quizPromptsBlogFAQSearchSign upUK
AcademlCoursesPrompt Evaluations
Get started free

Online course, Engineering, Claude

Prompt Evaluations Course: LLM Evals from Test Cases to LLM Judges

8 lessons of 30 minutes based on Anthropic's open course: Python code, a task and a quiz in each.

Start: 7 days freePreview the first lesson, no sign-in

No card needed. The first two lessons are free after sign-up, all lessons come with Pro at $9 a month.

A test board: three prompt versions with pass and fail marks per exampleLesson 1, 35 minEvaluations 101: Why Measure Prompts
  • Advancedlevel
  • 4 h 10 min8 lessons, 4 modules
  • At your own paceupdated Dec 2, 2026
  • Certificatewith a check code
What you will learnLessonsCertificateQuestionsStart the course

What you will learn

  • Tell model benchmarks from your own evals and build an eval from four parts: input, golden answer, output, score
  • Grade by hand: a trial run in Playground, a 1–5 scale in a spreadsheet, side-by-side versions in promptfoo
  • Write a code-graded eval: in the lesson, accuracy rises from 66.6% to about 92% over three prompt versions
  • Grade classification with several correct categories by comparing sets
  • Run evals in promptfoo: promptfooconfig.yaml, CSV test cases, the __expected column, a result for every cell
  • Write your own Python checks with get_assert and return pass, score and reason
  • Grade tone and rule-following with a model judge through llm-rubric
  • Build your own multi-metric LLM judge scoring 1–5 with schema-valid JSON through structured outputs

What evals are and what the course teaches

An eval is a set of test cases that scores a prompt with a number: each case has an input, a golden answer, the model's output and a score. Built on Anthropic's open course, it covers grading by hand in Playground and a spreadsheet, with code and with a model judge, then automates runs in promptfoo. 8 lessons, about 4 hours.

Pricing and what's free →
02
Free lesson

Workbench Evals: Rapid Prototyping

Manual evals after Workbench was retired: a trial run in Playground with code export, 1–5 scores in a spreadsheet, prompt versions in git and a side-by-side comparison in promptfoo. In the lesson, a <python_code> tag and a no-extra-text rule raise the code translation score from 3 to 5. The task: score two prompt versions on three cases and compare them in promptfoo view.

Open the lesson →

Lessons

Evaluation fundamentals → code-graded evals → promptfoo → model-graded evals. The first two lessons are free.

Module 1 · 2 lessons · 1 h 5 min

Evaluation Fundamentals

What evals are, why they matter, and how they are structured.

1Evaluations 101: Why Measure Promptsfree35 minThe difference between benchmarks and customer evals. The four eval components: input, golden answer, output, score. Three grading approaches: human-based, code-based, model-based.2Workbench Evals: Rapid Prototypingfree30 minAnthropic Workbench for manual prompt testing. Running evals across multiple test cases. Comparing prompt versions (v1 vs v2). Human scoring on a 1-5 scale.
Module 2 · 2 lessons · 1 h 5 min

Code-Graded Evals

Grading answers with code: fast, cheap and the same on every run.

3Code-Graded Eval: From Zero to Baseline30 minBuilding a code-graded eval from scratch. Animal leg-counting test. Prompt v1 vs v2 vs v3 (chain-of-thought). Extracting answers from <answer> tags.4Code-Graded Classification Evals35 minEvaluating a multi-category classification prompt. Set-based grading for multiple correct categories. Improved prompt with few-shot examples: from 85% to 100% accuracy.
Module 3 · 2 lessons · 1 h

promptfoo: Scalable Evals

The promptfoo framework: CSV test cases, custom Python checks and a web report for every case.

5PromptFoo: Introduction and Basic Configuration

Who it is for

  • AI engineers shipping LLM features who want to test a prompt before every change
  • Developers switching models or prompts who need proof that quality did not drop
  • People building classifiers, data extraction or chatbots on Claude and other LLMs
  • Teams that need a shared test set for prompts instead of gut-feel reviews

How the lessons work

  1. A 30-minute lessonA task from Anthropic's original course, Python code and a breakdown of results across prompt versions.
  2. A hands-on task in every lessonFor example: write 10 test cases with golden answers for your own task and record the baseline accuracy, or hook your own JSON check into promptfoo. Submit it and the AI reviews it (after sign-up).
  3. Ready-made prompt and common mistakesA prompt for the lesson's task and the mistakes that spoil an eval: comparing strings without strip(), golden answers written by the same model, the same model as judge and test subject.
  4. 3-question quiz and AI tutorThe quiz checks the key points; the lesson's AI tutor answers questions on the topic.
  5. CertificateAfter all lessons you get a certificate with a unique verification code.

Certificate of completion

You get it when you finish every lesson. Each certificate has its own code, so an employer can check it on our site. You can add it to LinkedIn.

See how a certificate is checked
Sample

Sources behind the course

Academl built this course from Anthropic's open prompt_evaluations course (9 lessons in the anthropics/courses repository, archived since September 15, 2026).

The models in the original examples — Claude 3 Haiku, Claude 3.5 Sonnet, Claude 3 Opus — have been retired from the API, so put a current model from Anthropic's list into the code. Workbench was retired on August 17, 2026, and Playground (platform.claude.com/playground) replaced it on August 18. Playground stores no prompts, versions or evals, so the manual evals lesson now uses a spreadsheet and promptfoo.

promptfoo has belonged to OpenAI since March 2026 and remains open source under the MIT license.

The original custom LLM judge lesson got JSON through a <json> prefill with temperature=0. Since Claude 4.6, prefill returns a 400 error, and API version 2026-10-21 removed the temperature parameter, so in the Academl lesson the claude-sonnet-5-5 judge answers in a JSON Schema through structured outputs.

  • Anthropic — prompt_evaluations course on GitHub
  • Anthropic — create strong empirical evaluations
  • promptfoo — introduction
  • promptfoo — LLM as a judge
  • promptfoo/promptfoo on GitHub (MIT)
  • Anthropic — model deprecations and replacements
  • Claude API — structured outputs
  • Claude — how to use Playground

What's free and what it costs

  • The first two lessons, “Evaluations 101” and manual evals in Playground and a spreadsheet, are free after a free sign-up.
  • After sign-up you get 7 days of full access to all 8 lessons and the whole catalog, no card needed.
  • After that, Pro costs $9 a month or $79 a year. Online card payment is not connected yet: write to info@academl.com and we open access manually.
  • promptfoo is free and open source. Claude API calls run on your own key and are billed by Anthropic at its rates.

Prompt evaluations course: questions

What are LLM evals and why do I need them?+

An eval is a set of test cases with golden answers that you run a prompt against, counting the share of correct answers or the average score. It shows whether a prompt got better after an edit and catches regressions when you switch models. Benchmarks like MMLU measure a model in general; your own eval measures your task.

Code-graded or model-graded evals?+

If the answer has an exact reference — a number, a category, a JSON field — grade it with code: fast, cheap and repeatable. For tone, completeness and rule-following, use a model judge with a clear rubric. Anthropic's documentation recommends automating grading where you can and judging outputs with a different model from the one that produced them.

What is promptfoo?+

An open-source tool for prompt evals and red teaming: promptfooconfig.yaml defines model providers, prompts and tests with assertions, and results appear in a prompt × test case grid. It has built-in checks, custom Python checks and the llm-rubric judge. OpenAI has owned the project since March 2026, and it remains under the MIT license.

How many test cases does an eval need?+

The lessons call a set of fewer than 20 cases unstable: results swing from run to run. Anthropic's documentation recommends more cases with automated grading over a few hand-graded ones. Start with 10–20 cases from real requests and add every case your prompt gets wrong.

What experience do I need?+

This is an advanced course: you need Python, a Claude API key and experience writing prompts. If you are new to the API, take “Anthropic API Fundamentals” first, and for prompting, the Prompt Engineering Guide course.

Does the course code still work in 2026?+

The method and promptfoo work. Anthropic has retired the models from the original examples: Claude 3 Haiku in April 2026, Claude 3.5 Sonnet in October 2025 and Claude 3 Opus in January 2026. Replace the model ID with a current one from Anthropic's list. The Academl lessons on manual evals and the custom LLM judge are updated: Playground, a spreadsheet and promptfoo replace the retired Workbench, and the judge gets JSON through structured outputs with no prefill or temperature. Prefill returns a 400 error on Claude 4.6 and later, and API version 2026-10-21 removed temperature.

The course in short

level
Advanced
For whom
For developers
Task
Code and products
Tool
Claude
Format
Lessons, quizzes and tasks checked by AI
Lesson language
English

Is this course right for you?

Check your level in 3 minutes. We will show which course to start with.

Check my level

More courses on this topic

Full catalog
Advanced

Advanced Prompt Engineering

14 lessons for developers: chain-of-thought, self-consistency, Tree-of-Thoughts, ReAct, injection defense, LLM-as-judge, promptfoo, DSPy, prompts in production.

6 h 50 min, 14 lessonsCertificate
Advanced, Gemini

Gemini in Practice: Real Google Examples

8 advanced Gemini API projects from Google: a ReAct agent, Google Search reports, Barista Bot, PDF to JSON, anomaly detection and embedding re-ranking.

4 h 5 min, 8 lessonsCertificate
Intermediate, Claude

Design with Claude: from idea to design system

7 lessons: how to give Claude design tasks, build a DESIGN.md with tokens and components, generate screens in Stitch and code from Figma over MCP.

3 h 12 min, 7 lessonsCertificate
Intermediate, Claude

Claude Code & Agentic Development

10 lessons on Claude Code in real projects: CLAUDE.md, slash commands, task plans, git and PRs, test-first debugging, MCP servers, VS Code, JetBrains and CI.

4 h 10 min, 10 lessonsCertificate

Keep going

Anthropic API fundamentals before evals →Anthropic's interactive prompting tutorial →Real-world prompting →Prompt Engineering Guide course: 9 techniques →Claude tool use: function calling →OpenAI Cookbook: a guardrail judge with precision and recall →

Start with Evaluations 101

The first two lessons are open after a free sign-up. Sign up with email or Google to get 7 days of full access to the whole course and catalog.

Sign up
CoursesLLM coursesFor teamsPricingFAQBlogAboutPrivacy
© 2026 AcademlDevelopment & promotion —MMIX — Marketing Mix
30 min
Installing PromptFoo. YAML configuration: providers, prompts, tests. CSV dataset with __expected. Comparing simple_prompt vs better_prompt via the visual dashboard.
6PromptFoo: Custom Code Graders30 minWriting a Python get_assert() function for PromptFoo. Counting exact word occurrences in text. Comparing Haiku vs Sonnet on the same eval. The GradingResult dict: pass, score, reason.
Module 4 · 2 lessons · 1 h

Model-Graded Evals

LLM-as-judge: when code-graded falls short and subjective criteria are needed.

7Model-Graded Evals: LLM as Judge30 minWhen model-graded evals are needed. The built-in llm-rubric in PromptFoo. Evaluating a school assistant prompt: does it reject irrelevant questions? Grading for apologetic tone. Comparing three prompt versions.8Custom LLM Judge: Multi-Metric Scoring30 minA custom llm_eval() function scoring conciseness, accuracy and tone from 1 to 5 and answering strictly in a JSON Schema through structured outputs, wired in through get_assert(), and three summarization prompts compared. Stable scores come from a rubric and repeated runs without temperature.
Certificate
Your name
for the course
Prompt Evaluations: Based on Anthropic Materials
ACADEML · VERIFIED · ACADEML · VERIFIED · SAMPLE
How long is the course and what does it cost?+

8 lessons of 30 minutes, about 4 hours in total, no schedule, and a certificate with a verification code at the end. The first two lessons are always free, signing up gives 7 days of full access with no card, and Pro costs $9 a month or $79 a year.