forked from Azure-Samples/azure-search-openai-demo
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the docs and dev container based off recent feedback (Azure-Sa…
…mples#2224) * Updating docs * Update requirements.txt * Update diagram * Add typing extensions explicitly
- Loading branch information
Showing
10 changed files
with
153 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# RAG chat: Deploying with a free trial account | ||
|
||
If you have just created an Azure free trial account and are using the free trial credits, | ||
there are several modifications you need to make, due to restrictions on the free trial account. | ||
|
||
Follow these instructions *before* you run `azd up`. | ||
|
||
## Accomodate for low OpenAI quotas | ||
|
||
The free trial accounts currently get a max of 1K TPM (tokens-per-minute), whereas our Bicep templates try to allocate 30K TPM. | ||
|
||
To reduce the TPM allocation, run these commands: | ||
|
||
```shell | ||
azd env set AZURE_OPENAI_CHATGPT_DEPLOYMENT_CAPACITY 1 | ||
azd env set AZURE_OPENAI_EMB_DEPLOYMENT_CAPACITY 1 | ||
``` | ||
|
||
Alternatively, if you have an OpenAI.com account, you can use that instead: | ||
|
||
```shell | ||
azd env set OPENAI_HOST openai | ||
azd env set OPENAI_ORGANIZATION {Your OpenAI organization} | ||
azd env set OPENAI_API_KEY {Your OpenAI API key} | ||
``` | ||
|
||
## Accomodate for Azure Container Apps restrictions | ||
|
||
By default, this project deploys to Azure Container Apps, using a remote build process that builds the Docker image in the cloud. | ||
Unfortunately, free trial accounts cannot use that remote build process. | ||
|
||
You have two options: | ||
|
||
1. Comment out or delete `remoteBuild: true` in `azure.yaml`, and make sure you have Docker installed in your environment. | ||
|
||
2. Deploy using App Service instead: | ||
|
||
* Comment out `host: containerapp` and uncomment `host: appservice` in the [azure.yaml](../azure.yaml) file. | ||
* Set the deployment target to `appservice`: | ||
|
||
```shell | ||
azd env set DEPLOYMENT_TARGET appservice | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.