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
+29-33Lines changed: 29 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
@@ -83,9 +83,9 @@ You can run this solution accelerator virtually by using GitHub Codespaces. The
83
83
1. Open the solution accelerator (this may take several minutes):
84
84
85
85
[](https://codespaces.new/microsoft/Conversation-Knowledge-Mining-Solution-Accelerator)
86
-
87
-
2. Open a terminal window
88
-
3. Continue with the [deploying steps](#deploying)
86
+
2. Accept the default values on the create Codespaces page
87
+
3. Open a terminal window if it is not already open
88
+
4. Continue with the [deploying steps](#deploying)
89
89
90
90
</details>
91
91
@@ -148,7 +148,9 @@ If you're not using one of the above options for opening the project, then you'l
148
148
149
149
### Deploying
150
150
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.
151
+
Once you've opened the project in [Codespaces](#github-codespaces), in [Dev Containers](#vs-code-dev-containers), or [locally](#local-environment),
152
+
153
+
you can deploy it to Azure.
152
154
153
155
### Azure account setup
154
156
@@ -157,66 +159,58 @@ Once you've opened the project in [Codespaces](#github-codespaces), in [Dev Cont
157
159
* 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
160
* Your Azure account also needs `Microsoft.Resources/deployments/write` permissions on the subscription level.
159
161
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
162
+
You can view the permissions for your account and subscription by following the steps below:
163
+
- Navigate to the [Azure Portal](https://portal.azure.com/) and click on `Subscriptions` under 'Navigation'
164
+
- Select the subscription you are using for this accelerator from the list.
165
+
- If you try to search for your subscription and it does not come up, make sure no filters are selected.
166
+
- Select `Access control (IAM)` and you can see the roles that are assigned to your account for this subscription.
167
+
- If you want to see more information about the roles, you can go to the `Role assignments`
168
+
tab and search by your account name and then click the role you want to view more information about.
174
169
175
-
To override any of those resource names, run `azd env set <key> <value>` before running `azd up`.
170
+
### [Optional]: Customizing resource names
176
171
177
-
## Customizing deployments
172
+
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
173
179
-
Note: Environment name, a 3-10 characters alphanumeric value that will be used to prefix resources
180
174
181
-
To customize the deployments, you can set the following environment variables:
175
+
> 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
176
183
-
Change the Content Understanding Location:
177
+
Change the Content Understanding Location (allowed values: West US, Sweden Central, Australia East)
184
178
185
179
```shell
186
180
azd env set AZURE_ENV_CU_LOCATION 'West US'
187
181
```
188
182
189
-
Change the Secondary Location:
183
+
Change the Secondary Location (example: eastus2, westus2, etc.)
190
184
191
185
```shell
192
186
azd env set AZURE_ENV_SECONDARY_LOCATION eastus2
193
187
```
194
188
195
-
Change the Model Deployment Type:
189
+
Change the Model Deployment Type (allowed values: Standard, GlobalStandard)
196
190
197
191
```shell
198
192
azd env set AZURE_ENV_MODEL_DEPLOYMENT_TYPE GlobalStandard
199
193
```
200
194
201
-
Set the Model Name:
195
+
Set the Model Name (allowed values: gpt-4o-mini, gpt-4o, gpt-4)
202
196
203
197
```shell
204
198
azd env set AZURE_ENV_MODEL_NAME gpt-4o-mini
205
199
```
206
200
207
-
Change the Model Capacity:
201
+
Change the Model Capacity (choose a number based on available GPT model capacity in your subscription)
208
202
209
203
```shell
210
204
azd env set AZURE_ENV_MODEL_CAPACITY 100
211
205
```
212
206
213
-
Change the Embedding Model:
207
+
Change the Embedding Model
214
208
215
209
```shell
216
210
azd env set AZURE_ENV_EMBEDDING_MODEL_NAME text-embedding-ada-002
217
211
```
218
212
219
-
Change the Embedding Deployment Capacity:
213
+
Change the Embedding Deployment Capacity (choose a number based on available embedding model capacity in your subscription)
220
214
221
215
```shell
222
216
azd env set AZURE_ENV_EMBEDDING_MODEL_CAPACITY 80
@@ -236,11 +230,13 @@ azd env set AZURE_ENV_EMBEDDING_MODEL_CAPACITY 80
236
230
azd up
237
231
```
238
232
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.
233
+
3. Provide an `azd` environment name (like "ckmapp")
234
+
4. Select a subscription from your Azure account, and select a location which has quota for all the resources.
235
+
* 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
236
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.
237
+
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
238
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`.
239
+
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`.
0 commit comments