Repository navigation
Calibrate semantic judge against human labels - #27
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
think: falsefor short structured evaluation instead of spending the output budget on hidden reasoningWhy this was needed
The original OpenAI-compatible
qwen3:4brun reached the 512-token ceiling for all 8 cases because the installed model generated thinking tokens before JSON. It took 1,481.134 seconds and produced zero comparable judgments. Raising the ceiling to 1,024 was stopped after about 25 minutes because it projected toward an hour without guaranteeing valid output.The native Ollama provider makes thinking control explicit. A strict static schema improved valid output from 4/8 to 7/8; specializing score applicability per case produced 8/8 valid judgments without weakening validation.
Measured judge run
evals/v2/results/isolated-validation-2026-10-29.jsonqwen3:4bHuman calibration
All three score disagreements concern context relevance. The judge rated noisy evidence more generously than the human reviewer;
commuter-stipenddiffered by two points. These eight synthetic cases validate the workflow but do not establish general judge reliability.Validation
python -m pytest tests/test_semantic_evaluation.py tests/test_semantic_calibration.py -q: 35 passedpython -m pytest -m "not integration" -q: 127 passed, 6 deselectedpython -m ruff check .: passedgit diff --check: passedScope
--provider ollama