← Back to Leaderboard
ANVIDIA

NVIDIA/auto-ontology

An ontology framework that grounds agent-generated SQL in reviewed business definitions

View on GitHub ↗
Engineering Health (Methodology)
A+ · 97/100
Maintenance Activity
● Updated today
Latest Release
v1.3.0
Commercial License Check
Apache-2.0 · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption22/25
Release Cadence20/20
License Clarity20/20
DockerSelf-HostedMCPAPI
Total Stars
★ 19,092
24h Growth
+98
7d Growth
+3,685
Forks
1,730

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

NVIDIA/auto-ontology Star History (2026-05-19 - 2026-12-04) ALL-TIME STAR HISTORY (2026-05 – 2026-12) +19.1k in 199d · avg +96/day 20.2k 10.1k 0 2026-05-19: ★ 12026-06-06: ★ 12026-06-20: ★ 12026-07-04: ★ 32026-07-18: ★ 32026-08-01: ★ 42026-08-15: ★ 52026-08-29: ★ 62026-09-12: ★ 72026-09-26: ★ 72026-10-10: ★ 212026-10-24: ★ 1052026-11-06: ★ 9,3232026-11-19: ★ 13,9462026-12-04: ★ 19,092 ★ 19.1k 2026-05 2026-08 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

Auto Ontology separates semantic compilation from question answering. Ingestion collects catalog metadata, including keys, views, and query history. Once compilation is enabled, it profiles source data with SQL and uses models to draft terms, descriptions, and relationship candidates. Inferred links are checked against the data, and domain experts refine and certify the draft. At query time, the answering agent retrieves definitions, follows relationships to identify joins, and checks generated SQL against the catalog and retrieved definitions.

The Python server manifest includes FastAPI, Pydantic, and psycopg with pooling; the Compose stack uses PostgreSQL 17 with pgvector for semantic indexing. The quickstart separates the web app, backend, and ingestion service. The integration boundary is the ontology exposed through MCP, CLI, and API: MCP lets an external agent inspect terms, mappings, and SQL attributes or delegate a question to the deployed answering agent.

Key Capabilities & Differentiators

The ontology connects business terms and synonyms to physical tables and columns, join paths, reviewed metric SQL, source lineage, and certification status. It can incorporate existing semantic models, and Apache Ossie provides a portability path. The current focus is structured analytics, with 11 documented source engines including PostgreSQL, Snowflake, BigQuery, Trino, and DuckDB. Analysts can inspect generated SQL, and MCP question responses also include returned rows.

Four model roles separate reasoning, non-reasoning work, embeddings, and reranking. An NVIDIA API key selects Nemotron 3.5 NIM defaults; self-hosted NIM and OpenAI-compatible endpoints are configurable. Choose models with structured-output support and use the same embedding model for ingestion and querying. A notable distinction: reranking assigns bridge-table SQL attributes to terms during compilation; it does not rerank results during answering.

Trade-offs & Limitations

Compared with direct schema-to-SQL, an ontology can supply business definitions and join constraints that a schema alone cannot express, at the cost of catalog ingestion, profiling, index maintenance, and expert review. Compared with using an existing semantic layer alone, Auto Ontology adds agent-facing discovery and answerability checks; it complements that layer rather than making a migration necessary. Reviewed metric SQL and query checks make answers easier to audit, but they do not guarantee that an agent selected the right definition or produced a correct answer.

Use auto-ontology-eval to compare the same model on a fixed question set with and without the ontology. Prioritize real business questions and domain-verified reference SQL; track answer accuracy, tool calls, and token consumption. Treat endpoint selection as a data-governance decision as well as a cost and latency decision. KumoRFM predictions are off by default; enabling them allows source table rows to be sent to the configured prediction endpoint, so review that data flow separately.

Hardware & Deployment Guide

The server manifest targets Python 3.12 or 3.13. The sample Compose path requires Docker Compose v2, uv for the database seed step, and an NVIDIA API key for the default model path. It starts PostgreSQL/pgvector, loads Wide World Importers using the separate evaluation repository, then starts the remaining services. Semantic compilation must be enabled in settings. Helm deployment is covered in DEPLOYMENT.md. Compose publishes the web app, backend, ingestion service, pgAdmin, and PostgreSQL on the host; replace sample credentials and restrict access before deploying beyond a trusted machine.

Self-hosting the app does not make it offline: inference is routed to configured model endpoints. With hosted inference, size the app and PostgreSQL for ingestion, index size, and concurrency; with self-hosted inference, size model serving separately for the chosen models and concurrency. The listed v1.3.0 release moved text-to-SQL from LangGraph to a single ReAct agent and was published to the public NGC Catalog. The project manifest identifies itself as 1.4.0, so pin and verify the intended artifact rather than treating the checkout and listed release as interchangeable.

Semantic model: Concepts and synonyms, table and column mappings, relationships, reviewed SQL metrics, lineage, and certification
Catalog compilation: SQL profiling and data checks for inferred relationships, with PostgreSQL/pgvector indexing for semantic retrieval
Answering loop: ReAct text-to-SQL in v1.3.0, catalog and definition checks, and generated SQL returned for inspection
Model configuration: Separate reasoning, non-reasoning, embedding, and reranking roles; reranking is used in compilation, not answering
Agent interfaces: Permission-scoped read-only MCP tools and a token-authenticated REST endpoint with server-sent events
Evaluation: Fixed-question comparison with and without the ontology, using the same model and domain-verified reference answers
Best For

Data platform teams rolling out agentic analytics across multiple databases, with domain owners available to certify definitions and a reference question set to measure accuracy.

Skip If

You mainly need unstructured document retrieval, a single well-understood database already meets your text-to-SQL needs, or no one can own metric certification and evaluation.

Reviewed on 2026-12-04 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

DockerSelf-HostedMCPAPI
docker compose up -d --wait postgres
   git clone https://github.com/NVIDIA/auto-ontology-eval.git ../auto-ontology-eval
   (cd ../auto-ontology-eval && uv sync && cp .env.example .env && \
     POSTGRES_PASSWORD='<the same password>' \
     uv run python scripts/seed/seed_wwi.py --database-name wideworldimporters --drop)

Comparison vs. Top RAG, Data & Memory Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
auto-ontology ★19.1k+3.7kPythonApache-2.0An ontology framework that grounds agent-generated SQL in reviewed business defi
llama_index53.1k+104PythonMITA modular Python SDK for document ingestion, indexing, and RAG
langextract39.5k+85PythonApache-2.0Python SDK for extracting structured data with traceable source spans
pathway61.9k+10Python—Python pipelines on a Rust dataflow engine for streaming ETL and live RAG

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/NVIDIA/auto-ontology.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

NVIDIA/auto-ontology Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about auto-ontology

Should I integrate through MCP or REST?

Use MCP when the agent needs to discover terms, inspect mappings or reviewed SQL, check whether a question is answerable, and request answers through read-only tools operating under the signed-in user's permissions. Use POST /api/chat/completions when your application already owns the interaction and needs a token-authenticated server-sent event stream carrying the answer and generated SQL.

Does the stack need a GPU, and what drives resource usage?

With hosted model endpoints, the application stack does not need a local GPU to serve those models. Size the web app, API, ingestion service, and PostgreSQL/pgvector for catalog size, embedding volume, and concurrency; monitor source query load separately. For self-hosted inference, GPU and VRAM requirements depend on the selected models, serving configuration, and concurrency. There is no single hardware minimum for both paths.

Can we run it commercially or keep it inside our environment?

The Python project is Apache-2.0 licensed, which permits commercial use and self-hosting subject to the license terms. Review separate terms for model endpoints, retrieved materials, and third-party components. For an internal deployment, map which metadata and data leave your environment: hosting the application yourself does not localize model inference, and enabling KumoRFM adds a separate path that sends source rows to its configured endpoint.

When is it preferable to a semantic layer or a direct text-to-SQL agent?

Keep an existing semantic layer when it already provides the governed definitions and query interface you need. Auto Ontology is a better fit when agents must resolve business terminology, discover mappings and joins across systems, check coverage, and inspect generated SQL. Compared with direct schema-to-SQL, the added catalog and certification work is worthwhile only if paired evaluations show more accurate business answers or lower tool and token usage without sacrificing accuracy.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining NVIDIA/auto-ontology? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature NVIDIA/auto-ontology on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare