Repository navigation
feat: Add a commit-message query set to the benchmark - #302
Closed
flyinprogrammer wants to merge 1 commit into
Closed
flyinprogrammer wants to merge 1 commit into
flyinprogrammer wants to merge 1 commit into
Conversation
benchmarks/README.md says the annotations were generated by Claude Sonnet 4.6, and their wording tracks the target code closely: on average 74% of a query's words appear in its target file (27% for a random file in the same repo), which favours lexical and path signals. benchmarks/mine_commit_queries.py mines an independent set from each pinned repo's own history: the commit subject is the query and the 1-3 non-test source files it changed are the relevant targets (chores, merges and broad commits are skipped). 2,416 queries across all 63 repos, 68% word overlap, 13% with every word present (31% for the annotations). run_benchmark and the ablation runner take --query-set commits; results are saved under a separate name. Defaults are unchanged. semble scores 0.735 NDCG@10 on the commit set.
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.
Closes #301
Summary
A second, independent query set: each query is a commit subject from the pinned repo's own history, and its targets are the 1–3 non-test source files that commit changed.
annotationscommitsEvidence
run_benchmarkwith no flags gives NDCG@10 0.852 onmainand on this branch. The other baselines don't take--query-set, so nothing changes for them.run_benchmark --query-set commitsgives NDCG@10 0.735, written toresults/semble-hybrid-commits-<sha>.json.mine_commit_querieswrites byte-identical files (2,416 queries).make test391 passed;make lintandmake typecheckclean;ruff checkandruff format --checkclean onbenchmarks/.Merge Danger
Door: two-way
Benchmark tooling only; nothing under
src/changes.Blast Radius: benchmarks
The data adds 740 KB in 63 JSON files. Mining needs network access to clone history, about 600 MB of history-only clones in
~/.cache/semble-bench-history.