page_type | languages | products | urlFragment | name | description | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sample |
|
|
template |
Chat application with Azure Cosmos DB for NoSQL and Azure OpenAI |
Sample application that implements multiple chat threads using the Azure OpenAI for completions and Azure Cosmos DB for NoSQL for storage. |
This sample chat application answers questions from the user and tracks chat history across conversations.
Use the Azure Developer CLI to get started with this project quickly.
This template will create infrastructure and deploy code to Azure. If you don't have an Azure Subscription, you can sign up for a free account here. Make sure you have the contributor role in the Azure subscription.
-
Log in to AZD.
azd auth login
[!NOTE]
This is only required once per install. -
Initialize the project in the current directory.
azd init --template chat-csharp-cosmos-db-nosql-openai
-
Deploy the services to Azure, build your container, and deploy the application.
azd up
If you make changes to the application code, you can run azd deploy
to deploy the latest version of your application code.
A development container is available with .NET 8, Azure CLI, and Azure Developer CLI already pre-installed.
This application uses ASP.NET Core Blazor and the C# programming language.
These services are deployed to Azure
Description | |
---|---|
Azure Cosmos DB for NoSQL | History and data storage |
Azure OpenAI | Chat completion |
Azure Container Registry | Docker container registry |
Azure Container Apps | Web application host |