microsoft / sample-app-aoai-chatGPT

Sample code for a simple web chat experience through Azure OpenAI, including Azure OpenAI On Your Data.
MIT License
1.43k stars 2.14k forks source link

"AZURE_SEARCH_QUERY_TYPE = vectorSimpleHybrid" not supported any more can causing the web app to not start #873

Closed ThoSt81 closed 1 month ago

ThoSt81 commented 1 month ago

Describe the bug I've redeployed from Git today as I wanted to stay up to date via the Deployment Center (Sync). This appeared to run through fine but the web app is no longer working and showing an "Application Error".

Additional context It appears that the following setting is no longer supported/working:

AZURE_SEARCH_QUERY_TYPE = vectorSimpleHybrid

and I need to change this to:

AZURE_SEARCH_QUERY_TYPE = vector_simple_hybrid

The readme still lists vectorsimplehybrid as a valid option and this would need to be updated.

abhahn commented 1 month ago

Hi @ThoSt81 , thanks for reporting your issue. I've just merged a change to allow camel case versions of the query types, since the Azure OpenAI Studio is still deploying apps with these values for now.

I've just tested that using the "Sync" option from the Deployment Center in the Azure Portal should solve the issue. I'm going to close this issue for now, but feel free to reopen if you continue to see a problem.