Auto Ontology क्या है?
Auto Ontology एजेंट text-to-SQL के लिए NVIDIA की ontology context layer. यह Retrieval & Knowledge (RAG) टूल्स की RAG Frameworks & Platforms श्रेणी में आता है; ओपन सोर्स है, Python में लिखा गया है और Apache-2.0 लाइसेंस के तहत है। शुरू करने के लिए: repository clone करें.
सारांश
Auto Ontology NVIDIA की एक ओपन सोर्स library है, जो enterprise data क्वेरी करने वाले agents के लिए context layer बनाती है। यह database metadata से ontology जनरेट करती है, मौजूदा ontologies और semantic models को जोड़ती है, और अलग-अलग सिस्टम में मेल न खाने वाली metric व entity definitions को एक जैसा करती है। Agents इस layer की मदद से समझते हैं कि डेटा कहाँ है, उसका क्या मतलब है और उसे कैसे इस्तेमाल करना है। लक्ष्य भरोसेमंद agentic analytics है: अगर revenue का सवाल जल्दी जवाब हो जाए पर संख्या गलत हो, तो उसका कोई फ़ायदा नहीं। जनरेट हुई queries को certified definitions और lineage से जाँचा जाता है, और हर जवाब के साथ उसका provenance भी आता है।
यह प्रोजेक्ट किसी एक package के बजाय पूरा stack है। Next.js वेब UI chat, analysis, data catalog, analytics और settings संभालता है, साथ ही Better Auth के ज़रिए authentication और role-based access भी। LangChain पर बना FastAPI backend chat और natural-language-to-SQL flow, catalog और datasource APIs चलाता है। एक ingestion worker tabular data को ingest करके embeddings लिखता है, और pgvector वाला Postgres app metadata, catalog और ontology, तथा vectors स्टोर करता है। HashiCorp Vault वैकल्पिक रूप से connection credentials रख सकता है। Source databases Databricks, Postgres, Snowflake या DuckDB हो सकते हैं।

Inference NVIDIA NIM endpoints के ज़रिए होता है, या तो hosted NVIDIA API catalog से या self-hosted NIMs से। Template reasoning के लिए Nemotron 3 Nano 30B-A3B, embeddings के लिए Nemotron 3 Embed 1B और reranking के लिए Llama Nemotron Rerank VL 1B v2 डिफ़ॉल्ट रूप से इस्तेमाल करता है। हर role (reasoning, non-reasoning, embedding, rerank) एक endpoint, API key और model triplet से सेट होता है, जो shared defaults पर वापस आ जाता है। यह प्रोजेक्ट Apache-2.0 license के तहत है और बाहरी contributions स्वीकार नहीं करता।
यह क्या करता है
- database metadata से enterprise ontologies जनरेट करता है, मौजूदा ontologies और semantic models को जोड़ता है, और सिस्टम के बीच असंगत definitions को मिलाता है
- Natural-language querying: सवाल SQL बन जाते हैं, जो जुड़े हुए Databricks, Postgres, Snowflake या DuckDB sources पर चलते हैं
- जनरेट हुई queries को certified definitions और lineage से validate करता है, और हर जवाब के साथ provenance लौटाता है
- MCP server, CLI और streaming, multi-turn chat completions वाले authenticated REST API के ज़रिए agent harnesses को context layer देता है
- SSO के साथ Better Auth login, RBAC और per-user API tokens, और connection credentials के लिए वैकल्पिक HashiCorp Vault
- स्थानीय stack के लिए Docker Compose, या Kubernetes के लिए Helm chart, साथ में setup, management और querying के लिए तैयार agent skills
शुरू करें
README में स्थानीय तरीका Docker Compose है। आपको Compose v2 वाला Docker, NIM inference के लिए build.nvidia.com से NVIDIA API key (nvapi-…), और जिस database को query करना है उसकी connection details चाहिए। Kubernetes deployments के लिए DEPLOYMENT.md में बताया गया Helm chart इस्तेमाल होता है।
Repository clone करें
प्रोजेक्ट clone करें और उसके अंदर जाएँ।
git clone https://github.com/NVIDIA/auto-ontology.git auto_ontology && cd auto_ontologyEnvironment file बनाएँ
Template कॉपी करें और Postgres credentials, DEFAULT_MODELS_API_KEY और CONNECTION_STRINGS भरें। AUTH_SECRET और APP_URL ज़रूरी हैं: इनके बिना हर page Better Auth की "default secret" error के साथ fail हो जाएगा।
cp .env.example .env
# edit .envStack build करें और शुरू करें
इससे backend और frontend images build होती हैं और Postgres तथा pgAdmin शुरू होते हैं। एक one-shot migration job database schema sync करता है, फिर backend, ingestion service और frontend शुरू होते हैं।
docker compose up -d --buildUI खोलें और data connect करें
http://localhost:3000 खोलें। Backend API :3001 पर और pgAdmin :5050 पर सुनता है। UI में जोड़े गए connections, Vault कॉन्फ़िगर न होने पर, Postgres में plaintext में स्टोर होते हैं। CONNECTION_STRINGS सिर्फ़ fallback है, जो तब इस्तेमाल होता है जब UI में कोई connection न हो।
API token से script के ज़रिए query करें
User menu में API Tokens खोलें और token बनाएँ। यह token सिर्फ़ एक बार दिखता है। इसे किसी भी /api call पर x-api-key के रूप में भेजें। POST /api/chat/completions step, result या error events stream करता है और अंत में [DONE] भेजता है। बातचीत का thread जारी रखने के लिए conversation_id UUID पास करें।
import os
import requests
session = requests.Session()
session.headers["x-api-key"] = os.environ["AUTO_ONTOLOGY_API_TOKEN"]
terms = session.get("https://auto_ontology.example.com/api/terms").json()
answer = session.post(
"https://auto_ontology.example.com/api/chat/completions",
json={"question": "How many orders shipped last week?"},
).json()MCP के ज़रिए agent कनेक्ट करें
MCP server public API का HTTP client है और उसके अपने credentials नहीं हैं। Users Auto Ontology के अपने login से sign in करते हैं, और हर call उसी user की permissions के साथ चलती है। इसे अपने deployment पर चलाएँ, फिर Cursor, Claude Desktop या किसी अन्य MCP client को server के /mcp endpoint की ओर इंगित करें।
AUTO_ONTOLOGY_API_URL=http://localhost:3000 \
uvx --from "git+https://github.com/NVIDIA/auto-ontology.git#subdirectory=mcp" auto-ontology-mcp
# client config
{
"mcpServers": {
"auto-ontology": { "url": "https://auto-ontology-mcp.example/mcp" }
}
}कमांड और कोड प्रोजेक्ट के अपने दस्तावेज़ों से लिए गए हैं — हमेशा जांचें आधिकारिक repo ताज़ा जानकारी के लिए।
कब इस्तेमाल करें
- Analytics agent को SQL लिखने से पहले "active customer" जैसे metrics की भरोसेमंद business definitions दें
- Databricks, Snowflake और Postgres की टकराती metric definitions को एक governed semantic catalog में मिलाएँ
- MCP के ज़रिए warehouse data को Cursor, Claude Desktop या internal agent के लिए खोलें, और हर user की role-based permissions बनाए रखें
- NVIDIA NIM models पर, hosted या on-prem, enterprise databases में self-hosted natural-language querying चलाएँ
How Auto Ontology compares
Auto Ontology alongside other open-source rag frameworks & platforms tools AI/TLDR tracks, ranked by GitHub stars.
| टूल | स्टार | यह क्या करता है |
|---|---|---|
| Dify | ★ 162k | LLM और RAG ऐप विज़ुअल कैनवास पर बनाने के लिए ओपन सोर्स प्लेटफ़ॉर्म |
| graphify | ★ 156k | कोड, डॉक्स, PDF और इमेज वाले फ़ोल्डर को एक ऐसे नॉलेज ग्राफ़ में बदलें जिसमें query की जा सके |
| RAGFlow | ★ 95.1k | गहरी डॉक्यूमेंट समझ और स्रोत से जुड़े, ट्रेस किए जा सकने वाले उद्धरणों वाला ओपन सोर्स RAG engine |
| Context7 | ★ 65.8k | नवीनतम, वर्ज़न-विशिष्ट लाइब्रेरी डॉक्स सीधे आपके कोडिंग एजेंट के प्रॉम्प्ट में |
| Pathway | ★ 61.9k | डेटा बदलने के साथ-साथ अपडेट रहने वाली Python ETL और RAG पाइपलाइन |
| LightRAG | ★ 41k | ग्राफ़-आधारित RAG, जो आपके दस्तावेज़ों को क्वेरी योग्य नॉलेज ग्राफ़ में बदल देता है |
| PageIndex | ★ 40.9k | Vectorless, reasoning-based RAG जो लंबे डॉक्युमेंट से tree index बनाता है |
| Auto Ontology | ★ 18.9k | एजेंट text-to-SQL के लिए NVIDIA की ontology context layer |
