Featured answer
Give me an overview of auto-ontology
Auto-ontology (nvidia/auto-ontology) is an open Python library that builds a context layer from enterprise metadata so AI agents know where data lives, what it means, and whether to trust it. It generates a draft ontology of terms, SQL attributes, and table relationships from connected source databases, and people then certify that draft. The ingestion service in auto_ontology/ingestion_service/main.py builds the first draft, the auto_ontology directory keeps a searchable catalog of each database, and auto_ontology/dal holds every database query behind the catalog, the glossary of Terms, the tags, and the exploration graph. When a question arrives, the agent retrieves candidate terms, columns, and SQL attributes by embedding search, writes SQL from them, checks it against the database, and runs it. The frontend directory holds the Next.js and TypeScript web app for asking questions, browsing the catalog, and changing settings, while alembic holds the Postgres migration history and dev_tools holds scripts run by hand to start the local stack. For a map of the code, the chart lists nine layers across 980 files, with Application holding the most at 441 files, so begin reading with the ingestion service and the auto_ontology/dal directory.
| Layer | Files |
|---|---|
| UI | 43 |
| API | 131 |
| Config | 52 |
| Data | 14 |
| Service | 29 |
| Types | 24 |
| Utility | 67 |
| Application | 441 |
| Docs & Tooling | 9 |
Basis: Inferred · knowledge graph· as of fc43a82