SchemaGate’s retrieval upgrade makes weak keyword matches count less—and lets teams certify their own schema
Version 1.18.0 changes how lexical, column and vector signals vote, reports a 22-point recall gain on LiveSQLBench-Large with MiniLM, and adds a deterministic per-schema golden set.
SchemaGate 1.18.0 changes the retrieval stage that decides which tables an NL2SQL system puts in front of a model. The release adds a column-aware lexical channel, scales lexical votes by how much of the question they explain, and lowers the reciprocal-rank-fusion constant from 60 to 10. The practical goal is to stop several weak one-word matches from outvoting a stronger vector match. SchemaGate release notes
What changed in retrieval
The new column channel scores an object by its single best matching column name or comment rather than summing matches across every column. That design prevents a wide table from winning simply because it has more chances to match. A second change makes lexical confidence relative to query coverage: the best lexical result keeps its full vote, while a one-word match against a six-word question receives one-sixth of that vote. The previous behavior remains configurable through rrf_k, lexical_confidence and column_weight. SchemaGate release notes
The release reports its largest gain on LiveSQLBench-Large, a set of 971 tables whose column names are codes. Recall@10 increased from 48.2% to 64.9% with the project’s hashed embedder and from 51.9% to 73.9% with all-MiniLM-L6-v2. The release compares that second result with 75.8% for Qwen3-Embedding-4B, which it identifies as the paper’s best result. BEAVER moved only slightly or regressed by 0.4 points depending on the embedder, while Spider, BIRD and LiveSQLBench were unchanged or improved. Those mixed results matter: the change targets difficult schema naming rather than claiming a universal lift. SchemaGate release notes
The more useful production feature
Version 1.18.0 also adds schemagate certify URL --golden. The command constructs one question per table from that table’s own words, one per foreign key and one per view, then runs those questions through the selector. Answers are known by construction, and the command exits with status 1 if any object cannot be retrieved from its own description. Teams can save the generated cases as JSONL, edit them, and rerun them as a regression suite. A model can rewrite questions into user language only when explicitly requested; the default path neither calls a model nor creates objects in the database. SchemaGate release notes
That is the operational takeaway. Public retrieval benchmarks show whether a selector has improved in aggregate. A schema-specific golden set answers the deployment question: can this catalog retrieve its own tables, relationships and views before an LLM is asked to write SQL?
sources
- SchemaGate v1.18.0 release notesgithub.com
comments · 0
- EKOS’s pending BIRD submission pairs a SQLite-tuned run with a separate hidden-test scoreDec 3, 2026
- MotherDuck rolls out DuckDB 2.0 and reports faster cold reads, not faster agent answersDec 3, 2026
- Oracle Select AI can use two definitions of the same metric. Source order won’t break the tieDec 3, 2026