mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-10 15:54:15 -05:00
PDF upload fails if images present #2118
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @danpicton on GitHub (Sep 19, 2024).
Bug Report
Installation Method
podman-compose.yml.envEnvironment
Open WebUI Version: v0.3.13, v0.3.20 tested
Ollama (if applicable): n/a
Operating System: Debian 12.7
Browser (if applicable): Brave (Version 1.69.168 Chromium: 128.0.6613.138 (Official Build) unknown (64-bit))
Confirmation:
Expected Behavior:
PDFs containing images upload/embed for querying.
Actual Behavior:
Persistent "in progress" indicator; unable to query.
Description
Bug Summary:
During PDF upload, if the PDF contains an image, the upload fails to complete. PDFs without images fail to load.
The issue persists even if I rename the PDF as suggested in a number of other similar issues.
Reproduction Details
Use sample PDF here: https://www.learningcontainer.com/download/sample-pdf-with-images/
Non-image PDF also used to confirm standard functionality: https://www.learningcontainer.com/download/sample-pdf-file-for-testing/
Steps to Reproduce:
Logs and Screenshots
Browser Console Logs:
Docker Container Logs:
None relevant.
Screenshots/Screen Recordings (if applicable):
This persists indefinitely:
Screencast from 2024-09-19 10-27-08.webm
Additional Information
Default model is
gpt-4o-mini, embedding model is OpenAI'stext-embedding-3-small. I have also tested with the defaultsentence-transformers/all-MiniLM-L6-v2model, but hit the same issue.Note
If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!