NVIDIA's Auto-Ontology: a context layer for more reliable AI agents
Auto-Ontology is an open-source Python framework from NVIDIA for building semantic, graph-based reasoning layers over enterprise data. It compiles database metadata into an ontology — business terms mapped to columns, reviewed SQL for measures, and relationships between tables — so that agents querying the data know where it lives, what it means, and how to use it. Agents query through the ontology rather than pasting raw schemas into their context window, and people review and certify definitions in a web UI or through an API.
Compared with putting a schema in the context window, the ontology approach scales tokens only to the terms and tables a question touches, resolves relationships and reviewed SQL expressions for joins and measures, and includes an answerability check so unanswerable questions prompt the agent to ask for clarification instead of being answered wrongly. Context is exposed to any agent harness through MCP, agent skills, and a REST API.
A companion repository, auto-ontology-eval, measures performance on benchmarks including BIRD, BEAVER, FDABench-Lite, and Wide World Importers, comparing a control arm (schema in the prompt) against the ontology-backed agent, scored by a deterministic verifier using execution match. The report produces the accuracy difference and lists which questions the ontology fixed and broke. A quickstart runs the stack with Docker Compose against Microsoft's Wide World Importers sample database and requires Docker with Compose v2, uv, and an NVIDIA API key from build.nvidia.com.
Sources
-
GitHub Trending
NVIDIA/auto-ontology
Terms
- ontology — A formal map of concepts in a domain and the relationships between them, here compiled from database metadata.
- MCP — Model Context Protocol, a standard way to expose tools and context to AI agents.
- gold SQL — A reference SQL query paired with a benchmark question, used to check correctness of a model's generated query.
- harness — The runtime setup that connects an AI model to tools and runs its workflow.





