Skip to content

Commit 3f38a54

Browse files
authored
Merge pull request #68 from microsoft/features/found-main-refactor
Features/found main refactor
2 parents 4cd6372 + 8d22593 commit 3f38a54

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+1749
-1155
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ The sample data used in this repository is synthetic and generated using Azure O
6161

6262
This diagram double-clicks into the agentic framework for the code conversion process. The conversion uses an agentic approach with each agent playing a specialized role in the process. The system gets a list of SQL files which are targeted for conversion. 
6363

64-
**Step 1:** The system loops through the list of SQL files, converting each file, starting by passing the SQL to the Migrator agent. This agent will create several candidate SQL files that should be equivalent. It does this to ensure that the system acknowledges that most of these queries could be converted in a number of different ways. *Note that the processing time can vary depending on OpenAI and cloud services.*
64+
**Step 1:** The system loops through the list of SQL files, converting each file, starting by passing the SQL to the Migrator agent. This agent will create several candidate SQL files that should be equivalent. It does this to ensure that the system acknowledges that most of these queries could be converted in a number of different ways. *Note that the processing time can vary depending on Azure OpenAI service and cloud services.*
6565

6666
**Step 2:** The Picker agent then examines these various possibilities and picks the one it believes is best using criteria such as simplicity, clarity of syntax, etc.
6767

@@ -106,12 +106,12 @@ When you start the deployment, most parameters will have **default values**, but
106106
|------------|----------------| ------------|
107107
| **Azure Region** | The region where resources will be created. | East US|
108108
| **Resource Prefix** | Prefix for all resources created by this template. This prefix will be used to create unique names for all resources. The prefix must be unique within the resource group. | None |
109-
| **Ai Location** | Location for all Ai services resources. This location can be different from the resource group location | None |
110-
| **Capacity** | Configure capacity for **GPT models**. | 5k |
109+
| **AI Location** | Location for all AI services resources. This location can be different from the resource group location | None |
110+
| **Capacity** | Configure capacity for **gpt-4o**. | 5k |
111111

112112
### [Optional] Quota Recommendations
113113
By default, the **GPT model capacity** in deployment is set to **5k tokens**.
114-
> **We recommend increasing the capacity to 30k tokens for optimal performance.**
114+
> **We recommend increasing the capacity to 200k tokens for optimal performance.**
115115
116116
To adjust quota settings, follow these [steps](./docs/AzureGPTQuotaSettings.md)
117117

@@ -262,7 +262,7 @@ You can try the [Azure pricing calculator](https://azure.microsoft.com/en-us/pri
262262
* Azure AI Foundry: Free tier. [Pricing](https://azure.microsoft.com/pricing/details/ai-studio/)
263263
* Azure Storage Account: Standard tier, LRS. Pricing is based on storage and operations. [Pricing](https://azure.microsoft.com/pricing/details/storage/blobs/)
264264
* Azure Key Vault: Standard tier. Pricing is based on the number of operations. [Pricing](https://azure.microsoft.com/pricing/details/key-vault/)
265-
* Azure AI Services: S0 tier, defaults to gpt-4o-mini and text-embedding-ada-002 models. Pricing is based on token count. [Pricing](https://azure.microsoft.com/pricing/details/cognitive-services/)
265+
* Azure AI Services: S0 tier, defaults to gpt-4o-mini. Pricing is based on token count. [Pricing](https://azure.microsoft.com/pricing/details/cognitive-services/)
266266
* Azure Container App: Consumption tier with 0.5 CPU, 1GiB memory/storage. Pricing is based on resource allocation, and each month allows for a certain amount of free usage. [Pricing](https://azure.microsoft.com/pricing/details/container-apps/)
267267
* Azure Container Registry: Basic tier. [Pricing](https://azure.microsoft.com/pricing/details/container-registry/)
268268
* Log analytics: Pay-as-you-go tier. Costs based on data ingested. [Pricing](https://azure.microsoft.com/pricing/details/monitor/)

docs/AzureGPTQuotaSettings.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
## How to Check & Update Quota
2+
3+
1. **Navigate** to the [Azure AI Foundry portal](https://ai.azure.com/).
4+
2. **Select** the AI Project associated with this accelerator.
5+
3. **Go to** the `Management Center` from the bottom-left navigation menu.
6+
4. Select `Quota`
7+
- Click on the `GlobalStandard` dropdown.
8+
- Select the required **GPT model** (`GPT-4, GPT-4o`).
9+
- Choose the **region** where the deployment is hosted.
10+
5. Request More Quota or delete any unused model deployments as needed.

docs/CustomizingAzdParameters.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
By default this template will use the environment name as the prefix to prevent naming collisions within Azure. The parameters below show the default values. You only need to run the statements below if you need to change the values.
2+
3+
4+
> To override any of the parameters, run `azd env set <key> <value>` before running `azd up`. On the first azd command, it will prompt you for the environment name. Be sure to choose 3-20 charaters alphanumeric unique name.
5+
6+
Change the Model Deployment Type (allowed values: Standard, GlobalStandard)
7+
8+
```shell
9+
azd env set AZURE_ENV_MODEL_DEPLOYMENT_TYPE Standard
10+
```
11+
12+
Set the Model Name (allowed values: gpt-4)
13+
14+
```shell
15+
azd env set AZURE_ENV_MODEL_NAME gpt-4
16+
```
17+
18+
Change the Model Capacity (choose a number based on available GPT model capacity in your subscription)
19+
20+
```shell
21+
azd env set AZURE_ENV_MODEL_CAPACITY 30
22+
```
23+

docs/DeleteResourceGroup.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Deleting Resources After a Failed Deployment in Azure Portal
2+
3+
If your deployment fails and you need to clean up the resources manually, follow these steps in the Azure Portal.
4+
5+
---
6+
7+
## **1. Navigate to the Azure Portal**
8+
1. Open [Azure Portal](https://portal.azure.com/).
9+
2. Sign in with your Azure account.
10+
11+
---
12+
13+
## **2. Find the Resource Group**
14+
1. In the search bar at the top, type **"Resource groups"** and select it.
15+
2. Locate the **resource group** associated with the failed deployment.
16+
17+
![Resource Groups](images/delete_resource/resourcegroup.png)
18+
19+
![Resource Groups](images/delete_resource/resource-groups.png)
20+
21+
---
22+
23+
## **3. Delete the Resource Group**
24+
1. Click on the **resource group name** to open it.
25+
2. Click the **Delete resource group** button at the top.
26+
27+
![Delete Resource Group](images/delete_resource/DeleteRG.png)
28+
29+
3. Type the resource group name in the confirmation box and click **Delete**.
30+
31+
📌 **Note:** Deleting a resource group will remove all resources inside it.
32+
33+
---
34+
35+
## **4. Delete Individual Resources (If Needed)**
36+
If you don’t want to delete the entire resource group, follow these steps:
37+
38+
1. Open **Azure Portal** and go to the **Resource groups** section.
39+
2. Click on the specific **resource group**.
40+
3. Select the **resource** you want to delete (e.g., App Service, Storage Account).
41+
4. Click **Delete** at the top.
42+
43+
![Delete Individual Resource](images/delete_resource/deleteservices.png)
44+
45+
---
46+
47+
## **5. Verify Deletion**
48+
- After a few minutes, refresh the **Resource groups** page.
49+
- Ensure the deleted resource or group no longer appears.
50+
51+
📌 **Tip:** If a resource fails to delete, check if it's **locked** under the **Locks** section and remove the lock.

docs/EXAMPLE-CustomizingAzdParameters.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ Change the Content Understanding Location (allowed values: Sweden Central, Austr
1111
azd env set AZURE_ENV_CU_LOCATION 'swedencentral'
1212
```
1313

14-
Change the Secondary Location (example: eastus2, westus2, etc.)
15-
16-
```shell
17-
azd env set AZURE_ENV_SECONDARY_LOCATION eastus2
18-
```
19-
2014
Change the Model Deployment Type (allowed values: Standard, GlobalStandard)
2115

2216
```shell
@@ -34,15 +28,3 @@ Change the Model Capacity (choose a number based on available GPT model capacity
3428
```shell
3529
azd env set AZURE_ENV_MODEL_CAPACITY 30
3630
```
37-
38-
Change the Embedding Model
39-
40-
```shell
41-
azd env set AZURE_ENV_EMBEDDING_MODEL_NAME text-embedding-ada-002
42-
```
43-
44-
Change the Embedding Deployment Capacity (choose a number based on available embedding model capacity in your subscription)
45-
46-
```shell
47-
azd env set AZURE_ENV_EMBEDDING_MODEL_CAPACITY 80
48-
```
-5.5 KB
Loading
14.4 KB
Loading
-2.24 KB
Loading
76.6 KB
Loading
116 KB
Loading

0 commit comments

Comments
 (0)