-
Notifications
You must be signed in to change notification settings - Fork 6.1k
AI scale with APIM #40250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
AI scale with APIM #40250
Changes from 10 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
98aa099
AI scale with APIM
diberry 9b12d6b
fix links to other repo
diberry 8f86fe6
markdown lint fixes
diberry fd5d0ca
Update docs/ai/get-started-app-chat-scaling-with-azure-api-management.md
diberry 8b7ab61
Update docs/ai/get-started-app-chat-scaling-with-azure-api-management.md
diberry 097e81f
fixes
diberry db46f97
Merge branch 'diberry/0328-apim' of https://github.com/diberry/dotnet…
diberry 4992fff
remove trailing space
diberry 080b37f
add doc to toc
diberry ea0e0fc
edits
diberry 73b093a
touch
diberry c69ff66
Merge branch 'main' into diberry/0328-apim
BillWagner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
53 changes: 53 additions & 0 deletions
53
docs/ai/get-started-app-chat-scaling-with-azure-api-management.md
This file contains hidden or 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,53 @@ | ||
| --- | ||
| title: Scale Azure OpenAI for .NET with Azure API Management | ||
| description: Learn how to add load balancing to your .NET application to extend the chat app beyond the Azure OpenAI token and model quota limits with Azure API Management. | ||
| ms.date: 03/28/2024 | ||
| ms.topic: get-started | ||
| ms.custom: devx-track-dotnet, devx-track-dotnet-ai | ||
| # CustomerIntent: As a .NET developer new to Azure OpenAI, I want to scale my Azure OpenAI capacity to avoid rate limit errors with Azure API Management. | ||
| --- | ||
|
|
||
| # Scale Azure OpenAI for .NET chat using RAG with Azure API Management | ||
|
|
||
| [!INCLUDE [aca-load-balancer-intro](~/azure-dev-docs-pr/articles/intro/includes/scaling-load-balancer-introduction-azure-api-management.md)] | ||
|
|
||
| ## Prerequisites | ||
|
|
||
| * An Azure subscription. [Create one for free.](https://azure.microsoft.com/free/ai-services?azure-portal=true) | ||
| * Access granted to Azure OpenAI in the desired Azure subscription. | ||
|
|
||
| Currently, access to this service is granted only by application. You can apply for access to Azure OpenAI by completing the [form](https://aka.ms/oai/access). | ||
|
|
||
| * [Dev containers](https://containers.dev/) are available for both samples, with all dependencies required to complete this article. You can run the dev containers in GitHub Codespaces (in a browser) or locally using Visual Studio Code. | ||
|
|
||
| #### [Codespaces (recommended)](#tab/github-codespaces) | ||
|
|
||
| * Only a [GitHub account](https://www.github.com/login) is required to use Codespaces | ||
|
|
||
| #### [Visual Studio Code](#tab/visual-studio-code) | ||
|
|
||
| * [Azure Developer CLI](/azure/developer/azure-developer-cli/install-azd) | ||
| * [Docker Desktop](https://www.docker.com/products/docker-desktop/) - start Docker Desktop if it's not already running | ||
| * [Visual Studio Code](https://code.visualstudio.com/) with [Dev Container Extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) | ||
|
|
||
| --- | ||
|
|
||
| [!INCLUDE [scaling-load-balancer-aca-procedure.md](~/azure-dev-docs-pr/articles/intro/includes/scaling-load-balancer-procedure-azure-api-management.md)] | ||
|
|
||
| [!INCLUDE [deployment-procedure](~/azure-dev-docs-pr/articles/intro/includes/redeploy-procedure-chat-azure-api-management.md)] | ||
|
|
||
| [!INCLUDE [capacity.md](~/azure-dev-docs-pr/articles/intro/includes/scaling-load-balancer-capacity.md)] | ||
|
|
||
| [!INCLUDE [py-apim-cleanup](~/azure-dev-docs-pr/articles/intro/includes/scaling-load-balancer-cleanup-azure-api-management.md)] | ||
|
|
||
| ## Sample code | ||
|
|
||
| Samples used in this article include: | ||
|
|
||
| * [.NET chat app with RAG](https://github.com/Azure-Samples/azure-search-openai-demo-csharp) | ||
| * [Load Balancer with Azure API Management](https://github.com/Azure-Samples/openai-apim-lb) | ||
|
|
||
| ## Next steps | ||
|
|
||
| * [View Azure API Management diagnostic data in Azure Monitor](/azure/api-management/api-management-howto-use-azure-monitor#view-diagnostic-data-in-azure-monitor) | ||
| * Use [Azure Load Testing](/azure/load-testing/) to load test your chat app. | ||
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.