|
1 | 1 | # Getting Started with Agentic Text2SQL Component |
2 | 2 |
|
3 | | -**Execute the following commands in the `text_2_sql` directory.** |
4 | | - |
5 | 3 | To get started, perform the following steps: |
6 | 4 |
|
| 5 | +**Execute the following commands in the `deploy_ai_search` directory:** |
| 6 | + |
7 | 7 | 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. |
8 | | -2. Clone this repository and deploy the AI Search text2sql indexes from `deploy_ai_search`. |
9 | | -3. Run `uv sync` within the text_2_sql directory to install dependencies. |
| 8 | +2. Create your `.env` file based on the provided sample `deploy_ai_search/.env.example`. Place this file in the same place in `deploy_ai_search/.env`. |
| 9 | +3. Clone this repository and deploy the AI Search text2sql indexes from `deploy_ai_search`. See the instructions in the **Steps for Text2SQL Index Deployment (For Structured RAG)** section of the `deploy_ai_search/README.md`. |
| 10 | + |
| 11 | +**Execute the following commands in the `text_2_sql_core` directory:** |
| 12 | + |
| 13 | +4. Create your `.env` file based on the provided sample `text_2_sql/.env.example`. Place this file in the same place in `text_2_sql/.env`. |
| 14 | +5. Run `uv sync` within the text_2_sql directory to install dependencies. |
10 | 15 | - Install the optional dependencies if you need a database connector other than TSQL. `uv sync --extra <DATABASE ENGINE>` |
11 | 16 | - See the supported connectors in `text_2_sql_core/src/text_2_sql_core/connectors`. |
12 | | -4. Create your `.env` file based on the provided sample `.env.example`. Place this file in the same place as the `.env.example`. |
13 | | -5. Generate a data dictionary for your target server using the instructions in the **Running** section of the `data_dictionary/README.md`. |
14 | | -6. Upload these generated data dictionaries files to the relevant containers in your storage account. Wait for them to be automatically indexed with the included skillsets. |
| 17 | +6. Create your `.env` file based on the provided sample `text_2_sql/.env.example`. Place this file in the same place in `text_2_sql/.env`. |
| 18 | +7. Generate a data dictionary for your target server using the instructions in the **Running** section of the `data_dictionary/README.md`. |
| 19 | +8. Upload these generated data dictionaries files to the relevant containers in your storage account. Wait for them to be automatically indexed with the included skillsets. |
15 | 20 |
|
16 | | -**Execute the following commands in the `autogen` directory.** |
| 21 | +**Execute the following commands in the `autogen` directory:** |
17 | 22 |
|
18 | | -7. Run `uv sync` within the text_2_sql directory to install dependencies. |
| 23 | +9. Run `uv sync` within the text_2_sql directory to install dependencies. |
19 | 24 | - Install the optional dependencies if you need a database connector other than TSQL. `uv sync --extra <DATABASE ENGINE>` |
20 | 25 | - See the supported connectors in `text_2_sql_core/src/text_2_sql_core/connectors`. |
21 | | -8. Navigate to `autogen` directory to view the AutoGen implementation. Follow the steps in `Iteration 5 - Agentic Vector Based Text2SQL.ipynb` to get started. |
| 26 | +10. Navigate to `autogen` directory to view the AutoGen implementation. Follow the steps in `Iteration 5 - Agentic Vector Based Text2SQL.ipynb` to get started. |
0 commit comments