mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-27 17:04:57 -05:00
[GH-ISSUE #17500] feat: Preserve Images in Document Uploads (Notes + Knowledge Library) #33838
Reference in New Issue
Block a user
Originally created by @HenkieTenkie62 on GitHub (Sep 17, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/17500
Check Existing Issues
Problem Description
When uploading documents into either the Notes section or the Knowledge Library (for RAG-based search), the content is converted into Markdown. During this process, images embedded in the document are lost.
However, images are available in the payload provided by the document parser, which means they could technically be preserved in both contexts.
(At least for the Marker API and Docling as far as I know).
Currently:
In Notes, images can sometimes be pasted successfully, but this only works when copying from tools like MS Paint.
Copy-pasting directly from Word or other sources does not embed the image. This may be related to format handling (e.g., BMP vs JPEG/PNG support).
For uploaded documents, images are stripped entirely during the Markdown conversion.
Desired Solution you'd like
At least for notes, for knowledge/RAG this maybe needs a lot more changes to be able to add this to the database.
Benefits
Higher fidelity: Uploaded documents remain closer to their original form, preserving essential visual information.
Improved usability in Notes: Users can collaborate on documents that include both text and images, not just stripped-down text. Effectively making notes an AI document toolkit.
Stronger RAG capabilities: Images often carry important semantic information (e.g., diagrams, charts). Preserving them enhances the knowledge base for retrieval and reasoning.
Consistency across features: A unified approach to handling document uploads benefits both collaborative work (Notes) and knowledge management (Library).
Alternatives Considered
No response
Additional Context
No response