Skip to content
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

Question: Best Practice for Updating a Language Model in a Live App #2199

Open
jeannotdamoiseaux opened this issue Nov 28, 2024 · 1 comment

Comments

@jeannotdamoiseaux
Copy link
Contributor

How can I best update the language model for an app that is already live without taking down all resources using azd down? The goal is to perform this update with minimal downtime or disruption to users. What is the recommended approach or best practice for handling this type of update in a live environment?

@jeannotdamoiseaux jeannotdamoiseaux changed the title Best Practice for Updating a Language Model in a Live App Question: Best Practice for Updating a Language Model in a Live App Nov 28, 2024
@pamelafox
Copy link
Collaborator

You have two options:

  1. Go directly into the Portal and change the environment variables there. Restart the App Service.
  2. Run the appropriate azd env set commands locally, and then run azd provision (but not azd up/azd deploy). I think that also restarts the app service, though I'm not positive. I would go for this approach since you can test the new model locally before syncing the values to your prod App Service.

The necessary env variables are described here:
https://github.com/Azure-Samples/azure-search-openai-demo/blob/main/docs/deploy_features.md#using-gpt-4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants