How databrickslabs/ontos works
Ontos is a Databricks Unity Catalog data-governance platform: users work through a React application to organize and govern data products, contracts, assets, and teams, with APIs supporting reviews, search, and other governance capabilities. Its backend separates routes, business-logic managers, and persistence; integrations include Unity Catalog and LLM services. The README documents the broader product capabilities, while the sampled source directly demonstrates review and LLM-search paths. Other feature branches are included from the README and tree, but their internal calls are not inferred.
Main entry points: llm_search_manager.py LLM search manager · app.tsx React application · data_asset_reviews_manager.py Review manager · data_asset_reviews_routes.py Review endpoints
Components 25
User interface
- React application
src/frontend/src/app.tsx - Asset review UI
src/frontend/src/components/data-asset-reviews/asset-review-editor.tsx - Conversational search UI
src/frontend/src/components/search/llm-search.tsx
Backend API
- FastAPI application
src/backend/src/app.py - Review endpoints
src/backend/src/routes/data_asset_reviews_routes.py - LLM search endpoints
src/backend/src/routes/llm_search_routes.py - Application configuration
src/backend/src/common/config.py
Governance capabilities
- Data contracts
src/backend/src/controller/data_contracts_manager.py - Data products
src/backend/src/controller/data_products_manager.py - Domains and teams
src/backend/src/controller/data_domains_manager.py - Compliance automation
src/backend/src/controller/compliance_manager.py - Review manager
src/backend/src/controller/data_asset_reviews_manager.py - Semantic models
src/backend/src/controller/semantic_models_manager.py
Search and integrations
- LLM search manager
src/backend/src/controller/llm_search_manager.py - Databricks LLM client
src/backend/src/common/llm_client.py - Secure LLM service
src/backend/src/common/llm_service.py - Unity Catalog client
src/backend/src/common/workspace_client.py - MCP tools
src/backend/src/tools/registry.py
Persistence
- Review repository
src/backend/src/repositories/data_asset_reviews_repository.py - Conversation sessions
src/backend/src/repositories/llm_sessions_repository.py - PostgreSQL / Lakebase
src/backend/src/common/database.py - Review records
src/backend/src/db_models/data_asset_reviews.py - LLM session records
src/backend/src/db_models/llm_sessions.py
Other components
- Governance user
- Databricks serving
Connections 23
- Governance user → React application: uses
README.md - React application → Asset review UI: routes to
src/frontend/src/app.tsx - React application → Conversational search UI: routes to
- Asset review UI → Review endpoints: submits reviews
- Conversational search UI → LLM search endpoints: sends chat
- FastAPI application → Review endpoints: registers routes
src/backend/src/app.py - FastAPI application → LLM search endpoints: registers routes
src/backend/src/app.py - Review endpoints → Review manager: calls
src/backend/src/routes/data_asset_reviews_routes.py - Review manager → Review repository: uses
src/backend/src/controller/data_asset_reviews_manager.py - Review manager → Semantic models: checks concepts
src/backend/src/controller/data_asset_reviews_manager.py - Review repository → Review records: maps records
src/backend/src/repositories/data_asset_reviews_repository.py - LLM search endpoints → LLM search manager: calls
src/backend/src/routes/llm_search_routes.py - LLM search manager → Conversation sessions: loads sessions
src/backend/src/controller/llm_search_manager.py - LLM search manager → Databricks LLM client: creates client
src/backend/src/controller/llm_search_manager.py - Secure LLM service → Databricks LLM client: creates client
src/backend/src/common/llm_service.py - Databricks LLM client → Databricks serving: connects to
src/backend/src/common/llm_client.py - LLM search manager → MCP tools: uses tools
src/backend/src/controller/llm_search_manager.py - Conversation sessions → LLM session records: stores
src/backend/src/repositories/llm_sessions_repository.py - Review records → PostgreSQL / Lakebase: persisted in
- LLM session records → PostgreSQL / Lakebase: persisted in
src/backend/src/db_models/llm_sessions.py - Data products → Unity Catalog client: Unity Catalog integration
- Data contracts → Unity Catalog client: Unity Catalog integration
- Domains and teams → Unity Catalog client: Unity Catalog integration