Transform your data into a semantic graph for better insights and queries.
NVIDIA's Auto Ontology framework helps businesses create a structured semantic layer over their data, making it easier to query and understand complex datasets. By automatically generating ontologies from metadata, it ensures that users can ask questions in natural language and receive accurate, context-aware answers. This tool is particularly beneficial for analysts and data teams looking to streamline their data workflows and improve decision-making processes.
As organizations increasingly rely on data-driven decisions, the need for accurate and contextual data retrieval grows. Auto Ontology fills the gap by providing a robust framework that enhances the reliability of agent-based analytics, making it a timely solution for businesses navigating complex data landscapes.
You will install NVIDIA's Auto Ontology, configure it with a sample database, and run a query to retrieve meaningful insights.
You need Docker with Docker Compose installed on your machine.
docker --version && docker-compose --versionbrew install --cask dockersudo apt install docker.io docker-composewinget install Docker.DockerDesktopThis file contains sensitive information like your API key and database credentials.
# Auto Ontology Environment Configuration
DEFAULT_MODELS_API_KEY=nvapi-<your_api_key>
AUTH_SECRET=<your_secret>
APP_URL=http://localhost:3000
POSTGRES_PASSWORD=<your_password>
CONNECTION_STRINGS=postgresql://postgres:<your_password>@postgres:5432/wideworldimporters
AUTO_ONTOLOGY_ADMIN_PASSWORD=<your_password>
PGADMIN_PASSWORD=<your_password>Ensure you have Docker and Docker Compose installed. Clone the repository and set up the environment variables.
git clone https://github.com/NVIDIA/auto-ontology.git && cd auto-ontology
cp .env.example .envEdit the .env file to include your NVIDIA API key and set up PostgreSQL connection details.
echo 'DEFAULT_MODELS_API_KEY=nvapi-<your_api_key>' >> .env
echo 'POSTGRES_PASSWORD=<your_password>' >> .env
echo 'CONNECTION_STRINGS=postgresql://postgres:<your_password>@postgres:5432/wideworldimporters' >> .envStart the PostgreSQL service, load the sample database, and then build and run the entire stack.
docker compose up -d --wait postgres
git clone https://github.com/NVIDIA/auto-ontology-eval.git ../auto-ontology-eval
(cd ../auto-ontology-eval && uv sync && cp .env.example .env && POSTGRES_PASSWORD='<your_password>' uv run python scripts/seed/seed_wwi.py --database-name wideworldimporters --drop)
docker compose up -d --buildOpen your browser and navigate to http://localhost:3000 to interact with the Auto Ontology interface.
Open http://localhost:3000You input a natural language query into the Auto Ontology interface. The system processes the query, retrieves the relevant data from the database, and generates an SQL statement to fetch the results. You receive an accurate answer along with the SQL used to derive it.
Navigate to Chat in the Auto Ontology interface and input your query.You ask a question that the system cannot answer due to missing data. The agent informs you that it cannot compute the requested metric and suggests alternatives. This helps you understand data gaps and refine your queries.
Input your query in the Chat section of the Auto Ontology interface.You explore the semantic graph generated by Auto Ontology, which visually represents the connections between different data entities. This allows you to understand how data points interact and relate to each other.
Use the Auto Ontology UI to navigate to the semantic graph section.Analysts can quickly generate reports by querying sales data through natural language, saving time on manual data extraction.
Ensures that all business terms are consistently defined and understood across the organization, reducing miscommunication.
Marketers can easily query customer data to identify trends and segment audiences for targeted campaigns.
Product managers can ask specific questions about feature usage and get immediate insights to inform product decisions.
Educators can analyze student performance data to refine curricula based on actual learning outcomes.
Start by downloading the Auto Ontology code to your local machine. This is the foundation for your setup.
git clone https://github.com/NVIDIA/auto-ontology.gitCreate a .env file to configure your environment settings, including API keys and database passwords.
cp .env.example .envOpen the .env file and add your NVIDIA API key to enable the necessary features of Auto Ontology.
echo 'DEFAULT_MODELS_API_KEY=nvapi-<your_api_key>' >> .envLaunch the PostgreSQL service to prepare the database for use with Auto Ontology.
docker compose up -d --wait postgresFinally, build and start the entire application stack to make Auto Ontology operational.
docker compose up -d --buildgit clone https://github.com/NVIDIA/auto-ontology.git && cd auto-ontology
cp .env.example .env
Fix: Ensure that POSTGRES_PASSWORD in your .env file is set to a valid password. Fix: Run 'docker compose logs' to check for errors and resolve any issues before restarting. Fix: Verify that DEFAULT_MODELS_API_KEY is set correctly in your .env file. Enter your email once to unlock OS prerequisites, .env config template, 4-phase hands-on tutorial, all real-world use cases, troubleshooting fixes & every Tool Lab prompt free.