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