mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 06:03:26 -05:00
[PR #11186] [CLOSED] fix PDF loader when using default Content Extraction Engine and OCR #22680
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/11186
Author: @rgaricano
Created: 3/5/2025
Status: ❌ Closed
Base:
dev← Head:dev📝 Commits (4)
9f77c64Fix PDF loader when using default CEE and OCR4ec5710refac: assetsaac5e07Merge branch 'dev' of https://github.com/rgaricano/open-webui into dev7af2a2cUpdate main.py📊 Changes
3 files changed (+4 additions, -4 deletions)
View changed files
📝
backend/open_webui/retrieval/loaders/main.py(+2 -2)📝
backend/requirements.txt(+1 -1)📝
pyproject.toml(+1 -1)📄 Description
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Fix PDF loader when using default CEE and OCR
Description
Fix PDF loader when using default Content Extraction Engine and OCR enabled
Commit to fixing issues due to incorrect dimension calculation when reshaping images using the Langchain class Pypdfloader.
Fixed in Langchain by using the PyMuPdf library, which performs this task better, instead of Pypdf.
Using the PyMuPDFLoader call instead of the PyPDFLoader call fixes errors encountered when processing PDF files with images.
Added
Changed
replace call to langchain-community PyPDFLoader class by langchain-community PyMuPDFLoader class
Deprecated
Removed
Fixed
Errors uploading pdf files with default content extraction engine (internal) and OCR feature
Security
Breaking Changes
Additional Information
https://github.com/open-webui/open-webui/discussions/11171
https://github.com/open-webui/open-webui/discussions/4458
Screenshots or Videos
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.