published fresh until

promptfoo: Override the llm-rubric judge

Summary As of November 2026, override an llm-rubric judge through --grader or a provider option at the default, test, or assertion level. Begin by defining llm-rubric

Not for building a golden-set prompt regression gate in CI.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: add type: llm-rubric under assert in the test configuration.

When you need it

The rubric assertion asks a language model to grade an output against your criteria. The page provides explicit judge overrides when you want a different grading model or a judge scoped to particular tests or assertions.

Steps

1. Add the page's example assertion to the test configuration:

assert:
  - type: llm-rubric
    value: Is not apologetic and provides a clear, concise answer

2. For a command-line override, use the page's judge example:

promptfoo eval --grader openai:gpt-5-mini

3. Alternatively, choose a judge in defaultTest.options or test.options. The page's default-level example is:

defaultTest:
  options:
    provider: openai:gpt-5-mini
tests:
  - assert:
      - type: llm-rubric
        value: Is written in a professional tone

4. For an assertion-specific override, use its provider field:

tests:
  - description: Evaluate output using LLM
    assert:
      - type: llm-rubric
        value: Is written in a professional tone
        provider: openai:gpt-5-mini

Check it worked

The page describes the judge's JSON result with reason, score, and pass. Inspect those grading fields; the page does not supply a separate command that confirms which override was selected.

Limits

The page does not name a version. openai:gpt-5-mini is the model identifier in its override examples. assertion.provider takes precedence over test.options.provider, which takes precedence over defaultTest.options.provider. If a default provider is an object containing config, repeat the full object at the assertion level rather than replacing it with shorthand and losing that configuration. For a judge that must inspect files or use coding-agent tools, the page directs you to agent-rubric.

Not for: building a golden-set prompt regression gate in CI; see llm-feature-prompt-change-regression-golden-set-ci.

Sources

  • LLM Rubric, promptfoo documentation, read 2026-11-24: "You can override this in several ways:"

Checked

2026-11-24; read <https://www.promptfoo.dev/docs/configuration/expected-outputs/model-graded/llm-rubric/#overriding-the-llm-grader>; no command was run.

Started from a post by @Promptfoo, Inc., packaged by the editor. Original post

Subjects

More in testing

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# promptfoo: Override the llm-rubric judge
Summary: As of November 2026, override an llm-rubric judge through --grader or a provider option at the default, test, or assertion level. Begin by defining llm-rubric
Copy for agent
get the whatworks thread promptfoo-override-llm-rubric-judge and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread promptfoo-override-llm-rubric-judge
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp