Azure-Samples / chat-with-your-data-solution-accelerator

A Solution Accelerator for the RAG pattern running in Azure, using Azure AI Search for retrieval and Azure OpenAI large language models to power ChatGPT-style and Q&A experiences. This includes most common requirements and best practices.
https://azure.microsoft.com/products/search
MIT License
818 stars 423 forks source link

Can not use byod #1370

Closed TheModin closed 3 weeks ago

TheModin commented 4 weeks ago

Describe the bug

After successfully deploying the solution with the variables according to: instructions

Expected behavior

When setting Conversational flow to "byod" I get the following error when asking something regarding the contracts uploaded. Cannot read properties of undefined (reading '0')


Debugging information

Steps to reproduce

Steps to reproduce the behavior:

  1. Deploy the solution according to info
  2. Upload contracts from sample folder
  3. Change conversational flow to "byod" in the admin interface
  4. Ask a question "list all contracts ....."
  5. See error Cannot read properties of undefined (reading '0')

Screenshots

image

Logs


Tasks

To be filled in by the engineer picking up the issue

Roopan-Microsoft commented 4 weeks ago

Hi @TheModin - Thanks for your feedback.

We will investigate from our end; meanwhile can you please share us the exceptions from App Insights if any.

Thanks for your patience!

TheModin commented 3 weeks ago

Hi. Not sure what to look in to here. image

Roopan-Microsoft commented 3 weeks ago

Hey @TheModin ,Thank you for the update. We attempted to reproduce the issue on our end but were unable to do so following your steps. Please try redeploying the latest code and let us know if the problem persists.

In the meantime, could you please provide more details? Below, we’ve highlighted the steps for fetching the information.

image

Similar way please collect for other failures as well.

TheModin commented 3 weeks ago

I have redeployed. Some more information. I am using rbac, since there are some policies in place that disables the option to use keys. There was a lot of errors saying that the PrinipalID of the web front did not have permissions, so I added permissions at the resource group level according to Manually assign roles, but that didn't help. I then followed this. That made the rbac error go away, but it still doesn't work, same error. Attaching log from App insights. batch_push_results.txt InProc.txt image

TheModin commented 3 weeks ago

It also looks like the function app is still trying to use keys even though it's deployed with rbac variables. `Key based authentication is not permitted on this storage account. RequestId:c701061c-6003-0028-4524-16ea53000000 Time:2024-10-04T06:13:14.3591380Z Status: 403 (Key based authentication is not permitted on this storage account.) ErrorCode: KeyBasedAuthenticationNotPermitted

Content: <?xml version="1.0" encoding="utf-8"?>KeyBasedAuthenticationNotPermittedKey based authentication is not permitted on this storage account. RequestId:c701061c-6003-0028-4524-16ea53000000 Time:2024-10-04T06:13:14.3591380Z

Headers: Server: Microsoft-HTTPAPI/2.0 x-ms-request-id: c701061c-6003-0028-4524-16ea53000000 x-ms-error-code: KeyBasedAuthenticationNotPermitted Date: Fri, 04 Oct 2024 06:13:13 GMT Content-Length: 269 Content-Type: application/xml ` image

Roopan-Microsoft commented 3 weeks ago

Hey @TheModin,

please check the "Allow storage account key access" option in your storage account settings. Ensure that it is enabled. If it is disabled, enable it and test again.

image

Please let me know if its resolved.

Roopan-Microsoft commented 3 weeks ago

Hi @TheModin - Hope your issue is resolved.

I'm closing this issue for now. Please feel free to reopen it if any problems arise. I'm happy to help!