mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 23:21:44 -05:00
[GH-ISSUE #12613] issue: Mistral OCR only partially parses PDF documents #55324
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 @Sky-creates on GitHub (Apr 8, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/12613
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.2
Ollama Version (if applicable)
No response
Operating System
Debian
Browser (if applicable)
Chrome
Confirmation
README.md.Expected Behavior
I have encountered an issue with Mistral OCR's PDF parsing functionality when used within the knowledge base component. When processing the same PDF document:
This suggests the issue may be specific to how Mistral OCR is implemented within the knowledge base integration.
Technical details:
Is there a known limitation in how Open WebUI implements the Mistral API for knowledge base document processing? Are there configuration parameters that need adjustment to enable complete document parsing?
Actual Behavior
Mistral OCR in knowledge base: Produces incomplete extraction, significantly shorter than expected
Steps to Reproduce
Logs & Screenshots
open-webui | 2025-04-08 15:58:12.929 | INFO | open_webui.routers.files:upload_file:88 - file.content_type: application/pdf - {}
open-webui | 2025-04-08 15:58:12.950 | INFO | open_webui.retrieval.loaders.mistral:_upload_file:59 - Uploading file to Mistral API - {}
open-webui | 2025-04-08 15:58:15.416 | INFO | open_webui.retrieval.loaders.mistral:_upload_file:78 - File uploaded successfully. File ID: c412a12e-6bb7-498f-84d5-05135671dc83 - {}
open-webui | 2025-04-08 15:58:15.417 | INFO | open_webui.retrieval.loaders.mistral:_get_signed_url:86 - Getting signed URL for file ID: c412a12e-6bb7-498f-84d5-05135671dc83 - {}
open-webui | 2025-04-08 15:58:15.887 | INFO | open_webui.retrieval.loaders.mistral:_get_signed_url:97 - Signed URL received. - {}
open-webui | 2025-04-08 15:58:15.887 | INFO | open_webui.retrieval.loaders.mistral:_process_ocr:105 - Processing OCR via Mistral API - {}
open-webui | 2025-04-08 15:58:21.559 | INFO | open_webui.retrieval.loaders.mistral:_process_ocr:124 - OCR processing done. - {}
open-webui | 2025-04-08 15:58:21.560 | INFO | open_webui.retrieval.loaders.mistral:_delete_file:133 - Deleting uploaded file ID: c412a12e-6bb7-498f-84d5-05135671dc83 - {}
open-webui | 2025-04-08 15:58:21.979 | INFO | open_webui.retrieval.loaders.mistral:_delete_file:142 - File deleted successfully: {'id': 'c412a12e-6bb7-498f-84d5-05135671dc83', 'object': 'file', 'deleted': True} - {}
open-webui | 2025-04-08 15:58:22.043 | INFO | open_webui.routers.retrieval:save_docs_to_vector_db:811 - save_docs_to_vector_db: document s41586-025-08725-5-test2.pdf file-1ea98d0f-06e4-4f16-aabc-dd77fca5d28a - {}
open-webui | 2025-04-08 15:58:22.068 | INFO | open_webui.routers.retrieval:save_docs_to_vector_db:894 - adding to collection file-1ea98d0f-06e4-4f16-aabc-dd77fca5d28a - {}
open-webui | 2025-04-08 15:58:28.314 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 100.70.207.127:0 - "POST /api/v1/files/ HTTP/1.1" 200 - {}
open-webui | 2025-04-08 15:58:28.416 | INFO | open_webui.routers.retrieval:save_docs_to_vector_db:811 - save_docs_to_vector_db: document s41586-025-08725-5-test2.pdf c939aaec-f3ef-4cf9-a043-04a69e5fc9b4 - {}
open-webui | 2025-04-08 15:58:28.437 | INFO | open_webui.routers.retrieval:save_docs_to_vector_db:883 - collection c939aaec-f3ef-4cf9-a043-04a69e5fc9b4 already exists - {}
open-webui | 2025-04-08 15:58:28.437 | INFO | open_webui.routers.retrieval:save_docs_to_vector_db:894 - adding to collection c939aaec-f3ef-4cf9-a043-04a69e5fc9b4 - {}
open-webui | 2025-04-08 15:58:33.951 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 100.70.207.127:0 - "POST /api/v1/knowledge/c939aaec-f3ef-4cf9-a043-04a69e5fc9b4/file/add HTTP/1.1" 200 - {}
Additional Information
No response