Skip to content

Commit d32ae17

Browse files
committed
Update lock
1 parent f5f8659 commit d32ae17

File tree

4 files changed

+780
-10
lines changed

4 files changed

+780
-10
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ requires-python = ">=3.12"
99
dev = [
1010
"black>=24.10.0",
1111
"ipykernel>=6.29.5",
12+
"jupyter>=1.1.1",
1213
"pre-commit>=4.0.1",
1314
"pygments>=2.18.0",
1415
"ruff>=0.8.1",

text_2_sql/autogen/Iteration 5 - Agentic Vector Based Text2SQL.ipynb

Lines changed: 82 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,28 @@
1717
"\n",
1818
"This notebook demonstrates how the AutoGen Agents can be integrated with Azure OpenAI to answer questions from the database based on the schemas provided. \n",
1919
"\n",
20-
"A multi-shot approach is used for SQL generation for more reliable results and reduced token usage. More details can be found in the README.md."
20+
"A multi-shot approach is used for SQL generation for more reliable results and reduced token usage. More details can be found in the README.md.\n",
21+
"\n",
22+
"To install dependencies:\n",
23+
"\n",
24+
"`uv sync --package autogen`"
2125
]
2226
},
2327
{
2428
"cell_type": "code",
2529
"execution_count": null,
2630
"metadata": {},
27-
"outputs": [],
31+
"outputs": [
32+
{
33+
"ename": "",
34+
"evalue": "",
35+
"output_type": "error",
36+
"traceback": [
37+
"\u001b[1;31mThe kernel failed to start due to the missing module 'pygments.formatters.terminal256'. Consider installing this module.\n",
38+
"\u001b[1;31mClick <a href='https://aka.ms/kernelFailuresMissingModule'>here</a> for more info."
39+
]
40+
}
41+
],
2842
"source": [
2943
"import dotenv\n",
3044
"import logging\n",
@@ -36,7 +50,17 @@
3650
"cell_type": "code",
3751
"execution_count": null,
3852
"metadata": {},
39-
"outputs": [],
53+
"outputs": [
54+
{
55+
"ename": "",
56+
"evalue": "",
57+
"output_type": "error",
58+
"traceback": [
59+
"\u001b[1;31mThe kernel failed to start due to the missing module 'pygments.formatters.terminal256'. Consider installing this module.\n",
60+
"\u001b[1;31mClick <a href='https://aka.ms/kernelFailuresMissingModule'>here</a> for more info."
61+
]
62+
}
63+
],
4064
"source": [
4165
"logging.basicConfig(level=logging.INFO)"
4266
]
@@ -45,7 +69,17 @@
4569
"cell_type": "code",
4670
"execution_count": null,
4771
"metadata": {},
48-
"outputs": [],
72+
"outputs": [
73+
{
74+
"ename": "",
75+
"evalue": "",
76+
"output_type": "error",
77+
"traceback": [
78+
"\u001b[1;31mThe kernel failed to start due to the missing module 'pygments.formatters.terminal256'. Consider installing this module.\n",
79+
"\u001b[1;31mClick <a href='https://aka.ms/kernelFailuresMissingModule'>here</a> for more info."
80+
]
81+
}
82+
],
4983
"source": [
5084
"dotenv.load_dotenv()"
5185
]
@@ -61,7 +95,17 @@
6195
"cell_type": "code",
6296
"execution_count": null,
6397
"metadata": {},
64-
"outputs": [],
98+
"outputs": [
99+
{
100+
"ename": "",
101+
"evalue": "",
102+
"output_type": "error",
103+
"traceback": [
104+
"\u001b[1;31mThe kernel failed to start due to the missing module 'pygments.formatters.terminal256'. Consider installing this module.\n",
105+
"\u001b[1;31mClick <a href='https://aka.ms/kernelFailuresMissingModule'>here</a> for more info."
106+
]
107+
}
108+
],
65109
"source": [
66110
"agentic_text_2_sql = AutoGenText2Sql(target_engine=\"TSQL\", engine_specific_rules=\"Use TOP X to limit the number of rows returned instead of LIMIT X. NEVER USE LIMIT X as it produces a syntax error.\").agentic_flow"
67111
]
@@ -70,7 +114,17 @@
70114
"cell_type": "code",
71115
"execution_count": null,
72116
"metadata": {},
73-
"outputs": [],
117+
"outputs": [
118+
{
119+
"ename": "",
120+
"evalue": "",
121+
"output_type": "error",
122+
"traceback": [
123+
"\u001b[1;31mThe kernel failed to start due to the missing module 'pygments.formatters.terminal256'. Consider installing this module.\n",
124+
"\u001b[1;31mClick <a href='https://aka.ms/kernelFailuresMissingModule'>here</a> for more info."
125+
]
126+
}
127+
],
74128
"source": [
75129
"result = agentic_text_2_sql.run_stream(task=\"What are the total number of sales within 2008?\")"
76130
]
@@ -79,7 +133,17 @@
79133
"cell_type": "code",
80134
"execution_count": null,
81135
"metadata": {},
82-
"outputs": [],
136+
"outputs": [
137+
{
138+
"ename": "",
139+
"evalue": "",
140+
"output_type": "error",
141+
"traceback": [
142+
"\u001b[1;31mThe kernel failed to start due to the missing module 'pygments.formatters.terminal256'. Consider installing this module.\n",
143+
"\u001b[1;31mClick <a href='https://aka.ms/kernelFailuresMissingModule'>here</a> for more info."
144+
]
145+
}
146+
],
83147
"source": [
84148
"await Console(result)"
85149
]
@@ -88,7 +152,17 @@
88152
"cell_type": "code",
89153
"execution_count": null,
90154
"metadata": {},
91-
"outputs": [],
155+
"outputs": [
156+
{
157+
"ename": "",
158+
"evalue": "",
159+
"output_type": "error",
160+
"traceback": [
161+
"\u001b[1;31mThe kernel failed to start due to the missing module 'pygments.formatters.terminal256'. Consider installing this module.\n",
162+
"\u001b[1;31mClick <a href='https://aka.ms/kernelFailuresMissingModule'>here</a> for more info."
163+
]
164+
}
165+
],
92166
"source": []
93167
}
94168
],

text_2_sql/autogen/pyproject.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,15 @@ dependencies = [
1111
"pyyaml>=6.0.2",
1212
]
1313

14+
[dependency-groups]
15+
dev = [
16+
"black>=24.10.0",
17+
"ipykernel>=6.29.5",
18+
"jupyter>=1.1.1",
19+
"pre-commit>=4.0.1",
20+
"pygments>=2.18.0",
21+
"ruff>=0.8.1",
22+
]
23+
1424
[tool.uv.sources]
1525
text_2_sql_core = { path = "text_2_sql/text_2_sql_core" }

0 commit comments

Comments
 (0)