mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-02 06:39:02 -05:00
[PR #14659] [MERGED] **fix**: do_picture_description feature when using Docling as an external document parser #62396
Reference in New Issue
Block a user
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/14659
Author: @vaclcer
Created: 6/4/2025
Status: ✅ Merged
Merged: 6/4/2025
Merged by: @tjbck
Base:
dev← Head:vaclavs-picture-description📝 Commits (5)
8644e81feat(loader): add picture description configuration for DoclingLoaderc4278f4fix description vs classification mismatchc71236bfeat(loader): enhance picture description prompt for improved detail and clarity0b3719cThis commit fixes do_picture_description feature when using Docling as an external document parser.9772c18fix(loader): remove deprecated picture description configuration📊 Changes
1 file changed (+7 additions, -7 deletions)
View changed files
📝
backend/open_webui/retrieval/loaders/main.py(+7 -7)📄 Description
Changelog Entry
Description
do_picture_descriptionfeature of Docling was implemented, but not working properlyAdded
so far, I have added only an hard-coded defaults for Docling's prefered VLM "HuggingFaceTB/SmolVLM-256M-Instruct" including a prompt to extract the information.
Changed
There were mismatch between
do_picture_classificationanddo_picture_description. Fixed.Deprecated
none
Removed
none
Fixed
There were mismatch between
do_picture_classificationanddo_picture_description. Fixed.Breaking Changes
none
Additional Information
In next iteration, I should make (at least) the model and the prompt configurable. There is also Docling's feature to use remote API for picture descriptions. That should be added too.
Screenshots or Videos
Input:

Output:

Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.