Document processing fails/times out when uploading oversized PDF files
Describe the bug When I upload a very large PDF file (e.g., a 500-page report), the system seems to freeze in the 'Processing' state for a long time, and eventually times out or fails with an error. The document never becomes available for querying.
To Reproduce Steps to reproduce the behavior:
- Go to the document upload page.
- Select a PDF file that is extremely large (e.g., hundreds of pages).
- Click on upload.
- Wait for the processing to finish.
- See error or timeout.
Expected behavior The system should either process the document successfully by breaking it down into smaller parts, or provide a clear progress indicator, rather than just timing out.
Screenshots/Logs The UI just shows a timeout error after 5 minutes.
Additional context We frequently deal with large corporate reports and need the system to reliably handle these oversized files without crashing.
Fixed by #127 (squash merged into staging).