TopGit
GitHub Repo Review

NVIDIA Auto Ontology: semantic layer review

NVIDIA/auto-ontology
NTopGit review image for NVIDIA/auto-ontology
Review by Topgit.dev for NVIDIA/auto-ontology, with GitHub repository stats and README context.
Quick verdict

NVIDIA Auto Ontology is a serious self-hosted semantic layer for teams tired of unreliable agent-generated SQL. It is worth operating when certified definitions, source lineage, and answerability checks justify the added infrastructure.

Stars
โ˜… 9.2k
Forks
โ‘‚ 730
Contributors
๐Ÿ‘ฅ 13
Language
Python
License
Apache-2.0
Topic
โ€”
Updated
Nov 2026
Homepage
โ€”

Why agent data queries need context

Enterprise agents can query databases quickly without understanding whether a metric means the same thing in every system. NVIDIA Auto Ontology addresses the missing business context: approved terms, reviewed SQL expressions, table relationships, lineage, and whether the connected data can answer a question at all.

What Auto Ontology does

NVIDIA Auto Ontology is a self-hosted semantic layer that compiles database metadata into a knowledge graph. It generates terms, relationships, and SQL attributes, lets people certify them, then retrieves them to answer questions with checked SQL. The resulting context can be exposed through a web UI, REST API, CLI, or MCP.

Core capabilities and interfaces

  • โœ“Compiles relational metadata into terms, join relationships, and reusable SQL attributes stored with pgvector embeddings.
  • โœ“Runs an answerability check before querying, then repairs SQL when validation against the source data fails.
  • โœ“Returns answers with the generated SQL and the steps used, giving reviewers a concrete audit trail.
  • โœ“Offers a web interface for chat, semantic catalog review, analytics, connection settings, and model import or export.
  • โœ“Exposes read-only ontology operations through MCP, question answering through the API, and local operations through the CLI.
  • โœ“Connects to PostgreSQL, MySQL, Databricks, Snowflake, ClickHouse, Trino, Apache Kyuubi, HeavyDB, DuckDB, and SQLite.
  • โœ“Imports and exports semantic definitions as Apache Ossie YAML.
How this repository's GitHub stars have grown over time. Source: star-history.com.View the star history โ†—

Enterprise analytics and agent workflows

  • โ€ขTurn recurring analytics questions into queries that reuse certified revenue, margin, and other SQL definitions.
  • โ€ขLet an agent determine that a requested metric is missing before attempting an unsupported calculation.
  • โ€ขGive analysts an interface for reviewing terms, column mappings, relationships, and compiled SQL attributes.
  • โ€ขExpose governed enterprise context to MCP-compatible agents while preserving user permissions.
  • โ€ขTrace an answer back to its SQL, mapped source columns, ontology terms, and source data.
  • โ€ขUnify terminology across connected relational systems through a shared semantic catalog and knowledge graph.

Run the full stack locally

Run the full stack locally with Docker Compose, Compose v2, uv, and an NVIDIA API key. Clone the repository, copy `.env.example` to `.env`, set the model key, application secrets, admin password, Postgres password, and sample database connection string, then start Postgres and seed Wide World Importers from the separate `auto-ontology-eval` repository. Start Postgres first. Build and launch the remaining services with `docker compose up -d --build`, open `http://localhost:3000`, sign in with the configured admin credentials, and enable Semantic Compilation under Settings.

Strengths

  • โœ“Puts reviewed business definitions, table relationships, and SQL expressions into one inspectable semantic graph.
  • โœ“Makes uncertainty visible by checking whether connected sources cover a question before producing an answer.
  • โœ“Shows SQL and execution steps, making results easier for analysts to verify than an unexplained natural-language response.
  • โœ“Supports both interactive certification and programmatic access through the API, CLI, and MCP.
  • โœ“Preserves semantic-layer intent across several relational database engines.

Operational, privacy, and security limits

  • โ–ณThe complete stack requires Postgres, Docker, model endpoints, configuration, and a separate evaluation repository for the documented sample-data setup.
  • โ–ณThe backend trusts the user identity forwarded in `x-auto-ontology-user-id`, while ingestion endpoints have no authentication of their own; ports 3001 and 3002 must remain on a private network.
  • โ–ณUsing KumoRFM can upload connected tables to a hosted service, so teams must review the transferred data and configure the table and row limits before enabling predictions.
  • โ–ณThe project uses the Apache-2.0 license but currently does not accept external contributions; integration requests and bug reports are handled through issues.
  • โ–ณThe deployment is operationally heavier than a plain Python package because it includes a frontend, backend, ingestion worker, MCP server, Postgres, and optional Vault.

Where Auto Ontology fits

WrenAI โ€” a directly comparable text-to-SQL project for teams that want another semantic querying layer to evaluate.Vanna โ€” a text-to-SQL option worth comparing when the priority is programmatic generation against connected data.DB-GPT โ€” another database-oriented agent framework to assess when agents need broader database interaction patterns.DataHub โ€” a semantic catalog and metadata-management option to compare when governance and discovery matter more than generated answers.

Frequently asked questions

What is NVIDIA Auto Ontology?

NVIDIA Auto Ontology is a self-hosted semantic layer that compiles database metadata into terms, relationships, and reviewed SQL attributes. It stores this context with pgvector embeddings and lets agents query the resulting knowledge graph through a UI, API, CLI, or MCP.

What does Auto Ontology do for AI agents?

NVIDIA Auto Ontology gives agents business definitions, table joins, reusable SQL expressions, data provenance, and answerability checks. The agent retrieves this context, generates SQL, validates it against source data, and returns the answer with the SQL and steps taken.

Which databases can Auto Ontology connect to?

NVIDIA Auto Ontology supports PostgreSQL, MySQL, Databricks, Snowflake, ClickHouse, Trino, Apache Kyuubi, HeavyDB, DuckDB, and SQLite. DuckDB and SQLite are configured only through connection strings.

How do you use Auto Ontology with an AI agent?

Run the NVIDIA Auto Ontology MCP server against a deployment, connect an MCP client to its endpoint, and sign in. The agent can check readiness, search ontology terms, test answerability, ask questions, and receive the answer, SQL, and rows.

Can Auto Ontology be used commercially?

Yes. Under the Apache License 2.0, NVIDIA Auto Ontology is distributed. The README additionally indicates that bundled, linked, or otherwise used third-party open-source components have a separate listing in `THIRD_PARTY_NOTICES.md`.

Does Auto Ontology accept external contributions?

No. NVIDIA Auto Ontology currently does not accept external pull requests. The maintained code is managed by the project team, which invites integration requests and bug reports through GitHub issues.

Who should try it โ€” and who should skip

Try NVIDIA Auto Ontology if a team operates important relational data and needs agents to distinguish certified business meaning from a plausible but incorrect query. Skip it if the use case only needs an informal chat interface over one small database, or if the organization cannot operate Postgres, secure the service boundary, and maintain certified semantic definitions.

Source & attribution

Source: [NVIDIA/auto-ontology on GitHub](https://github.com/NVIDIA/auto-ontology), including its README, quickstart, architecture, MCP documentation, and licensing notices.

GitHub data ยท last synced Nov 5, 2026Reviewed by Henry
โ† Back to TopGit

Curious whether auto-ontology is right for you?

Let ChatGPT, Claude, or Perplexity look into it โ€” click below and see what AI actually says about auto-ontology.

GitHub