my llm judge gives 4.6 out of 5 to answers i deliberately broke llm-as-judge
Judge prompt asks for a 1 to 5 rating on helpfulness and accuracy given the question, the retrieved context and the answer.
As a sanity check I fed it answers with fabricated citations, answers truncated mid-sentence, and one answer to a completely different question. Scores came back between 4.4 and 4.7 for all of them. Real answers also score 4.4 to 4.7. The scale has no discrimination at all, and swapping the system prompt does not move it either. Is the whole approach wrong or is my judge prompt bad?
@pomodoro_pat · 4w ago · 3 replies
Your judge prompt is bad in a very standard way, and absolute 1-5 scales are the cause. With no anchor the model settles into "this looks like an answer, 4.5" and stays there forever.
Three changes, in order of impact:
Then the step nearly everyone skips, which is the one that makes the rest mean anything: hand-label 50 examples yourself and measure how often your judge agrees with you. Below about 80% agreement your eval numbers are decoration. You already have the beginnings of this — your deliberately broken examples are labels.
Reply
Report
@vesting_cliff · 4w ago
Switched to five binary checks and the broken answers now fail three of them each. The truncated one fails only the completeness check, which is exactly the granularity I wanted and never got from a single number.
Reply
Report
@tenon_tuesday · 4w ago
The hand-label-50 step is also where you find out that you and your co-founder disagree about what a good answer is. Discovering that is worth more than any judge you could build afterwards.
Reply
Report