nvidia-nat-vanna 1.4.0a20251124__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,150 @@
1
+ Metadata-Version: 2.4
2
+ Name: nvidia-nat-vanna
3
+ Version: 1.4.0a20251124
4
+ Summary: Vanna-based Text-to-SQL integration for NeMo Agent Toolkit with Databricks support
5
+ Keywords: ai,agents,text2sql,vanna,sql,database
6
+ Classifier: Programming Language :: Python
7
+ Classifier: Programming Language :: Python :: 3.11
8
+ Classifier: Programming Language :: Python :: 3.12
9
+ Classifier: Programming Language :: Python :: 3.13
10
+ Requires-Python: <3.14,>=3.11
11
+ Description-Content-Type: text/markdown
12
+ Requires-Dist: databricks-sql-connector~=4.1.4
13
+ Requires-Dist: databricks-sqlalchemy~=2.0.8
14
+ Requires-Dist: langchain-core~=0.3.76
15
+ Requires-Dist: nvidia-nat==v1.4.0a20251124
16
+ Requires-Dist: nvidia-nat-langchain~=1.4
17
+ Requires-Dist: pandas~=2.0
18
+ Requires-Dist: pymilvus[model]~=2.5.11
19
+ Requires-Dist: sqlglot~=26.33.0
20
+ Requires-Dist: vanna[chromadb]~=0.7.9
21
+
22
+ <!--
23
+ SPDX-FileCopyrightText: Copyright (c) 2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
24
+ SPDX-License-Identifier: Apache-2.0
25
+
26
+ Licensed under the Apache License, Version 2.0 (the "License");
27
+ you may not use this file except in compliance with the License.
28
+ You may obtain a copy of the License at
29
+
30
+ http://www.apache.org/licenses/LICENSE-2.0
31
+
32
+ Unless required by applicable law or agreed to in writing, software
33
+ distributed under the License is distributed on an "AS IS" BASIS,
34
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
35
+ See the License for the specific language governing permissions and
36
+ limitations under the License.
37
+ -->
38
+
39
+ # NVIDIA NeMo Agent Toolkit Vanna
40
+
41
+ Vanna-based Text-to-SQL integration for NeMo Agent toolkit.
42
+
43
+ ## Overview
44
+
45
+ This package provides production-ready text-to-SQL capabilities using the Vanna framework with Databricks support.
46
+
47
+ ## Features
48
+
49
+ - **AI-Powered SQL Generation**: Convert natural language to SQL using LLMs
50
+ - **Databricks Support**: Optimized for Databricks SQL warehouses
51
+ - **Vector-Based Similarity Search**: Milvus integration for few-shot learning
52
+ - **Streaming Support**: Real-time progress updates
53
+ - **Query Execution**: Optional database execution with formatted results
54
+ - **Highly Configurable**: Customizable prompts, examples, and connections
55
+
56
+ ## Quick Start
57
+
58
+ Install the package:
59
+
60
+ ```bash
61
+ pip install nvidia-nat-vanna
62
+ ```
63
+
64
+ Create a workflow configuration:
65
+
66
+ ```yaml
67
+ functions:
68
+ text2sql:
69
+ _type: text2sql
70
+ llm_name: my_llm
71
+ embedder_name: my_embedder
72
+ milvus_retriever: my_retriever
73
+ database_type: databricks
74
+ connection_url: "${CONNECTION_URL}"
75
+ execute_sql: false
76
+
77
+ execute_db_query:
78
+ _type: execute_db_query
79
+ database_type: databricks
80
+ connection_url: "${CONNECTION_URL}"
81
+ max_rows: 100
82
+
83
+ llms:
84
+ my_llm:
85
+ _type: nim
86
+ model_name: meta/llama-3.1-70b-instruct
87
+ api_key: "${NVIDIA_API_KEY}"
88
+
89
+ embedders:
90
+ my_embedder:
91
+ _type: nim
92
+ model_name: nvidia/llama-3.2-nv-embedqa-1b-v2
93
+ api_key: "${NVIDIA_API_KEY}"
94
+
95
+ retrievers:
96
+ my_retriever:
97
+ _type: milvus_retriever
98
+ uri: "${MILVUS_URI}"
99
+ connection_args:
100
+ user: "developer"
101
+ password: "${MILVUS_PASSWORD}"
102
+ db_name: "default"
103
+ embedding_model: my_embedder
104
+ content_field: text
105
+ use_async_client: true
106
+
107
+ workflow:
108
+ _type: rewoo_agent
109
+ tool_names: [text2sql, execute_db_query]
110
+ llm_name: my_llm
111
+ ```
112
+
113
+ Run the workflow:
114
+
115
+ ```bash
116
+ nat run --config config.yml --input "How many customers do we have?"
117
+ ```
118
+
119
+ ## Components
120
+
121
+ ### `text2sql` Function
122
+
123
+ Generates SQL queries from natural language using:
124
+ - Few-shot learning with similar examples
125
+ - DDL (schema) information
126
+ - Custom documentation
127
+ - LLM-powered query generation
128
+
129
+ ### `execute_db_query` Function
130
+
131
+ Executes SQL queries and returns formatted results:
132
+ - Databricks SQL execution
133
+ - Result limiting and pagination
134
+ - Structured output format
135
+ - SQLAlchemy Object Relational Mapper (ORM)-based connection
136
+
137
+ ## Use Cases
138
+
139
+ - **Business Intelligence**: Enable non-technical users to query data
140
+ - **Data Exploration**: Rapid prototyping and analysis
141
+ - **Conversational Analytics**: Multi-turn Q&A about your data
142
+ - **SQL Assistance**: Help analysts write complex queries
143
+
144
+ ## Documentation
145
+
146
+ Full documentation: <https://docs.nvidia.com/nemo/agent-toolkit/latest/>
147
+
148
+ ## License
149
+
150
+ Part of NVIDIA NeMo Agent toolkit. See repository for license details.
@@ -0,0 +1,13 @@
1
+ nat/meta/pypi.md,sha256=LQqwDtLXfOYbWvBiVrwe-Q-74Z3db5j6LDK6cFoXnqU,3400
2
+ nat/plugins/vanna/__init__.py,sha256=GUJrgGtpvyMUCjUBvR3faAdv-tZzbU9W-izgx9aMEQg,680
3
+ nat/plugins/vanna/db_utils.py,sha256=xfctoDUraWFU_RaYFs_U0juxIPsgvZR_6nyAml80WGY,9862
4
+ nat/plugins/vanna/execute_db_query.py,sha256=Yi9rTndkUdG7uy6N4lHzn5emht5g1duPIS79TkHfaTQ,9430
5
+ nat/plugins/vanna/register.py,sha256=mO4kBfFoYohIztU6lZ3uI9uktfwnEuO6g2fAnbqcCmY,840
6
+ nat/plugins/vanna/text2sql.py,sha256=fPNvuI1BNpHdT64_HnfjaNhY3AuYHYp1h6n2fFZPH8s,11183
7
+ nat/plugins/vanna/training_db_schema.py,sha256=P_tXqSnW7ePrEv4cwNr61g28OZ61Lp3UQAZ4Qfk0G-Q,3142
8
+ nat/plugins/vanna/vanna_utils.py,sha256=c7OSXYhhSnSnS3tlfyFnIpbi-MpwWIpW687-PXH3FLo,32977
9
+ nvidia_nat_vanna-1.4.0a20251124.dist-info/METADATA,sha256=Dmasuyr8JyoNYJJ1LjhggNmQYQfNNPiwkevvPyM-m3A,4225
10
+ nvidia_nat_vanna-1.4.0a20251124.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
11
+ nvidia_nat_vanna-1.4.0a20251124.dist-info/entry_points.txt,sha256=R-SYyO1XwbN43yqGE5jM4uGhvkJeUmCWIxSl_LIi_rw,56
12
+ nvidia_nat_vanna-1.4.0a20251124.dist-info/top_level.txt,sha256=8-CJ2cP6-f0ZReXe5Hzqp-5pvzzHz-5Ds5H2bGqh1-U,4
13
+ nvidia_nat_vanna-1.4.0a20251124.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.9.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [nat.components]
2
+ nat_vanna = nat.plugins.vanna.register