You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Questions in plain words now find tables with shortened names. Warehouse and ERP schemas spell customer as CUST, transaction as TXN, department as DEPT; a question uses the whole word, so the name fields had
nothing to match. select now adds a short form of a question word to the search, in two ways: a list of 76
common database shortenings (customer → cust, account → acct, quantity → qty), and the word's
leading consonants (product → prdct), four letters or more. A form is added only when this schema's own
names contain it, so a schema that spells its names out is searched exactly as before. Attribute and aggregate
words (number, count, date, name, status) are left out because their short forms are in almost every
table and say nothing about which one is meant, and no short form is listed for two words (inv is inventory
in one schema and invoice in the next). Measured on BIRD dev, 1,534 questions, every needed table in the
selection, with the table and column names rewritten to shortened forms (benchmarks/abbreviated_names.py,
built-in embedder, 1.23.0 → 1.24.0): one database at a time, top 5, 87.6% → 91.7%; all 75 tables in one
catalogue, top 5, 55.0% → 70.3%, top 10, 63.5% → 79.5%. With the original names: 97.1% → 97.1%, and pooled top 5
87.0% → 89.1%. With the st:all-MiniLM-L6-v2 embedder the abbreviated rows go 88.3% → 93.7%, 57.4% → 74.3% and
70.4% → 84.6%. The rewrite of the names is ours, so read it as a controlled test, not a public board. The five
schema-retrieval sets are unchanged or better at top 10 (recall: Spider 100.0, BIRD 99.2, LiveSQLBench 95.3
unchanged; LiveSQLBench-Large 64.9 → 66.7; BEAVER 65.9 → 65.8). The README table is unchanged, and the browser
build (studio/schemagate.js) ranks the same way.
Model reranking in the install form. The registry install form (VS Code, GitHub's MCP Registry) has four new
optional fields: SCHEMAGATE_MCP_RERANK (off by default), a provider pick list (none by default), a model
name, and one key field, SCHEMAGATE_MCP_API_KEY, used when the provider's own key variable is not set. With
rerank on, the server's model reorders the top 20 candidates before the pick: one model call per question, sent
table names and descriptions and never rows, and only objects the caller may already see. An untouched form
starts the server exactly as before; rerank switched on without a provider, a model or a key stops the server
with the reason instead of running without it. On the abbreviated-names test above (118 questions, 75 tables,
top 5, Gemini 2.5 Flash) reranking raised the every-table rate from 80 to 97 questions, and from 104 to 112 with
the original names.
Fix: Snowflake key-pair sign-in from the connection fields. Snowflake requires multi-factor sign-in from
people who use a password (a paid account refused the password login with error 390197), so unattended use is a
key pair, and the Snowflake driver refuses a key file in a URL "for safety reasons": there was no way to give
one in the install form. private_key_file=/path/key.p8 (and private_key_file_pwd=) in the options field is
now handed to the driver as a connect argument. Verified against a Snowflake account with a read-only service
user. An access token typed as the password works as before.