mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 23:21:44 -05:00
[PR #12486] [MERGED] fix: text file handling with docling #45977
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/12486
Author: @FabioPolito24
Created: 4/5/2025
Status: ✅ Merged
Merged: 4/5/2025
Merged by: @tjbck
Base:
dev← Head:text-file-handling-docling📝 Commits (1)
cd0a1b4fix: fix for text file handling with docling📊 Changes
1 file changed (+15 additions, -11 deletions)
View changed files
📝
backend/open_webui/retrieval/loaders/main.py(+15 -11)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
This PR fixes text file handling in the docling engine by applying the same text file detection logic used with tika. Previously, text files were being sent to the Docling API unnecessarily when they could be handled directly by the TextLoader.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.