Azure-Samples / azure-search-openai-demo

A sample app for the Retrieval-Augmented Generation pattern running in Azure, using Azure AI Search for retrieval and Azure OpenAI large language models to power ChatGPT-style and Q&A experiences.
https://azure.microsoft.com/products/search
MIT License
6.04k stars 4.14k forks source link

AZD up fails with selection from list (semantic ranker/swedencentral) #1341

Open diberry opened 8 months ago

diberry commented 8 months ago

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

  1. azd auth login
  2. azd up
  3. select locations from options - assuming those are correct
? Enter a value for the 'documentIntelligenceResourceGroupLocation' infrastructure parameter:  1. (Europe) West Europe (westeurope)
? Save the value in the environment for future use Yes
? Enter a value for the 'openAiResourceGroupLocation' infrastructure parameter:  5. (Europe) Sweden Central (swedencentral)
? Save the value in the environment for future use Yes
  1. Error - is this region full or really not allowed?
  (✓) Done: Resource group: rg-dfberry-py-vision-5
  (✓) Done: App Service plan: plan-i5iwmz7lyb2lg
  (x) Failed: Search service: gptkb-i5iwmz7lyb2lg
  (✓) Done: Azure OpenAI: cog-i5iwmz7lyb2lg
  (✓) Done: Storage account: sti5iwmz7lyb2lg
  (✓) Done: Log Analytics workspace: log-i5iwmz7lyb2lg
  (✓) Done: Document Intelligence: cog-di-i5iwmz7lyb2lg
  (✓) Done: Application Insights: appi-i5iwmz7lyb2lg
  (✓) Done: Portal dashboard: dash-i5iwmz7lyb2lg

ERROR: deployment failed: failing invoking action 'provision', error deploying infrastructure: deploying to subscription:

Deployment Error Details:
BadRequest: Semantic Search is not available in 'swedencentral' region. Please refer to https://aka.ms/semanticsearchavailability for list of available regions.

TraceID: 9d3ee1ea5ff5f7978e11e1bd050da2ad

ERROR: error executing step command 'provision': deployment failed: failing invoking action 'provision', error deploying infrastructure: deploying to subscription:

Deployment Error Details:
BadRequest: Semantic Search is not available in 'swedencentral' region. Please refer to https://aka.ms/semanticsearchavailability for list of available regions.

TraceID: 9d3ee1ea5ff5f7978e11e1bd050da2ad

Any log messages given by the failure

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

azd version?

run azd version and copy paste here.

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

pamelafox commented 8 months ago

:( CCing search team @mattgotteiner @srbalakr It'd be great to get it in swedencentral since thats popular now for gpt4 reasons. I dont want to add yet another location prompt like we have for OpenAI and Doc Intel.

ntabernacle commented 7 months ago

Some feedback: I found the locations a real pain when running azd up. Getting everything in the same RG, same region and with enough regional OpenAI quota took a lot of fiddling. It also seems to refuse to use existing resources in places I'd expect to avoid duplication of billable resources.

I'll have a look through the issues and see if I can be more specific and contribute.

Lawndemon commented 7 months ago

this remains a huge problem for most countries. I have the same problem in Canada where all services OTHER than OpenAI are in Canada Central and ONLY OpenAI is in Canada East. Still haven't managed to hack it together and get this working yet as of writing this.

update: I've got it working by adding a new param openailocation and using it for both the OpenAI service and the ContentSafety service. I also manually provisioned both services and hardcoded the keys into the script(s) for my first test(s) prior to adding the new parameter.