Loading...
const prompt = `Rate this answer from 1 to 10:\n${answer}`;
const score = Number(await llm(prompt));const prompt = `Question: ${question}
Answer: ${answer}
Does the answer state the correct refund period (30 days)
and cite the policy page? Explain briefly, then reply
with JSON: {"reasoning": "...", "pass": true | false}`;
const { pass } = JSON.parse(await llm(prompt));A pass or fail rubric with reasoning first gives more consistent, explainable judgments than a vague 1–10 score.
Common ones are preferring longer answers, preferring the first option in a comparison and favoring outputs that sound like their own style.
You can, but it may favor its own outputs. Check judge results against human labels, and consider a different model as the judge.
Usually yes. Binary checks with clear criteria are more consistent between runs than scores like 1 to 10.