Idea · Jul 10, 2026
LLM Routing Testbed
A multi-week project where students build and evaluate a prompt router that classifies incoming queries by complexity and routes each to the most cost-effective model, teaching model evaluation, system design, and empirical benchmarking in one cohesive assignment.
What it would do
As multi-model AI applications become standard in industry, knowing WHEN to use an expensive frontier model versus a cheap small model is a core engineering skill. In this assignment students build a Prompt Router: a Flask API that accepts a query, classifies its task type and complexity using a lightweight classifier of their own design, then routes it to Claude Opus 4.8, Claude Haiku 4.5, or a locally-running Ollama model based on that classification. Students curate a benchmark dataset of 50+ labeled prompt-response pairs, implement and iterate on their routing policy, and evaluate on three axes (cost, quality, latency). A shared class leaderboard ranks routing strategies by cost-efficiency ratio, encouraging friendly competition. A written reflection analyzes which task types genuinely required expensive models versus which could have gone local.
Key features
- Benchmark dataset builder: students label prompt-response pairs with task type and minimum acceptable model tier
- Routing policy engine with pluggable classifiers (keyword rules, embedding similarity, lightweight ML)
- Three-axis evaluation dashboard: cost per query, quality score (LLM judge), and median latency
- Ollama integration for true local-model routing, teaching privacy-first AI design
- Class-wide leaderboard comparing cost-efficiency ratios across routing strategies