Skip to content

Add KDB Router - #217

Closed
jh941213 wants to merge 3 commits into
RouteWorks:mainfrom
jh941213:kdb-router
Closed

jh941213 wants to merge 3 commits into
RouteWorks:mainfrom
jh941213:kdb-router

Conversation

@jh941213

@jh941213 jh941213 commented Sep 29, 2026 •

Copy link
Copy Markdown

KDB Router

Content-only, cost-first router.

  • Routing input: question body only (first/last paragraph dropped; line labels, option letters and None placeholders stripped). No RouterArena templates, config files, labels or proportions.
  • Question body → all-MiniLM-L6-v2 → logistic regression over 11 content categories (trained on an external calibration set with RouterArena items removed) → per-category model.
  • Pool: google/gemma-4-31b-it, openai/gpt-6-luna, google/gemini-3-flash-preview, deepseek/deepseek-v4.1-flash, deepseek/deepseek-v4-flash-0731. Some categories use a reasoning setting (reasoning.effort=low / reasoning off), recorded per row in generated_result.request_params.
  • New model entries added to model_cost.json / universal_model_names.py / model_inference.py; no existing entries changed. openai/gpt-6-luna rows were served by the OpenAI API directly (provider: openai) or, where a response already existed, via OpenRouter; every row records its path (provider, request_id). All other models via OpenRouter.

🤖 Generated with Claude Code

Question body -> MiniLM embedding -> 11 content categories (logistic
regression trained on an external calibration set) -> per-category model.
Adds gpt-6-luna, deepseek-v4.1-flash, deepseek-v4-flash-0731 entries.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@jh941213

Copy link
Copy Markdown
Author

/evaluate

jh941213 and others added 2 commits September 29, 2026 11:10
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@jh941213 jh941213 closed this Sep 29, 2026
@jh941213
jh941213 deleted the kdb-router branch September 29, 2026 02:19
@github-actions

Copy link
Copy Markdown

Router Evaluation Results

Router: kdb-router
Dataset Split: full

RouterArena Metrics

Metric Value
RouterArena Score 0.7502
Accuracy 76.15%
Total Cost $1.520499
Avg Cost per Query $0.000181
Avg Cost per 1K Queries $0.1810
Number of Queries 8400
Abnormal Entries 0
Robustness Score 0.8143

Optimality Metrics

Metric Value
Opt.Sel (Optimal Selection) 0.1445
Opt.Cost (Cost Efficiency) 0.5345
Opt.Acc (Accuracy vs Optimal) 0.8732

Evaluation completed by RouterArena automated workflow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant