NVIDIA/auto-ontology
An ontology framework that grounds agent-generated SQL in reviewed business definitions
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & 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.
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.
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.
Quick Start & Installation
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 →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| auto-ontology ★ | 19.1k | +3.7k | Python | Apache-2.0 | An ontology framework that grounds agent-generated SQL in reviewed business defi |
| llama_index | 53.1k | +104 | Python | MIT | A modular Python SDK for document ingestion, indexing, and RAG |
| langextract | 39.5k | +85 | Python | Apache-2.0 | Python SDK for extracting structured data with traceable source spans |
| pathway | 61.9k | +10 | Python | — | 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.
curl -sL https://repoforai.com/repo/NVIDIA/auto-ontology.md
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?
Does the stack need a GPU, and what drives resource usage?
Can we run it commercially or keep it inside our environment?
When is it preferable to a semantic layer or a direct text-to-SQL agent?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
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