The core problem with agentic analytics isn't speed — it's correctness. An agent that queries the wrong "revenue" definition or ignores data lineage produces confident wrong answers. NVIDIA's newly open-sourced Auto Ontology addresses this directly: it sits between your databases and your agents, building a semantic layer that tells agents what data means, where it came from, and whether a generated query can be trusted against certified definitions.

The library ingests enterprise metadata to generate ontologies, reconciles inconsistent metric definitions across systems (the classic "is this revenue gross or net?" problem), and stores everything in Postgres with pgvector for semantic search. When an agent asks a natural-language question, it gets translated to SQL via NVIDIA NIM inference, validated against certified definitions, and returned with full provenance. Crucially, corrections fed back by users fold into the ontology over time — shared context improves with use.

NVIDIA Auto Ontology: Open-Source Semantic Layer That Gives Agents Trusted Data Context

For builders, the practical entry point is straightforward. Clone the repo, copy .env.example, fill in your NVIDIA API key (from build.nvidia.com), Postgres credentials, and connection strings for Databricks, Postgres, Snowflake, or DuckDB sources, then run docker compose up -d --build. The stack spins up a Next.js frontend on port 3000, a FastAPI backend on 3001, an ingestion worker on 3002, and Postgres with pgvector. Kubernetes deployments are covered in a separate DEPLOYMENT.md. For scripted or agent access, mint API tokens through the UI — they authenticate against the owner's RBAC role and are revocable immediately.

The MCP server integration is particularly relevant if you're building with Cursor or Claude Desktop: point those harnesses at Auto Ontology's MCP endpoint and they can query your structured data through the semantic layer without any custom plumbing. The agent API (POST /api/chat/completions) returns an SSE stream and supports stateful multi-turn conversations via a client-supplied UUID, with the last five turns used as context window.

Default inference uses nvidia/nemotron-3-nano-30b-a3b for NL-to-SQL, nvidia/nemotron-3-embed-1b for embeddings, and nvidia/llama-nemotron-rerank-vl-1b-v2 for reranking — all configurable via environment variable triplets, and swappable for self-hosted NIMs. One important operational note: the FastAPI port is an internal trust boundary and must not be exposed publicly, since the user identity header it receives from the Next.js gateway is not independently verified. The project is Apache 2.0 licensed but is not currently accepting external contributions.