microsoft / PubSec-Info-Assistant

Information Assistant, built with Azure OpenAI Service, Industry Accelerator
MIT License
339 stars 744 forks source link

Azure Function not running for uploaded files making them unavailable to chat with #154

Closed frostedflakess closed 1 year ago

frostedflakess commented 1 year ago

Describe the bug A clear and concise description of what the bug is. I am receiving an error message when asking my Accelerator questions. Pictures included for reference on this issue.

Screenshot 2023-08-07 095337 Screenshot 2023-08-07 101836 Screenshot 2023-08-07 101920 Screenshot 2023-08-07 104048

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error Error message show in screenshots when asking a question as well as when chatting.

Expected behavior A clear and concise description of what you expected to happen. I expected to receive an answer to my question referencing the PDF documents I had uploaded to my accelerator, however each time I am met with an error message. Screenshots If applicable, add screenshots to help explain your problem. Included above. Desktop (please complete the following information):

Additional context Add any other context about the problem here.

oliverlabs commented 1 year ago

I am facing a similar issue, once I upload a document, a green tick shows next to it. However, if I switch to the Upload Status tab, the list is empty.

Interestingly, if I go to an Azure Storage Account itself, I can see all the files uploaded there. Is there a way to solve it?

image

UPD: I redeployed into a newly created AOAI instance (instead of a pre-existing one) and it seems to be working. There's a minor delay while the Azure Function processes the document, but it works. I also had to replace the outdated davinci deployment model with chat-gpt35-turbo.

dayland commented 1 year ago

We are working to improve the “file status” to be more clear as well as moving to newer models in the next release, 0.3-Gamma.

dayland commented 1 year ago

Also the “Ask a question “ page will be retired in 0.3-Gamma in favor of the “Chat” page which can work the same way.

bprerad commented 1 year ago

I had a same error. What happens is that the function(s) that should be triggered once the file is uploaded to the "upload" container do not start processing the document. What I do, after the deployment is to restart the functions app through the portal and they start working as expected

dayland commented 1 year ago

We are addressing the function issue in 0.3-Gamma release. The issue was that the function was not marked with "AlwaysOn = true" thus it not starting right away and requiring it to manually be triggered. i.e. restart the function app.

dayland commented 1 year ago

Resolved in 0.3 Gamma release. Please update to the Gamma release.