Skip to content

Commit d313c6a

Browse files
authored
Updated docs (#1925)
1 parent 01a4111 commit d313c6a

File tree

3 files changed

+31
-11
lines changed

3 files changed

+31
-11
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ The repo includes sample data so it's ready to try end to end. In this sample ap
6363
### Cost estimation
6464

6565
Pricing varies per region and usage, so it isn't possible to predict exact costs for your usage.
66-
However, you can try the [Azure pricing calculator](https://azure.com/e/d18187516e9e421e925b3b311eec8aae) for the resources below.
66+
However, you can try the [Azure pricing calculator](https://azure.com/e/a87a169b256e43c089015fda8182ca87) for the resources below.
6767

6868
- Azure App Service: Basic Tier with 1 CPU core, 1.75 GB RAM. Pricing per hour. [Pricing](https://azure.microsoft.com/pricing/details/app-service/linux/)
6969
- Azure OpenAI: Standard tier, GPT and Ada models. Pricing per 1K tokens used, and at least 1K tokens are used per question. [Pricing](https://azure.microsoft.com/pricing/details/cognitive-services/openai-service/)
7070
- Azure AI Document Intelligence: SO (Standard) tier using pre-built layout. Pricing per document page, sample documents have 261 pages total. [Pricing](https://azure.microsoft.com/pricing/details/form-recognizer/)
71-
- Azure AI Search: Standard tier, 1 replica, free level of semantic search. Pricing per hour. [Pricing](https://azure.microsoft.com/pricing/details/search/)
71+
- Azure AI Search: Basic tier, 1 replica, free level of semantic search. Pricing per hour. [Pricing](https://azure.microsoft.com/pricing/details/search/)
7272
- Azure Blob Storage: Standard tier with ZRS (Zone-redundant storage). Pricing per storage and read operations. [Pricing](https://azure.microsoft.com/pricing/details/storage/blobs/)
7373
- Azure Monitor: Pay-as-you-go tier. Costs based on data ingested. [Pricing](https://azure.microsoft.com/pricing/details/monitor/)
7474

docs/productionizing.md

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,37 @@ which you can specify using the `sku` property under the `storage` module in `in
3737

3838
### Azure AI Search
3939

40-
The default search service uses the `Standard` SKU
41-
with the free semantic search option, which gives you 1000 free queries a month.
42-
Assuming your app will experience more than 1000 questions, you should either change `semanticSearch`
43-
to "standard" or disable semantic search entirely in the `/app/backend/approaches` files.
44-
If you see errors about search service capacity being exceeded, you may find it helpful to increase
40+
The default search service uses the "Basic" SKU
41+
with the free semantic ranker option, which gives you 1000 free queries a month.
42+
After 1000 queries, you will get an error message about exceeding the semantic ranker free capacity.
43+
44+
* Assuming your app will experience more than 1000 questions per month,
45+
you should upgrade the semantic ranker SKU from "free" to "standard" SKU:
46+
47+
```shell
48+
azd env set AZURE_SEARCH_SEMANTIC_RANKER standard
49+
```
50+
51+
Or disable semantic search entirely:
52+
53+
```shell
54+
azd env set AZURE_SEARCH_SEMANTIC_RANKER disabled
55+
```
56+
57+
* The search service can handle fairly large indexes, but it does have per-SKU limits on storage sizes, maximum vector dimensions, etc. You may want to upgrade the SKU to either a Standard or Storage Optimized SKU, depending on your expected load.
58+
However, you [cannot change the SKU](https://learn.microsoft.com/azure/search/search-sku-tier#tier-upgrade-or-downgrade) of an existing search service, so you will need to re-index the data or manually copy it over.
59+
You can change the SKU by setting the `AZURE_SEARCH_SERVICE_SKU` azd environment variable to [an allowed SKU](https://learn.microsoft.com/azure/templates/microsoft.search/searchservices?pivots=deployment-language-bicep#sku).
60+
61+
```shell
62+
azd env set AZURE_SEARCH_SERVICE_SKU standard
63+
```
64+
65+
See the [Azure AI Search service limits documentation](https://learn.microsoft.com/azure/search/search-limits-quotas-capacity) for more details.
66+
67+
* If you see errors about search service capacity being exceeded, you may find it helpful to increase
4568
the number of replicas by changing `replicaCount` in `infra/core/search/search-services.bicep`
4669
or manually scaling it from the Azure Portal.
4770

48-
The search service can handle fairly large indexes, but it does have per-SKU limits on storage sizes, maximum vector dimensions, etc.
49-
See the [service limits document](https://learn.microsoft.com/azure/search/search-limits-quotas-capacity) for more details.
50-
5171
### Azure App Service
5272

5373
The default app service plan uses the `Basic` SKU with 1 CPU core and 1.75 GB RAM.

infra/main.parameters.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"value": "${AZURE_SEARCH_SERVICE_LOCATION}"
6161
},
6262
"searchServiceSkuName": {
63-
"value": "${AZURE_SEARCH_SERVICE_SKU=standard}"
63+
"value": "${AZURE_SEARCH_SERVICE_SKU=basic}"
6464
},
6565
"searchQueryLanguage": {
6666
"value": "${AZURE_SEARCH_QUERY_LANGUAGE=en-us}"

0 commit comments

Comments
 (0)