You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+42-33Lines changed: 42 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ To deploy this solution accelerator, you will need access to an [Azure subscript
50
50
51
51
Please check the link [Azure Products by Region](https://azure.microsoft.com/en-us/explore/global-infrastructure/products-by-region/?products=all®ions=all) and choose a region where Azure AI Foundry, Azure OpenAI Services, Azure AI Search, Azure AI Content Understanding, Embedding Deployment Capacity and GPT Model Capacity are available. Recommended regions are eastus, eastus2.
52
52
53
-
When you start the deployment using one of the options below, most parameters will have a default name set already. You can update the following settings:
53
+
> When you start the deployment using one of the options below, most parameters will have a default name set already. You can update the following settings:
54
54
55
55
- Azure region where the resources will be created in
56
56
@@ -70,6 +70,16 @@ When you start the deployment using one of the options below, most parameters wi
70
70
71
71
- Embedding model capacity
72
72
73
+
### Quota Recommendations
74
+
- Please deploy with minimum **30k tokens**.
75
+
- For optimal performance, it is recommended to increase token to **100K**
76
+
- You can also view the Quotas tab in [Azure OpenAI studio](https://oai.azure.com/)
77
+
to understand how much capacity you have.
78
+
79
+

80
+
81
+
82
+
73
83
### **Options**
74
84
Pick from the options below to see step-by-step instructions for: GitHub Codespaces, VS Code Dev Containers, Local Environments, and Bicep deployments.
75
85
@@ -83,9 +93,9 @@ You can run this solution accelerator virtually by using GitHub Codespaces. The
83
93
1. Open the solution accelerator (this may take several minutes):
84
94
85
95
[](https://codespaces.new/microsoft/Conversation-Knowledge-Mining-Solution-Accelerator)
86
-
87
-
2. Open a terminal window
88
-
3. Continue with the [deploying steps](#deploying)
96
+
2. Accept the default values on the create Codespaces page
97
+
3. Open a terminal window if it is not already open
98
+
4. Continue with the [deploying steps](#deploying)
89
99
90
100
</details>
91
101
@@ -148,7 +158,9 @@ If you're not using one of the above options for opening the project, then you'l
148
158
149
159
### Deploying
150
160
151
-
Once you've opened the project in [Codespaces](#github-codespaces), in [Dev Containers](#vs-code-dev-containers), or [locally](#local-environment), you can deploy it to Azure.
161
+
Once you've opened the project in [Codespaces](#github-codespaces), in [Dev Containers](#vs-code-dev-containers), or [locally](#local-environment),
162
+
163
+
you can deploy it to Azure.
152
164
153
165
### Azure account setup
154
166
@@ -157,66 +169,58 @@ Once you've opened the project in [Codespaces](#github-codespaces), in [Dev Cont
157
169
* Your Azure account must have `Microsoft.Authorization/roleAssignments/write` permissions, such as [Role Based Access Control Administrator](https://learn.microsoft.com/azure/role-based-access-control/built-in-roles#role-based-access-control-administrator-preview), [User Access Administrator](https://learn.microsoft.com/azure/role-based-access-control/built-in-roles#user-access-administrator), or [Owner](https://learn.microsoft.com/azure/role-based-access-control/built-in-roles#owner).
158
170
* Your Azure account also needs `Microsoft.Resources/deployments/write` permissions on the subscription level.
159
171
160
-
You can view the permissions for your account and subscription by going to Azure portal, clicking 'Subscriptions' under 'Navigation' and then choosing your subscription from the list. If you try to search for your subscription and it does not come up, make sure no filters are selected. After selecting your subscription, select 'Access control (IAM)' and you can see the roles that are assigned to your account for this subscription. If you want to see more information about the roles, you can go to the 'Role assignments' tab and search by your account name and then click the role you want to view more information about.
161
-
162
-
## Customizing resource names
163
-
164
-
By default this template will use a default naming convention to prevent naming collisions within Azure.
165
-
To override default naming conventions the following can be set.
166
-
167
-
* `AZURE_ENV_CU_LOCATION` - The name of the Content Understanding Location
168
-
* `AZURE_ENV_SECONDARY_LOCATION` - The name of the Secondary Location
169
-
* `AZURE_ENV_MODEL_DEPLOYMENT_TYPE` - The name of the Model Deployment Type
170
-
* `AZURE_ENV_MODEL_NAME` - The name of the Model Name
171
-
* `AZURE_ENV_MODEL_CAPACITY` - The name of the Model Capacity
172
-
* `AZURE_ENV_EMBEDDING_MODEL_NAME` - The name of the Embedding Model
173
-
* `AZURE_ENV_EMBEDDING_MODEL_CAPACITY` - The name of the Embedding Deployment Capacity
172
+
You can view the permissions for your account and subscription by following the steps below:
173
+
- Navigate to the [Azure Portal](https://portal.azure.com/) and click on `Subscriptions` under 'Navigation'
174
+
- Select the subscription you are using for this accelerator from the list.
175
+
- If you try to search for your subscription and it does not come up, make sure no filters are selected.
176
+
- Select `Access control (IAM)` and you can see the roles that are assigned to your account for this subscription.
177
+
- If you want to see more information about the roles, you can go to the `Role assignments`
178
+
tab and search by your account name and then click the role you want to view more information about.
174
179
175
-
To override any of those resource names, run `azd env set <key> <value>` before running `azd up`.
180
+
### [Optional]: Customizing resource names
176
181
177
-
## Customizing deployments
182
+
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.
178
183
179
-
Note: Environment name, a 3-10 characters alphanumeric value that will be used to prefix resources
180
184
181
-
To customize the deployments, you can set the following environment variables:
185
+
> 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-10 charaters alphanumeric unique name.
182
186
183
-
Change the Content Understanding Location:
187
+
Change the Content Understanding Location (allowed values: West US, Sweden Central, Australia East)
184
188
185
189
```shell
186
190
azd env set AZURE_ENV_CU_LOCATION 'West US'
187
191
```
188
192
189
-
Change the Secondary Location:
193
+
Change the Secondary Location (example: eastus2, westus2, etc.)
190
194
191
195
```shell
192
196
azd env set AZURE_ENV_SECONDARY_LOCATION eastus2
193
197
```
194
198
195
-
Change the Model Deployment Type:
199
+
Change the Model Deployment Type (allowed values: Standard, GlobalStandard)
196
200
197
201
```shell
198
202
azd env set AZURE_ENV_MODEL_DEPLOYMENT_TYPE GlobalStandard
199
203
```
200
204
201
-
Set the Model Name:
205
+
Set the Model Name (allowed values: gpt-4o-mini, gpt-4o, gpt-4)
202
206
203
207
```shell
204
208
azd env set AZURE_ENV_MODEL_NAME gpt-4o-mini
205
209
```
206
210
207
-
Change the Model Capacity:
211
+
Change the Model Capacity (choose a number based on available GPT model capacity in your subscription)
208
212
209
213
```shell
210
214
azd env set AZURE_ENV_MODEL_CAPACITY 100
211
215
```
212
216
213
-
Change the Embedding Model:
217
+
Change the Embedding Model
214
218
215
219
```shell
216
220
azd env set AZURE_ENV_EMBEDDING_MODEL_NAME text-embedding-ada-002
217
221
```
218
222
219
-
Change the Embedding Deployment Capacity:
223
+
Change the Embedding Deployment Capacity (choose a number based on available embedding model capacity in your subscription)
220
224
221
225
```shell
222
226
azd env set AZURE_ENV_EMBEDDING_MODEL_CAPACITY 80
@@ -236,11 +240,13 @@ azd env set AZURE_ENV_EMBEDDING_MODEL_CAPACITY 80
236
240
azd up
237
241
```
238
242
239
-
It will prompt you to provide an `azd` environment name (like "azureaiapp"), select a subscription from your Azure account, and select a location which has quota for all the resources. Then it will provision the resources in your account and deploy the latest code. If you get an error or timeout with deployment, changing the location can help, as there may be availability constraints for the resources.
243
+
3. Provide an `azd` environment name (like "ckmapp")
244
+
4. Select a subscription from your Azure account, and select a location which has quota for all the resources.
245
+
* Then it will provision the resources in your account and deploy the latest code. If you get an error or timeout with deployment, changing the location can help, as there may be availability constraints for the resources.
240
246
241
-
3. Open [Azure Portal](https://portal.azure.com/), go to the deployed resource group, find the App Service and get the app URL from Default Domain.
247
+
5. Open the [Azure Portal](https://portal.azure.com/), go to the deployed resource group, find the App Service and get the app URL from `Default domain`.
242
248
243
-
4. You can now proceed to run the [development server](#development-server) to test the app locally, or if you are done trying out the app, you can delete the resources by running `azd down`.
249
+
6. You can now proceed to run the [development server](#development-server) to test the app locally, or if you are done trying out the app, you can delete the resources by running `azd down`.
244
250
245
251
<br/>
246
252
<h2>
@@ -307,6 +313,9 @@ You can try the [Azure pricing calculator](https://azure.microsoft.com/en-us/pri
307
313
* 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/)
0 commit comments