NVIDIA published NVIDIA/auto-ontology on 2026-04-27. It is now at 9,074 stars, 730 forks, and the last commit landed yesterday. The repository builds a semantic layer over enterprise data: business terms, the SQL expressions that define a metric, and the relationships that say how tables join. An agent asks a question in English, Auto Ontology resolves the terms against the ontology, writes the SQL, checks the filter values against the actual data, and returns the answer with the query and the steps that produced it.
The version bump to 1.2.0 landed on 2026-11-05. The star count is not why I am writing this up.
What caught my attention is a second repository, NVIDIA/auto-ontology-eval, 94 stars, almost nobody is watching. It is the measurement rig for the first one, and it contains the sentence that decided the angle of this post. The compare.py module docstring says:
Refuses to report a headline number when either side’s
no_model_outputrate is above a threshold. A rate-limited run scores near zero and looks exactly like a weak model; this is the guard that keeps an outage from being published as a benchmark result.
I read that, then went and looked for what it was protecting against, and found the same failure described from the other side in ontology_sql_eval/gym/exec_match.py:
NO_MODEL_OUTPUTexists specifically because that happened: a 66%-rate-limited 60-question run reported a plausible-looking 13.3%.
A benchmark harness that shipped with a scar on it. That is a more interesting artifact than another semantic layer, so I cloned the eval repo and ran the thing myself.
What the harness actually compares
Two arms, one model, one grader. The control arm gets the question and a schema dump in a single prompt with no tools. The treatment arm gets the question and retrieves its own context from the compiled ontology. Both arms’ SQL is scored by the same module, exec_match.py, whose docstring states the reason plainly:
Both arms are graded by this module so that a difference in the reported number can only come from the SQL, never from the grader.
That is the whole experimental design in one sentence, and it is the part most benchmark code gets wrong. When two arms are graded by two different scripts, the delta you report is a delta between two graders as much as a delta between two prompts. Sharing the grader removes one variable. It does not remove the model from the comparison, which is why the README insists both arms point at the same model: GYM_MODEL and GYM_MODEL_URL for the control, the DEFAULT_MODELS_* triplet for the treatment.
The datasets are the standard public text-to-SQL suite plus two extras: BIRD at 1,534 dev questions over 11 SQLite databases, the 500-question mini-dev subset for day-to-day work, BEAVER’s 100-question dw sample on MySQL, FDABench-Lite at 169 questions, Wide World Importers at 41 on Postgres, and BIRD-Interact, which is multi-turn and runs Auto Ontology alone on its own c-Interact harness because there is no schema-only control that makes sense for a clarifying-question benchmark.
A health gate that refuses to print a number
Here is the part I ran. compare.py has a constant HEALTH_THRESHOLD = 0.05 and two ways a run can be broken rather than weak: no_model_output, where the model returned nothing, and unknown_error. BROKEN_RUN_FAILURES holds both names. A run whose broken rate exceeds 5% gets no accuracy printed at all.
I built synthetic rollouts and drove the module as a subprocess. Sixty questions, forty of them rate-limited, one arm healthy:
schema-only: 60 tasks auto-ontology: 60 tasks common: 60
schema-only: broken-run failures 66.7% (no_model_output=40) <-- ABOVE THRESHOLD
auto-ontology: broken-run failures 0.0% (none)
Refusing to report: questions have no result, or more than 5% failed in a
way that reflects a broken run (no output, or an unknown error) rather
than a low score.
Exit code 1. No accuracy line, no delta, no flip list. To get a number out of that run I had to pass --ignore-health, and then the harness printed the headline I was looking for:
schema-only auto-ontology delta
ALL 20/60 (33.3%) 60/60 (100.0%) +66.7%
A +66.7 point improvement in enterprise text-to-SQL, entirely manufactured by a rate limiter. The --ignore-health flag exists for debugging runs, and the flag’s own help text says so: “report even if a run looks rate-limited (do not use for published numbers)“. The guard is not a suggestion, it is a hard stop, and it took a deliberate override to defeat it.
There is something old-fashioned about this. The Pragmatic Programmer’s line that “the rate of feedback is your speed limit” applies to benchmark runs as much as to a red-green-refactor loop, and this harness is essentially a feedback loop with a stopwatch on it. Most eval tooling has the shape of a tripwire: run it, look at the number, move on. This one has the shape of a smoke detector, and a smoke detector that has learned to distinguish “the toast is burning” from “the sensor is broken” is worth more than one that only beeps.
There is a second, quieter gate in the same module. run_gym_arm.sh records a failed question in a sidecar and keeps going, so a question that crashed is simply absent from the rollouts. compare.py reads Gym’s *_materialized_inputs.jsonl and diffs it against what actually produced a row:
schema-only: 1 question(s) with no result (failed or never ran;
see beaverbench_failures.jsonl) <-- re-run with --resume
Without this, a question that both arms lost would vanish from the comparison entirely and the report would look complete. I reproduced that too: three questions dispatched, two with results, and the report refused with exit code 1 and told me to re-run with --resume.
Now, the failure the code was written to prevent. I reconstructed the exact run from the comment: sixty questions, forty rate-limited, eight answered correctly.
questions: 60 rate-limited (no_model_output): 40
correct: 8 raw accuracy: 8/60 = 13.3%
13.3%. That is the number an unguarded harness would have put in a README, and it is indistinguishable from a genuine result if you do not know how many questions were skipped. The fix is not a better model or a bigger sample. The fix is a denominator you can audit.
Two matchers, because “correct SQL” is not one thing
The verifier picks its comparison rule per dataset. MATCHERS = {"beaverbench": beaver_result_match}, everything else gets result_sets_match, which is BIRD’s rule: set(gold) == set(pred). Unordered set equality over row tuples, ignoring row order and collapsing duplicates.
I checked what that means. A prediction returning the same row three times where gold has it once passes:
gold=[('a',)] pred=[('a',), ('a',), ('a',)]
BIRD set-equality -> match: True
The module docstring is upfront that a stricter shape-and-multiset comparison would disagree here, and explains why it does not use one: matching BIRD keeps the headline number quotable against published results. The comparison rule is part of the claim.
BEAVER gets its own rule because it stringifies every value before comparing. I ran the two rules against the same pair of rows:
gold=[(Decimal('150.250'),)] pred=[(Decimal('150.25'),)]
BIRD set-equality -> match: True
BEAVER row-norm -> match: False
BEAVER string norm -> ('150.250',) vs ('150.25',)
Decimal("150.250") and Decimal("150.25") are numerically equal and string-wise different. On a MySQL corpus, where every numeric comes back as a Decimal, that case is common rather than exotic, as the docstring puts it. BEAVER is stricter here and BIRD is looser, and using the wrong one would quietly change your accuracy.
There is a third difference, in timeout handling, and it is the subtlest thing in the file. SHARED_TIMEOUT = {"bird"}. Under BIRD’s official evaluation_ex.py, the prediction and the gold query run under one shared time limit and any failure scores zero with the task kept in the denominator. Everywhere else each query gets the full budget, and a gold query that fails takes the task out of the denominator entirely. I confirmed the divergence with a fake executor that takes 0.1s for the prediction and 5s for the gold:
dataset=bird -> match=False error_tag='gold_sql_scored' gold_result='failed_gold'
dataset=fdabench -> match=False error_tag='gold_sql_timeout' gold_result=None
Same broken gold query, opposite accounting. The comment on SHARED_TIMEOUT explains the stakes in concrete numbers: BIRD question 701’s gold query takes about 157 seconds, so it can never be answered, but officially it still counts. Question 518 takes about 26 seconds on an idle machine, which leaves the prediction a few seconds, so it passes or times out depending on machine load, exactly as it does officially.
BEAVER also gets a 10-second query timeout instead of the 30-second default, because its official evaluator gives every query 10 seconds, and a query that finishes in 20 is a pass locally and an empty result on the leaderboard. I confirmed the lookup:
timeout_for('beaverbench', default=30.0) = 10.0
timeout_for('bird', default=30.0) = 30.0
None of this is exotic. It is what it takes to say “our number is 8.2 points higher than the published number” without that sentence being meaningless.
Extraction is where the harness copies NeMo Gym’s bugs on purpose
extract_sql pulls the answer out of the model’s text. It searches for a fenced ```sql block, takes the last match, strips comments, and collapses whitespace. When there is no block it returns SELECT 1, a harmless filler that executes cleanly and matches essentially no gold query.
I ran three extractions. Two blocks, the second one right:
extracted: 'SELECT id FROM right_table WHERE x = 1'
No block at all:
extracted: 'SELECT 1'
And a -- comment inside a block:
SELECT id FROM t -- filter here
WHERE name = 'x'
extracted: 'SELECT id FROM t'
The WHERE clause is gone. The comment stripper runs with re.DOTALL but not re.MULTILINE, so -- eats the rest of the string. The docstring calls this out as mirroring NeMo Gym’s bird_sql extraction “including its quirks”, and the reason given is the same as everywhere else in this file: the numbers have to be comparable with published ones. A harness that fixed the extraction bug would report a different number than every BIRD leaderboard, and the fix would be a fork, not an improvement.
The module also carries a comment explaining why drop_unusable_tasks exists instead of setting nemo-gym’s instance_config.mask_sample flag: that flag is consumed by the token-id capture path to mask samples out of training data, and nemo_gym.reward_profile, which computes pass@k, does not consult it. Both are set, for their respective consumers. This is the kind of detail that only shows up when you read the file rather than the README.
What the library itself ships
The library is bigger than the eval rig. The stack is a Next.js 16 frontend on React 19 with Better Auth and Prisma on port 3000, a FastAPI backend with LangChain on 3001 doing the chat and NL-to-SQL work, a FastAPI ingestion service on 3002, a FastMCP server on 3003, and Postgres 17 with pgvector on 5432 holding the catalog, the ontology, and the vector store. A Helm chart ships for Kubernetes.
Every model role is configured as a triplet, <PREFIX>_ENDPOINT, <PREFIX>_API_KEY, <PREFIX>_MODEL, where the prefix is one of DEFAULT_MODELS, REASONING, NON_REASONING, EMBED, or RERANK. Any unset field falls back to the matching DEFAULT_MODELS_* field, so the simplest setup fills in DEFAULT_MODELS_* and overrides only what differs. Defaults are nvidia/nemotron-3.5-lightning-30b-a3b for the reasoning model, nvidia/nemotron-3-embed-1b for embeddings, and nvidia/llama-nemotron-rerank-vl-1b-v2 for reranking.
The ontology holds three kinds of definition: terms with descriptions and synonyms mapped to columns, reviewed SQL attributes like a margin or a rolling total, and relationships including bridge tables inferred from keys and from the data. One compilation of Wide World Importers produced 31 terms. The generation stage profiles columns and sample values, names entities table by table, infers joins, and suggests SQL attributes from query history. Then people certify it, and only then does the agent answer from it.
The MCP surface is nine tools: ask_question for the answer plus SQL plus rows, check_answerable to grade whether the semantic layer covers a question at all, check_readiness for whether the deployment can answer anything, search_terms, get_term, get_term_columns, get_term_sql_attributes, get_sql_attribute, and describe_table.
check_answerable is the one I would keep. The README walks through a question about return on ad spend for a product in June 2015, against a dataset with no advertising data at all:
Agent: check_answerable -> coverage 0.5; no term covers "ad spend"
Agent: I can find revenue for that product, but this data has no
advertising spend, so I can't compute return on ad spend.
The agent declines rather than inventing a denominator. Given that the whole point of the layer is to stop agents from confidently returning wrong revenue numbers, having a tool whose job is to say “this data cannot answer that” is the feature, not a side effect.
Two details in the README that deserve attention from anyone planning to run this. FastAPI trusts the user identity the frontend forwards in the x-auto-ontology-user-id header, and the ingestion service’s endpoints for ingest, delete, reset, and compile have no authentication of their own. The guidance is to keep ports 3001 and 3002 on a private network and have clients go through the web app on 3000. Fine for a local Compose stack, worth thinking about before it faces anything else.
What I could not verify
I ran the verifier, the matcher rules, the timeout rules, the extraction quirks, and the health gate. I did not run the benchmark. That needs an NVIDIA API key for the model arms, a Postgres server with pgvector for the catalog, and Docker for the Compose stack, and I have none of the three here.
So the accuracy delta this harness is built to measure is not in this post, and it is not published anywhere I could find. The main repository’s README has no accuracy number. There is no leaderboard table in the repo. The eval repository is 94 stars and carries no results file. The harness is the instrument; nobody has published the reading.
There is a second number I could not check. The three bundled agent skills ship with BENCHMARK.md files from an internal evaluator version 1.5.6, dated 2026-10-08, run against Claude Code and Codex in a k8s sandbox, 13 tasks each for the query and management skills and 10 for setup. The nvidia-ontology-query skill shows correctness moving 47.7% to 100.0% for Claude Code and 50.8% to 70.8% for Codex, with token use down 71.51% and 78.95% in aggregate. Those are real-looking numbers with dataset digests and coverage counters, but they come from an evaluator I cannot inspect, over a dozen tasks, and the reports themselves say uplift was unavailable for several dimensions because the baseline run produced no comparable score. A 13-task internal eval with a self-reported verdict of PASS is not the same claim as a 1,534-question public benchmark. I would want the latter before quoting the former as evidence that the ontology works.
What the refusal is actually worth
A text-to-SQL product that ships a measurement rig as a separate repository, and that rig refuses to print a number when the run was broken, is doing something rarer than it looks. Most eval code is written to produce a number. This is written to prevent one.
The scar is the evidence. Somebody hit a 66% rate limit on a 60-question run, got 13.3%, and it looked like a result. That is a completely ordinary infrastructure failure, and the fix for it in most codebases is to rerun and hope. Here it is a module with a threshold constant, two failure classifications that separate “the model was wrong” from “the model never answered”, a check for questions that silently vanished, and a refusal message that says exactly what to do next.
And it is honest about the parts it cannot fix. It copies NeMo Gym’s extraction bugs on purpose, because a comparable number beats a correct one that cannot be compared to anything. It keeps a task in the denominator on BIRD and drops it elsewhere, because that is what the official scorer does. It runs two different comparison rules depending on the dataset, because BEAVER’s Decimal handling genuinely disagrees with BIRD’s set equality, and I confirmed that disagreement by running both rules against Decimal("150.250") and Decimal("150.25").
None of that makes the ontology good. It makes the measurement trustworthy enough that you would learn something from the number when it finally gets printed. Whether 1.2.0 moves the needle on your own database is a separate question, one this post cannot answer, and the harness itself would insist you go measure it before believing anyone who says otherwise.
Comments
Powered by GitHub Discussions via Giscus. Sign in with GitHub to leave a comment.