Build an automated eval runner comparing two prompts
Write a Python eval script loading 30 JSONL test cases, running prompt A vs B concurrently, and reporting deterministic + judge scores.
Model Answer & Explanation
Load (input, expected_facts, expected_tool) pairs from JSONL, run variants concurrently under an asyncio.Semaphore, compute deterministic checks first (JSON schema valid, latency, token cost, exact tool match), then run a binary/1–5 rubric judge with reasoning-before-score and swapped A/B order to remove position bias.