mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #9238] [CLOSED] WIP: docling integration #61196
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/9238
Author: @MichaelKarpe
Created: 2/2/2025
Status: ❌ Closed
Base:
dev← Head:feature/docling📝 Commits (1)
0196db6feat: minimal docling integration📊 Changes
4 files changed (+8 additions, -3 deletions)
View changed files
📝
backend/open_webui/retrieval/loaders/main.py(+5 -2)📝
backend/open_webui/routers/retrieval.py(+1 -1)📝
pyproject.toml(+1 -0)📝
src/lib/components/admin/Settings/Documents.svelte(+1 -0)📄 Description
Changelog Entry
Description
These are very minimal changes to test docling for experimental purposes, not ready to be released yet. The goal is just to highlight what could be done for integrating docling for contributors who would have time for further testing and implementation. I will not have enough time in the coming days or weeks to build further, please do feel free to build upon this.
Approach 1 : using langchain_docling as in the first commit of this PR. I made it work but it used the CPU and not the GPU, leading to unreasonable processing times (a few minutes) for hundreds of pages PDFs. Proposed improvements:
Approach 2 : using docker image as Docling team has been recently active in docling-serve (see https://github.com/DS4SD/docling-serve/pkgs/container/docling-serve) and we can probably expect soon a docling docker image as for Apache Tika. Then Ctrl+F of Tika usage in Open WebUI repo and replicate the logic for Docling. Here also to pay attention to CPU/GPU considerations.
Both approaches could possibly be implemented so that the user can choose between both options depending on their needs.
Added
Changed
Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
Screenshots or Videos
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.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.