{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "nvidia-auto-ontology--ask-your-database-questions-with-checked-sql",
 "repo": "NVIDIA/auto-ontology",
 "repo_url": "https://github.com/NVIDIA/auto-ontology",
 "repo_slug": "nvidia-auto-ontology",
 "title": "Ask business questions of a database and get the SQL behind each answer",
 "page_title": "How to ask business questions of a database and get the SQL behind each answer with Auto Ontology",
 "summary": "Run the Docker Compose quickstart against the sample sales database and ask questions in Chat.",
 "who": "An analytics engineer who wants a natural-language front end that shows its work.",
 "problem": "Text-to-SQL answers are hard to trust when you cannot see which terms and joins produced the number.",
 "outcome": "Answers that come back with their SQL and the steps that produced them, so you can check the result against the source.",
 "steps": [
  "Run `git clone https://github.com/NVIDIA/auto-ontology.git && cd auto-ontology` then `cp .env.example .env`",
  "Set DEFAULT_MODELS_API_KEY and replace each default password in `.env`",
  "Run `docker compose up -d --wait postgres` and load the Wide World Importers sample with the seed script from auto-ontology-eval",
  "Run `docker compose up -d --build`, open http://localhost:3000 and turn on Settings, Semantic Compilation",
  "Ask a question in Chat and read the returned SQL and steps"
 ],
 "agent_prompt": "Clone NVIDIA/auto-ontology, copy `.env.example` to `.env`, set DEFAULT_MODELS_API_KEY and new passwords, start Postgres with `docker compose up -d --wait postgres`, load the sample data, then run `docker compose up -d --build`. Turn on Semantic Compilation and ask: <your question>. Show me the SQL it ran.",
 "agents": [
  "claude-code",
  "codex",
  "cursor"
 ],
 "difficulty": "Advanced",
 "time": "1 hour",
 "basis": "readme",
 "caveat": "The README notes the project is currently not accepting external contributions.",
 "category": "Data and analytics",
 "tags": [
  "Data and analytics"
 ],
 "lang": "python",
 "requirements": [
  "Docker with Compose v2",
  "uv",
  "An NVIDIA API key (nvapi-...) from build.nvidia.com, or self-hosted NIMs",
  "A Postgres or other supported database to connect"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "Compose publishes Postgres, pgAdmin and the web app on the host, so replace every default password before starting it and keep your nvapi key out of shared files."
  }
 ],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/nvidia-auto-ontology/ask-your-database-questions-with-checked-sql/",
 "md": "https://dedupedai.com/use-cases/nvidia-auto-ontology/ask-your-database-questions-with-checked-sql/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/nvidia-auto-ontology--ask-your-database-questions-with-checked-sql.json",
 "api_version": "v1"
}
