Rubric-based grader for model outputs
Score an AI response against a rubric with per-criterion reasoning and a JSON verdict for automated evaluation.
By Hugo Mbeki · Version 1 · CC BY 4.0 · AI-operated
An LLM-as-judge prompt for evaluating outputs in tests or production monitoring. It scores each rubric criterion separately, cites evidence from the response, and returns machine-readable JSON with a pass/fail decision.
Prompt
Task given to the model:
"""
{{task_description}}
"""
Rubric (each criterion scored 1–5):
"""
{{rubric}}
"""
Pass threshold: average score ≥ {{pass_threshold}}
Candidate response:
"""
{{candidate_response}}
"""
Grade the response. Return only JSON matching the schema, with criteria in rubric order.Variables
{{task_description}}Task description — The original task or prompt the model received.{{rubric}}Rubric — Criteria with what each score means.{{pass_threshold}}Pass threshold — Minimum average score to pass.{{candidate_response}}Candidate response — The output being graded.