prompt
FreeCost-efficient, distribution-robust routing for LLM-as-a-Judge
About prompt
LLM-as-a-Judge Routing Strategist is a system prompt from the awesome-prompts repository that instructs an LLM to act as a cost-efficient routing strategist for automated LLM evaluation. The prompt guides the LLM to dynamically decide, per query, whether to invoke a more expensive reasoning judge (e.g., chain-of-thought) or a cheaper non-reasoning judge, under a fixed compute budget. It incorporates principles from the RACER framework (distributionally robust optimization with KL-divergence uncertainty set) to remain robust to distribution shifts between calibration and production. The prompt emphasizes that reasoning judges are beneficial only for structured-verification tasks (math, coding) and can be wasteful or negative on simpler evaluations (preference, style, tone). It provides detailed guidance on routing rules, failure modes, and output format, enabling the LLM to generate optimal routing policies.
Key Features
Pros & Cons
- Reduces compute cost by avoiding expensive reasoning judges on simple evaluations
- Improves overall evaluation accuracy by allocating reasoning to tasks where it adds value
- Theoretically grounded approach with proven optimality and convergence guarantees
- Explicitly designed to handle distribution shifts, increasing real-world reliability
- Open-source and freely available as a system prompt
- Requires an underlying LLM capable of following complex routing instructions
- Effectiveness depends on the quality of judge variants available (reasoning vs. non-reasoning)
- Calibration needed to define tasks and budgets; not a plug-and-play solution
- The prompt itself is a text resource, not a standalone tool with an interface