How nvidia/auto-ontology works
Auto Ontology builds and serves a semantic context layer over enterprise data. The principal workflow is to connect a database, ingest its catalog, compile business meaning and relationships, then let a user ask a natural-language question that is grounded in the ontology, translated to SQL, executed, and returned with SQL and provenance. The graph also shows catalog management, PII tagging, vector retrieval, and MCP exposure. Some subsystem links reflect README-described capabilities; unsampled implementation details are not asserted.
Components 19
Ingestion and discovery
- Database connectors
auto_ontology/connectors/registry.py - Catalog ingestion
auto_ontology/ingestion_service/ingest.py - Catalog parsing
auto_ontology/catalog/ingest.py - Embedding service
auto_ontology/utils/embedding.py - Vector store
auto_ontology/vdb/postgres.py - PII tagging
auto_ontology/pii_detection/service.py
Ontology and catalog
- Semantic compilation
auto_ontology/semantic/pipeline.py - Ontology catalog
auto_ontology/dal/schema.py - Tags and metadata
auto_ontology/dal/tags.py
Grounded querying
- Text-to-SQL workflow
auto_ontology/retrieval/text_to_sql/main.py - Semantic retrieval
auto_ontology/retrieval/data_access/semantic_search.py
Application platform
- Web interface
frontend/app/chat/page.tsx - Chat API
auto_ontology/server/chat/router.py
Agent exposure
- MCP server
mcp/auto_ontology_mcp/server.py
Other components
- User
- Source databases
- Query database
- NIM inference
- Postgres and pgvector
auto_ontology/infra/postgres.py
Connections 21
- User → Web interface: asks question
README.md - Web interface → Chat API: sends chat
- Chat API → Text-to-SQL workflow: runs workflow
auto_ontology/server/chat/router.py - Text-to-SQL workflow → Semantic retrieval: retrieves context
- Text-to-SQL workflow → NIM inference: translates question
README.md - Text-to-SQL workflow → Query database: executes SQL
README.md - Text-to-SQL workflow → User: returns answer and SQL
README.md - Source databases → Database connectors: provides metadata
README.md - Database connectors → Catalog ingestion: supplies schema
auto_ontology/ingestion_service/ingest.py - Catalog ingestion → Catalog parsing: extracts catalog
auto_ontology/ingestion_service/ingest.py - Catalog ingestion → Embedding service: creates embeddings
auto_ontology/ingestion_service/ingest.py - Embedding service → Vector store: writes vectors
auto_ontology/utils/embedding.py - Catalog ingestion → PII tagging: runs detection
auto_ontology/ingestion_service/ingest.py - PII tagging → Tags and metadata: attaches tags
auto_ontology/pii_detection/service.py - Semantic compilation → Ontology catalog: compiles meaning
README.md - Catalog parsing → Ontology catalog: stores metadata
README.md - Semantic retrieval → Vector store: searches vectors
- Ontology catalog → Postgres and pgvector: persists catalog
README.md - Vector store → Postgres and pgvector: uses pgvector
README.md - User → MCP server: connects agent
README.md - MCP server → Chat API: exposes API