[Evaluation] Add versioned offline confidence calibration artifacts - #3541
[Evaluation] Add versioned offline confidence calibration artifacts#3541yuki-uix wants to merge 4 commits into
Conversation
Signed-off-by: yuki.x <yuki.uix@gmail.com>
✅ Deploy Preview for vllm-semantic-router ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Xunzhuo
left a comment
There was a problem hiding this comment.
Thanks for putting the workflow and provenance surfaces together. The threshold sweep still misses valid operating points: OfflineAnalyzer only probes confidence plus 0.001, so two calibration scores less than 0.001 apart cannot be separated. For example, an uplift at 0.5000 and a regression at 0.5005 have a safe threshold between them, but the candidates jump from no escalation to escalating both. That can select a worse threshold or report no safe threshold even when one exists. Please enumerate exact score boundaries, for example with the next representable float or adjacent midpoints, and add a close-score regression.
Signed-off-by: yuki.x <yuki.uix@gmail.com>
|
Thanks for catching this edge case. You’re right that using a fixed I pushed a fix that:
Validation completed:
|
Related #3475
Purpose
This PR implements the offline confidence-calibration artifact workflow for accepted issue #3475.
It adds:
Affected modules:
tools/agent/scripts/tuning/tools/agent/scripts/tuning/verify_results/This PR does not modify runtime routing policy, automatically promote thresholds, train models, or commit provider-specific live API results.
Test Plan
PYTHONPATH=tools/agent/scripts python -m pytest tools/agent/scripts/tuning/tests -qmake agent-ci-lint AGENT_BASE_REF=upstream/main AGENT_CHANGED_FILES_PATH=/tmp/semantic-router-changed-files.txtTest Result
60 passed.0.9683.candidate; no production threshold was promoted.Local live artifacts
I generated a 350-question calibration artifact locally using DashScope-hosted Qwen models. I intentionally did not commit the provider-specific live results by default because they depend on a particular API provider, model snapshot, endpoint configuration, dataset revision, and sampling run. Committing them could make the results appear to be a canonical benchmark baseline, while they are primarily evidence that the workflow works end to end.
The PR therefore commits deterministic fixtures for CI and keeps the live artifact as local validation evidence. The locally generated artifact is reproducible from the documented workflow and has been verified for deterministic rebuilding.
If maintainers prefer to keep the full live artifact in the repository as a versioned reference, I am happy to add it with its manifest, model/provider metadata, dataset hash, generation configuration, and artifact ID.
Semantic Router PR Checklist
git commit -sSee CONTRIBUTING.md for the full contributor workflow and commit guidance.