Data Governance · 5 min read

NVIDIA's Auto Ontology grounds agentic SQL in certified definitions

NVIDIA's open-source Auto Ontology maps business terms to certified columns, returns the SQL behind every answer, and tops BIRD-Interact and BEAVER text-to-SQL benchmarks.

By Grace Kim1,044 words

Key takeaways

  1. Auto Ontology is NVIDIA's open-source semantic-layer framework at github.com/NVIDIA/auto-ontology, exposed over MCP, CLI and REST.
  2. Every answer returns the underlying SQL and execution steps; Undercode says the framework tops BIRD-Interact and BEAVER text-to-SQL benchmarks.
  3. The local stack needs Docker Compose v2, uv and an NVIDIA API key, with the API on port 3000, MCP on 3003 and Postgres on 5432.
  4. The PostgreSQL example grants agent_sql_reader CONNECT, USAGE and SELECT only, revoking INSERT, UPDATE, DELETE and TRUNCATE.
  5. Three named failure modes remain: over-broad retrieval, unverified join paths, and recompilation drift.
NVIDIA Auto Ontology: Closing the Semantic Trust Gap in Agentic SQL and Enterprise Data Governance + Video - Howl.Link
NVIDIA Auto Ontology: Closing the Semantic Trust Gap in Agentic SQL and Enterprise Data Governance + Video - Howl.Link — jamesmarkosborne / pixabay

A query can return HTTP 200, zero SQL errors and twice the revenue it should. That failure mode sits at the center of a walkthrough published by Undercode, the training firm behind the Hackers Feeds security desk.

NVIDIA's open-source Auto Ontology builds a governed mapping from business concepts to the tables and columns behind them, lets domain experts certify definitions, and serves the layer through the Model Context Protocol (MCP), a CLI and REST APIs. Every answer returns its underlying SQL and execution steps, which Undercode credits for topping text-to-SQL benchmarks including BIRD-Interact and BEAVER.

What does a governed semantic layer actually change?

Raw DDL access optimizes an agent for valid syntax, not organizational truth. One warehouse can hold columns resembling revenue, net_amount and bookings, plus foreign keys as ambiguous as billing_city_id against delivery_city_id.

Join a parent entity to a child table on a one-to-many path without aggregation boundaries and totals multiply silently. The walkthrough's second objective is blunt: validate answerability and join cardinality before execution, because overlapping integer IDs or unverified one-to-many paths can double metrics like revenue even when SQL runs without syntax errors.

Auto Ontology counters this with a structured layer that maps business terms to specific columns, SQL calculations and validated join paths, returning generated SQL and reasoning steps so engineers and analysts can verify provenance.

Rather than dumping a full schema into every prompt, which inflates context windows and degrades precision, the framework exposes three tools: retrieve for concepts and join paths, run_sql to test candidate queries, and submit for the final SQL, explanation and result set.

What does a local deployment look like?

Prerequisites are Docker with Compose v2, uv and an NVIDIA API key, on a Linux or macOS workstation. The repository at github.com/NVIDIA/auto-ontology installs by copying .env.example to .env and running docker compose up -d.

Three ports decide the attack surface: 3000 for the deployment API, 3003 for the MCP server and 5432 for Postgres — the checklist an on-call engineer already runs before opening a service. Clients register the MCP endpoint in ~/.cursor/mcp.json or claude_desktop_config.json; pipelines mint a token and post a streaming request to /api/chat/completions.

Which controls should a security team enforce first?

Separate the control plane from the query path. Ingestion, compilation, reset and delete endpoints belong on a private network, and the execution role should stay read-only. The guide's PostgreSQL example grants almost nothing else:

  • CREATE ROLE agent_sql_reader with LOGIN and a vault-sourced password
  • GRANT CONNECT on analytics_db, GRANT USAGE on schema analytics
  • GRANT SELECT ON ALL TABLES, plus default privileges for future tables
  • REVOKE INSERT, UPDATE, DELETE, TRUNCATE — no DROP, ALTER or GRANT rights either

Tokens rotate, travel through environment variables or secret managers rather than shell history, and API access logs get audited. On Linux, ufw or nftables restricts service ports to trusted subnets, containers run as non-root, and .env files holding tokens and database credentials get chmod 600. The sample rules open SSH on 22/tcp and let 10.10.0.0/16 reach port 3000.

On Windows administrative workstations, icacls restricts the local MCP config to the current user, while PowerShell verifies firewall rules and tests reachability on port 3000.

What changes in the cloud?

The same separation moves into AWS, Azure and GCP: ingestion and semantic compilation sit in a private VPC subnet, an authenticated reverse proxy or API gateway terminates TLS and rate-limits public endpoints, and AWS PrivateLink, Azure Private Link or VPC peering links the semantic service to metadata stores and warehouses.

Operators verify TLS 1.3 negotiation, keep internal ports off 0.0.0.0 on public interfaces, and centralize container and gateway logs in a SIEM to spot anomalous query volume or enumeration attempts.

Three failure modes survive even with the semantic layer in place: over-broad retrieval responses exposing sensitive column names or row values; unverified join paths allowing cross-entity correlation that breaks governance policy; and recompilation drift, where rerunning compilation overwrites manual adjustments. The mitigation is unglamorous. Export YAML model definitions into Git for peer review, diffing and rollback, and log every generated query with user identity, timestamp and referenced tables.

Do the benchmarks settle the trust question?

Undercode's answer is no. High scores on BIRD-Interact and BEAVER show execution accuracy across multi-turn and complex analytical tasks, but benchmark accuracy is a starting point, not a substitute for domain governance. Financial reporting, regulatory filings and executive forecasting still need human certification of business terms and inspection of the returned SQL.

The pre-flight checklist runs three lines:

  • Confirm the term is mapped and certified, not guessed from a generic column name
  • Inspect JOIN clauses and GROUP BY keys for fan-out or unintended row duplication
  • Cross-check a sample result against a known baseline report or analytics owner

The firm's scorecard splits cleanly:

  • +1 Standardized semantic layers and MCP governance interfaces make enterprise text-to-SQL agents easier to audit and safer in regulated analytics workflows.
  • +1 Version-controlled semantic definitions and SQL provenance logs speed root-cause analysis when automated reports or agent decisions get challenged in audits.
  • -1 Poorly secured semantic APIs or over-privileged database roles let attackers or misconfigured agents extract metrics or craft manipulations that slip past basic syntax filters.
  • -1 Teams that trust auto-generated ontologies without human certification or periodic re-validation institutionalize flawed business logic across every downstream AI agent.

Undercode puts the bottleneck plainly: the shift from "can the model write SQL?" to "can we trust and audit what the model queried?" is the defining constraint for enterprise data agents. Showing the generated SQL and steps, it adds, is not just a debugging convenience; it is the audit trail that lets security, data and business teams verify that an agent did not invent a shortcut or misread a schema.

Automation accelerates discovery of metric sprawl across dashboards, spreadsheets and ad-hoc queries, but it cannot settle organizational politics around definitions like revenue or churn. A human who owns the metric still has to certify it. The post also links a 30-minute scheduling slot for teams that want a guided run-through.

lnkd.in (Original)

Price tags

Share this article:

More from Grace Kim

Grace Kim

Show full bio

Market editor covering companies, deals and strategy in Analytics Digest is a professional daily at Analytics Digest.

73 articles

Read also

« Previous articleNext article »