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.59k stars 2.48k forks source link

Error in cognitive search with gpt-35-turbo-16k model #98

Closed akashtalole closed 1 year ago

akashtalole commented 1 year ago

Getting below error Invalid AzureCognitiveSearch configuration detected: 403 Client Error: Forbidden for url: https://mysearch.search.windows.net/indexes/mykb?api-version=2021-04-30-Preview

when i checked in cogintive search explorer url shows like https://mysearch.search.windows.net/indexes/mykb/docs?api-version=2021-04-30-Preview

pamelafox commented 1 year ago

Are you getting that error when running locally or when deployed?

akashtalole commented 1 year ago

I am getting this error while running locally when i ask question with data.

pamelafox commented 1 year ago

Have you set the required environment variables for search?

AZURE_SEARCH_SERVICE AZURE_SEARCH_INDEX AZURE_SEARCH_KEY

akashtalole commented 1 year ago

Yes I have set these parameters correctly

superpoussin22 commented 1 year ago

GPT-35-turbo-16k is unstable for me , it was at one moment removed from some region

sarah-widder commented 1 year ago

@akashtalole are you using an admin key for AZURE_SEARCH_KEY? A regular query key is insufficient.

akashtalole commented 1 year ago

No I was using query key. Now tested with admin key for search. It is working now. Thanks for help.