microsoft / OpenAIWorkshop

workshop materials to build intelligent solutions on Open AI
MIT License
455 stars 270 forks source link

Issue in employee support copilot #198

Open shashankms9 opened 3 months ago

shashankms9 commented 3 months ago

Hi @james-tn,

We are facing an issue with hr_copilot after updating the value in secrets.env after updating USE_AZCS value to True and providing all the required URL, Key and Indexes names.

please find the below screenshot for reference

image

When we try question to the copilot it throws an error TypeError: Session.request() got an unexpected keyword argument 'vectors'

please find the below screenshot for reference

image

Please help us in resolving this issue

james-tn commented 3 months ago

I think it's because Azure AI Search recently updated their SDK. If your goal is to experience with multi-agent, then you can check out this newer demo: https://github.com/microsoft/OpenAIWorkshop/tree/main/scenarios/incubations/copilot/travel_leisure If you want to update the code yourself, follow this example to update the search function: https://github.com/Azure/azure-search-vector-samples/blob/main/demo-python/code/basic-vector-workflow/azure-search-vector-python-sample.ipynb