Repository navigation
Preserve official BIRD column value definitions in benchmark context - #357
Draft
seyoung4503 wants to merge 5 commits into
Draft
seyoung4503 wants to merge 5 commits into
seyoung4503 wants to merge 5 commits into
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.
BIRD models were asked to interpret coded values without definitions available in the official database-description CSVs. The pinned Mini-Dev baseline schema omits, for example, that weight 0/NULL means missing and thrombosis grades 1/2/3 are positive. Add an explicitly selected, separately hash-pinned schema variant containing all official column/value descriptions. Preserve the original baseline file and default behavior.
The existing schema loader,
--schema-docsselection, settings hash and scorer are reused. No product prompt, clarification policy, questions, DBs, reference SQL or official scoring changes. This is benchmark context plumbing, not a production metadata connector. Source descriptions are the 2024 official Dev release; questions remain the pinned 2026 Mini-Dev release. Therefore this is a distinct context condition, not the upstream fixed-prompt baseline.Source: https://bird-bench.oss-cn-beijing.aliyuncs.com/dev.zip, linked from https://bird-bench.github.io/. Archive SHA256: cdd6d19faeb45a23970b98d3ef6c40a87987c95459c2cf12076897a60cf5a630. All 75 description CSVs are retained with original hashes, excluding the macOS resource fork. Table/column names were checked against canonical DBs. The deterministic builder handles the release's UTF-8/CP1252 mixture without reading questions or gold SQL.
Validation: 366 tests passed, 1 skipped; scoped Ruff and diff checks passed. Tests cover exact map reproduction, unchanged baseline, rejection of altered/injected maps and rejection of altered CSV sources. A fresh worktree also passed all 19 benchmark tests and confirmed all 75 CSVs are tracked despite the repository's global CSV ignore.
Recorded selected-failure experiments:
official-value-descriptions, 76 hashesofficial-values-missing-weight, 16 hashesofficial-values-remaining, 212 hashesThese are 39 distinct former failures: 14 repaired, 25 still incorrect. Product source tree, schema hash and model/effort match across these probes; the last run additionally uses the runner count guard. This is not full500 accuracy. Historical baselines differ in earlier product fixes, so not every repair can be attributed solely to metadata. All failures, exact prompts, raw MCP traces and before/after comparisons are retained under
bench/accuracy/mcp-review-results.The 7/30 repairs are bird001/003/063/228/279/321/352. For bird003, COUNT(School) changed to COUNT(*), preserving NULL-name rows. For bird001, the directory funding field was used. Several other repairs changed a prior clarification into executed SQL; a passing grade alone does not independently validate every business assumption.
A separate frozen, same-version full500 validation has started with
--split all --expected-cases 500; its score is pending. Original coverage scores and earlier failures remain unchanged.