Skip to content

Commit 7f49b8b

Browse files
committed
Update instructions
1 parent b9df80f commit 7f49b8b

File tree

3 files changed

+17
-7
lines changed

3 files changed

+17
-7
lines changed

text_2_sql/GETTING_STARTED.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ To get started, perform the following steps:
55
1. Setup Azure OpenAI in your subscription with **gpt-4o-mini** & an embedding model, alongside a SQL Server sample database, AI Search and a storage account.
66
2. Clone this repository and deploy the AI Search text2sql indexes from `deploy_ai_search`.
77
3. Run `uv sync` within the text_2_sql directory to install dependencies.
8-
- Install the optional dependencies if you need a database connector other than TSQL.
8+
- Install the optional dependencies if you need a database connector other than TSQL. `uv sync --extra <DATABASE ENGINE>`
99
- See the supported connectors in `text_2_sql_core/src/text_2_sql_core/connectors`.
1010
4. Create your `.env` file based on the provided sample `.env.example`. Place this file in the same place as the `.env.example`.
1111
5. Generate a data dictionary for your target server using the instructions in the **Running** section of the `data_dictionary/README.md`.

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

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,13 @@
3535
"\n",
3636
"### Dependencies\n",
3737
"\n",
38-
"To install dependencies for this demo:\n",
38+
"To install dependencies for this demo. Navigate to the autogen directory:\n",
3939
"\n",
40-
"`uv sync --package autogen_text_2_sql`\n",
40+
"`uv sync`\n",
4141
"\n",
42-
"`uv add --editable text_2_sql_core`"
42+
"If you need a differnet connector to TSQL.\n",
43+
"\n",
44+
"`uv sync --extra <DATABASE ENGINE>`"
4345
]
4446
},
4547
{
@@ -87,6 +89,13 @@
8789
"agentic_text_2_sql = AutoGenText2Sql(use_case=\"Analysing sales data\")"
8890
]
8991
},
92+
{
93+
"cell_type": "code",
94+
"execution_count": null,
95+
"metadata": {},
96+
"outputs": [],
97+
"source": []
98+
},
9099
{
91100
"cell_type": "markdown",
92101
"metadata": {},
@@ -100,7 +109,7 @@
100109
"metadata": {},
101110
"outputs": [],
102111
"source": [
103-
"async for message in agentic_text_2_sql.process_user_message(UserMessagePayload(user_message=\"What is the total number of sales?\")):\n",
112+
"async for message in agentic_text_2_sql.process_user_message(UserMessagePayload(user_message=\"what are the total sales\")):\n",
104113
" logging.info(\"Received %s Message from Text2SQL System\", message)"
105114
]
106115
},
@@ -128,7 +137,7 @@
128137
"name": "python",
129138
"nbconvert_exporter": "python",
130139
"pygments_lexer": "ipython3",
131-
"version": "3.12.7"
140+
"version": "3.12.8"
132141
}
133142
},
134143
"nbformat": 4,

text_2_sql/data_dictionary/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,8 @@ If there is no pre-built script for your database engine, take one of the above
225225
## Running
226226

227227
1. Create your `.env` file based on the provided sample `.env.example`. Place this file in the same place as the `.env.example`.
228-
2. Package and install the `text_2_sql_core` library. See [build](https://docs.astral.sh/uv/concepts/projects/build/) if you want to build as a wheel and install on an agent. Or you can run from within a `uv` environment.
228+
2. Package and install the `text_2_sql_core` library. See [build](https://docs.astral.sh/uv/concepts/projects/build/) if you want to build as a wheel and install on an agent. Or you can run from within a `uv` environment and skip packaging.
229+
- Install the optional dependencies if you need a database connector other than TSQL. `uv sync --extra <DATABASE ENGINE>`
229230
3. Run `data_dictionary <DATABASE ENGINE>`
230231
- You can pass the following command line arguements:
231232
- `-- output_directory` or `-o`: Optional directory that the script will write the output files to.

0 commit comments

Comments
 (0)