Azure-Samples / azure-search-openai-demo

A sample app for the Retrieval-Augmented Generation pattern running in Azure, using Azure AI Search for retrieval and Azure OpenAI large language models to power ChatGPT-style and Q&A experiences.
https://azure.microsoft.com/products/search
MIT License
5.57k stars 3.74k forks source link

File uploading limitation #1702

Open mirojs opened 2 weeks ago

mirojs commented 2 weeks ago

Please provide us with the following information:

Trying to upload two PDFs individually, one around 50MB (scanned), the other 70MB(non-scanned), but got "Error uploading file - please try again or contact admin".

--> Already modified max_single_put_size=100 1024 1024, --> Document intelligence limit of standard plan is 500MB, --> Smaller size PDF beyond 30 pages was fine, --> Chrome Developer tool Status Code: 413 Payload Too Large

Please help to check, thanks.

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Click upload button and select the file to upload.

Any log messages given by the failure

Expected/desired behavior

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

azd version?

run azd version and copy paste here.

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

pamelafox commented 1 week ago

It sounds like we need to do some re-architecting to support uploading larger file sizes, I don't think I tested with such large files, and we weren't sure what users would expect to upload. I'll tackle this when I can, but the next few weeks are a bit busy, so if others take this on, PRs welcome.