R376 · Knowledge for agents › Retrieval over long documents

Auto Ontology: a compiled semantic layer, an honest eval harness, and a 20% that isn't there

Read the original

ontologytext-to-sqlretrievalagent-toolsevaluationclaim-checkingopen-source

Sources: the NVIDIA/auto-ontology README and the NVIDIA/auto-ontology-eval README. Apache-2.0. A practitioner post surfaced it with a version-specific architecture claim and an accuracy figure; both are addressed at the end, and neither appears in either README.

The shape of the system

Two halves, and they are built on opposite principles. That contrast is the reason to read this.

Compilation is a fixed pipeline. Catalog ingest reads tables, columns, keys, views and query history, optionally tags PII, and embeds tables and columns in pgvector. Then per table: value profiling in SQL, with a model finding foreign-key candidates and junction tables, writing column descriptions and naming terms. Then across tables: schema copies are grouped into term families and foreign keys linked to terms, keeping an inferred link only when the data confirms it, with a model attaching unlinked FK columns, suggesting SQL attributes from query history and describing each column attribute. Output is the ontology in Postgres plus embeddings in pgvector, importable and exportable as Ossie YAML. Then human experts certify.

Answering is a single model loop. The reasoning model answers each question by choosing one tool at a time from retrieve, run_sql and submit. submit runs the checked query and, on failure, returns the error to the model to fix. If the tool-call limit is reached without an accepted query, the agent reports that the question cannot be answered. The README is explicit that no tool calls a language model except predict — so the loop is one model orchestrating deterministic tools, not a tree of nested model calls.

That division is the architectural idea worth copying, independent of this product. Expensive, slow, reviewable work — building the semantic model — runs as a pipeline you can inspect, version and certify. Cheap, fast, per-question work runs as a loop with repair. The common mistake is the reverse: a fixed pipeline at query time that cannot recover from a bad join, and ad-hoc model judgement at index time that nobody can audit.

What the ontology actually holds

Six elements, each answering one question:

ElementWhat it carries
ConceptTerms with description and synonyms
MappingColumn attributes tying terms to tables and columns
RelationshipJoins, including bridge tables: declared keys plus inferred links confirmed against data
MetricSQL attributes — reviewed SQL under a term, reused for consistent calculations
LineageTerm and attribute links back to source tables and columns; answers return SQL
CertificationExperts certify names, descriptions and attributes

The first draft is auto-generated and refined by people. Edits are re-embedded immediately. Certifications and edits survive recompilation — with one exception that matters: the semantic foreign key each join uses is re-selected on every compilation. So a certified term keeps its meaning across rebuilds, but the path a query takes to reach it can silently change underneath. If you are relying on a reviewed join, that is the thing to pin or to test.

The Metric element is the quietly important one. Putting reviewed SQL under a term is how "revenue" stops meaning three things in three dashboards, and it is the part a pure text-to-SQL system structurally cannot provide.

Sample scale: compiling Wide World Importers produced 31 terms.

The eval harness is better than the benchmark claim

The companion eval repo is the more interesting artifact, because it is designed to resist the kind of number that gets quoted on social media.

Two arms, named plainly: control (schema_only_sql) gets the question and a schema dump with no tools; treatment (auto_ontology_sql) gets the question and an agent that retrieves context from the ontology. A run produces a single accuracy difference between them. Scoring is BIRD's execution accuracy for most datasets and BEAVER's ex_acc for BEAVER, deterministic, with no LLM judge — which, given how often a model grading a model inflates the result, is the right call.

Datasets and question counts:

DatasetQuestionsEngine
BIRD1,534 (Dev), 500 (Mini-Dev)SQLite
BIRD-Interact~300 (Lite), 600 (Full)Postgres
BEAVER100 (dw sample)MySQL
FDABench-Lite169SQLite
Wide World Importers41Postgres

Two pieces of measurement hygiene worth stealing outright:

The maintainers' own test setup is named: claude-opus-5-5 for reasoning on NVIDIA's inference API, nemotron-3.5-embed-1b-nvfp4 for embeddings, with a smaller Nemotron as the public-key example. That is worth noting because the arms differ in scaffolding, not model — the same model is scored with and without the ontology, which is the correct design for isolating the context layer.

The claims that are not there

The surfacing post asserted two specifics. Both were chased to the source.

"NVIDIA reports up to 20% higher benchmark accuracy" — absent. There is no accuracy percentage anywhere in either README. The project README's only performance statement is that Auto Ontology "leads on the BIRD-Interact and BEAVER benchmarks", with two badges reading #1 on each leaderboard — a rank, with no score and no baseline. The eval README, which exists precisely to produce a with-versus-without number, publishes no results at all: it describes how to measure and names the arms, and the only percentage in the document is the 5% no-output threshold. So the figure is not contradicted, it is simply unsourced, and the one document that would carry it declines to.

"Version 1.3.0 deleted 22,601 lines, removing the fixed LangGraph steps that wrote and repaired SQL" — unverifiable. The README mentions no version number, no changelog and no LangGraph (the only backend framework named is FastAPI with LangChain). No changelog or architecture document is published alongside the README. Nothing in the README contradicts the claim, and the current README does describe a model-driven repair loop consistent with it — but the README never describes any earlier version, so the direction of change, the line count and the framework are all unconfirmed.

The partially-true part is worth separating out, because it is the kind of error that is easy to repeat: the answering path is indeed a single model loop. The compilation path is still a fixed multi-stage pipeline with several model-assisted steps. "The fixed steps were deleted" is true of one half of the system and false of the other, and the post does not distinguish them.

Operational detail, and the parts to be careful with

Review checklist

Sits between work that puts a checked semantic layer in front of agents over MCP, work that uses an ontology to constrain what an agent may extract or query, and the broader finding that extraction-built graphs are high-precision and low-recall. The pattern this one adds is the asymmetry: compile deliberately, answer in a loop.

Connections

See R376 on the knowledge map

Part of the Research notes on nowucca.com. Figures and claims are the source's own unless the summary says otherwise.