Skip to content

Commit 3c572c3

Browse files
docs: Merge pull request #239 from microsoft/bug_bash_pk
Updated readme
2 parents 7ffed24 + 2084c6c commit 3c572c3

File tree

3 files changed

+47
-35
lines changed

3 files changed

+47
-35
lines changed

README.md

Lines changed: 42 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ To deploy this solution accelerator, you will need access to an [Azure subscript
5050

5151
Please check the link [Azure Products by Region](https://azure.microsoft.com/en-us/explore/global-infrastructure/products-by-region/?products=all&regions=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.
5252

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:
5454
5555
- Azure region where the resources will be created in
5656

@@ -70,6 +70,16 @@ When you start the deployment using one of the options below, most parameters wi
7070

7171
- Embedding model capacity
7272

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+
![image](./docs/Images/ReadMe/quotaImage.png)
80+
81+
82+
7383
### **Options**
7484
Pick from the options below to see step-by-step instructions for: GitHub Codespaces, VS Code Dev Containers, Local Environments, and Bicep deployments.
7585

@@ -83,9 +93,9 @@ You can run this solution accelerator virtually by using GitHub Codespaces. The
8393
1. Open the solution accelerator (this may take several minutes):
8494

8595
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](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)
8999

90100
</details>
91101

@@ -148,7 +158,9 @@ If you're not using one of the above options for opening the project, then you'l
148158

149159
### Deploying
150160

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.
152164
153165
### Azure account setup
154166
@@ -157,66 +169,58 @@ Once you've opened the project in [Codespaces](#github-codespaces), in [Dev Cont
157169
* 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).
158170
* Your Azure account also needs `Microsoft.Resources/deployments/write` permissions on the subscription level.
159171
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.
174179
175-
To override any of those resource names, run `azd env set <key> <value>` before running `azd up`.
180+
### [Optional]: Customizing resource names
176181
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.
178183
179-
Note: Environment name, a 3-10 characters alphanumeric value that will be used to prefix resources
180184
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.
182186
183-
Change the Content Understanding Location:
187+
Change the Content Understanding Location (allowed values: West US, Sweden Central, Australia East)
184188
185189
```shell
186190
azd env set AZURE_ENV_CU_LOCATION 'West US'
187191
```
188192
189-
Change the Secondary Location:
193+
Change the Secondary Location (example: eastus2, westus2, etc.)
190194
191195
```shell
192196
azd env set AZURE_ENV_SECONDARY_LOCATION eastus2
193197
```
194198
195-
Change the Model Deployment Type:
199+
Change the Model Deployment Type (allowed values: Standard, GlobalStandard)
196200
197201
```shell
198202
azd env set AZURE_ENV_MODEL_DEPLOYMENT_TYPE GlobalStandard
199203
```
200204
201-
Set the Model Name:
205+
Set the Model Name (allowed values: gpt-4o-mini, gpt-4o, gpt-4)
202206
203207
```shell
204208
azd env set AZURE_ENV_MODEL_NAME gpt-4o-mini
205209
```
206210
207-
Change the Model Capacity:
211+
Change the Model Capacity (choose a number based on available GPT model capacity in your subscription)
208212
209213
```shell
210214
azd env set AZURE_ENV_MODEL_CAPACITY 100
211215
```
212216
213-
Change the Embedding Model:
217+
Change the Embedding Model
214218
215219
```shell
216220
azd env set AZURE_ENV_EMBEDDING_MODEL_NAME text-embedding-ada-002
217221
```
218222
219-
Change the Embedding Deployment Capacity:
223+
Change the Embedding Deployment Capacity (choose a number based on available embedding model capacity in your subscription)
220224
221225
```shell
222226
azd env set AZURE_ENV_EMBEDDING_MODEL_CAPACITY 80
@@ -236,11 +240,13 @@ azd env set AZURE_ENV_EMBEDDING_MODEL_CAPACITY 80
236240
azd up
237241
```
238242
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.
240246
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`.
242248
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`.
244250
245251
<br/>
246252
<h2>
@@ -307,6 +313,9 @@ You can try the [Azure pricing calculator](https://azure.microsoft.com/en-us/pri
307313
* 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/)
308314
* Azure Container Registry: Basic tier. [Pricing](https://azure.microsoft.com/pricing/details/container-registry/)
309315
* Log analytics: Pay-as-you-go tier. Costs based on data ingested. [Pricing](https://azure.microsoft.com/pricing/details/monitor/)
316+
* Azure SQL Server: General Purpose Tier. [Pricing](https://azure.microsoft.com/pricing/details/azure-sql-database/single/)
317+
* Azure Cosmos DB: [Pricing](https://azure.microsoft.com/en-us/pricing/details/cosmos-db/autoscale-provisioned/)
318+
* Azure functions: Consumption tier [Pricing](https://azure.microsoft.com/en-us/pricing/details/functions/)
310319

311320
⚠️ To avoid unnecessary costs, remember to take down your app if it's no longer in use,
312321
either by deleting the resource group in the Portal or running `azd down`.

azure.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
# # yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-dev/main/schemas/v1.0/azure.yaml.json
2-
2+
# metadata:
3+
# template: [email protected]
34
environment:
45
name: conversation-knowledge-mining
56
location: eastus
6-
7+
metadata:
8+
9+
710
parameters:
811
solutionPrefix:
912
type: string

docs/Images/ReadMe/quotaImage.png

30.2 KB
Loading

0 commit comments

Comments
 (0)