DocsPlatform

Evaluations

LLM-as-a-judge quality measurement. Pick a judge model, the model(s) under test — including your tuned adapters — and a criterion; get aggregate metrics plus row-level judge feedback.

Three modes

ModeThe judge…You get
Classifysorts each response into one of your categories (e.g. safe/unsafe)label distribution, pass rate against your pass labels, mean confidence
Scoregrades each response on a numeric scale against your criterionmean and standard deviation, range seen
Comparepicks a winner between two models, response by responsewin rates for A and B, tie rate

Create a run

curl — compare a tuned adapter against its base
curl -X POST https://ragnarok-ai.com/api/evals \
  -H "Content-Type: application/json" \
  -d '{
    "type": "compare",
    "judge_model": "Qwen/Qwen2.5-0.5B-Instruct",
    "models": ["Qwen/Qwen2.5-0.5B-Instruct", "ft:a1b2c3…"],
    "input_mode": "prompts",
    "prompts": ["How do I reset my password?", "Summarize our refund policy."],
    "criterion": "Accuracy and helpfulness for a support assistant"
  }'

# → { "eval_id": "…", "status": "queued" }

Instead of inline prompts, pass "input_mode": "dataset" with a dataset_id and dataset_column to evaluate over anuploaded dataset (first 100 rows).

Judges

GET /api/evals/judges lists the local judge — Qwen2.5 0.5B-Instruct. Larger judges (70B / 72B) are not available on this stack.

If the task has a known correct answer, use a held-out benchmark to measure accuracy. For judge-based runs, the inference rate applies to the model and judge tokens.