Skip to content

Commit 151929a

Browse files
committed
Update requirements
1 parent 0a014e6 commit 151929a

File tree

8 files changed

+885
-108
lines changed

8 files changed

+885
-108
lines changed

.pre-commit-config.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,11 @@ repos:
4444
- id: ruff
4545
args: [--fix, --ignore, UP007]
4646
exclude: samples
47+
48+
- repo: https://github.com/astral-sh/uv-pre-commit
49+
# uv version.
50+
rev: 0.5.5
51+
hooks:
52+
# Compile requirements
53+
- id: pip-compile
54+
args: [requirements.in, -o, requirements.txt]

adi_function_app/pyproject.toml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
[project]
2+
name = "adi-function-app"
3+
version = "0.1.0"
4+
description = "Add your description here"
5+
readme = "README.md"
6+
requires-python = ">=3.12"
7+
dependencies = [
8+
"azure-functions>=1.21.3",
9+
"azure-identity>=1.19.0",
10+
"azure-search-documents>=11.6.0b8",
11+
"azure-search>=1.0.0b2",
12+
"azure-storage-blob>=12.24.0",
13+
"bs4>=0.0.2",
14+
"openai>=1.55.3",
15+
"openpyxl>=3.1.5",
16+
"pandas>=2.2.3",
17+
"python-dotenv>=1.0.1",
18+
"regex>=2024.11.6",
19+
"tenacity>=9.0.0",
20+
"azure-ai-documentintelligence==1.0.0b4",
21+
"azure-ai-textanalytics>=5.3.0",
22+
"azure-ai-vision-imageanalysis>=1.0.0",
23+
"pymupdf>=1.24.14",
24+
"aiohttp>=3.11.9",
25+
"pillow>=11.0.0",
26+
"numpy>=2.1.3",
27+
"spacy>=3.7.5",
28+
"tiktoken>=0.8.0",
29+
"en-core-web-md @ @ https://github.com/explosion/spacy-models/releases/download/en_core_web_md-3.7.1/en_core_web_md-3.7.1.tar.gz"
30+
]

adi_function_app/requirements.txt

Lines changed: 0 additions & 25 deletions
This file was deleted.

deploy_ai_search/pyproject.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[project]
2+
name = "deploy-ai-search"
3+
version = "0.1.0"
4+
description = "Helper functions to deploy Azure AI Search"
5+
readme = "README.md"
6+
requires-python = ">=3.12"
7+
dependencies = [
8+
"azure-identity>=1.19.0",
9+
"azure-mgmt-web>=7.3.1",
10+
"azure-search-documents==11.6.0b8",
11+
"azure-storage-blob>=12.24.0",
12+
"python-dotenv>=1.0.1",
13+
]

deploy_ai_search/requirements.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ dev = [
1717
]
1818

1919
[tool.uv.workspace]
20-
members = ["text_2_sql/text_2_sql_core", "text_2_sql/autogen"]
20+
members = ["text_2_sql/text_2_sql_core", "text_2_sql/autogen", "deploy_ai_search", "adi_function_app"]

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

Lines changed: 7 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,7 @@
2424
"cell_type": "code",
2525
"execution_count": null,
2626
"metadata": {},
27-
"outputs": [
28-
{
29-
"ename": "",
30-
"evalue": "",
31-
"output_type": "error",
32-
"traceback": [
33-
"\u001b[1;31mThe kernel failed to start due to the missing module 'pygments.formatters.terminal256'. Consider installing this module.\n",
34-
"\u001b[1;31mClick <a href='https://aka.ms/kernelFailuresMissingModule'>here</a> for more info."
35-
]
36-
}
37-
],
27+
"outputs": [],
3828
"source": [
3929
"import dotenv\n",
4030
"import logging\n",
@@ -46,17 +36,7 @@
4636
"cell_type": "code",
4737
"execution_count": null,
4838
"metadata": {},
49-
"outputs": [
50-
{
51-
"ename": "",
52-
"evalue": "",
53-
"output_type": "error",
54-
"traceback": [
55-
"\u001b[1;31mThe kernel failed to start due to the missing module 'pygments.formatters.terminal256'. Consider installing this module.\n",
56-
"\u001b[1;31mClick <a href='https://aka.ms/kernelFailuresMissingModule'>here</a> for more info."
57-
]
58-
}
59-
],
39+
"outputs": [],
6040
"source": [
6141
"logging.basicConfig(level=logging.INFO)"
6242
]
@@ -65,17 +45,7 @@
6545
"cell_type": "code",
6646
"execution_count": null,
6747
"metadata": {},
68-
"outputs": [
69-
{
70-
"ename": "",
71-
"evalue": "",
72-
"output_type": "error",
73-
"traceback": [
74-
"\u001b[1;31mThe kernel failed to start due to the missing module 'pygments.formatters.terminal256'. Consider installing this module.\n",
75-
"\u001b[1;31mClick <a href='https://aka.ms/kernelFailuresMissingModule'>here</a> for more info."
76-
]
77-
}
78-
],
48+
"outputs": [],
7949
"source": [
8050
"dotenv.load_dotenv()"
8151
]
@@ -91,17 +61,7 @@
9161
"cell_type": "code",
9262
"execution_count": null,
9363
"metadata": {},
94-
"outputs": [
95-
{
96-
"ename": "",
97-
"evalue": "",
98-
"output_type": "error",
99-
"traceback": [
100-
"\u001b[1;31mThe kernel failed to start due to the missing module 'pygments.formatters.terminal256'. Consider installing this module.\n",
101-
"\u001b[1;31mClick <a href='https://aka.ms/kernelFailuresMissingModule'>here</a> for more info."
102-
]
103-
}
104-
],
64+
"outputs": [],
10565
"source": [
10666
"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"
10767
]
@@ -110,17 +70,7 @@
11070
"cell_type": "code",
11171
"execution_count": null,
11272
"metadata": {},
113-
"outputs": [
114-
{
115-
"ename": "",
116-
"evalue": "",
117-
"output_type": "error",
118-
"traceback": [
119-
"\u001b[1;31mThe kernel failed to start due to the missing module 'pygments.formatters.terminal256'. Consider installing this module.\n",
120-
"\u001b[1;31mClick <a href='https://aka.ms/kernelFailuresMissingModule'>here</a> for more info."
121-
]
122-
}
123-
],
73+
"outputs": [],
12474
"source": [
12575
"result = agentic_text_2_sql.run_stream(task=\"What are the total number of sales within 2008?\")"
12676
]
@@ -129,17 +79,7 @@
12979
"cell_type": "code",
13080
"execution_count": null,
13181
"metadata": {},
132-
"outputs": [
133-
{
134-
"ename": "",
135-
"evalue": "",
136-
"output_type": "error",
137-
"traceback": [
138-
"\u001b[1;31mThe kernel failed to start due to the missing module 'pygments.formatters.terminal256'. Consider installing this module.\n",
139-
"\u001b[1;31mClick <a href='https://aka.ms/kernelFailuresMissingModule'>here</a> for more info."
140-
]
141-
}
142-
],
82+
"outputs": [],
14383
"source": [
14484
"await Console(result)"
14585
]
@@ -148,17 +88,7 @@
14888
"cell_type": "code",
14989
"execution_count": null,
15090
"metadata": {},
151-
"outputs": [
152-
{
153-
"ename": "",
154-
"evalue": "",
155-
"output_type": "error",
156-
"traceback": [
157-
"\u001b[1;31mThe kernel failed to start due to the missing module 'pygments.formatters.terminal256'. Consider installing this module.\n",
158-
"\u001b[1;31mClick <a href='https://aka.ms/kernelFailuresMissingModule'>here</a> for more info."
159-
]
160-
}
161-
],
91+
"outputs": [],
16292
"source": []
16393
}
16494
],

0 commit comments

Comments
 (0)