From 8644e81a1c352c127d3e1decef6fdc389c6f81dc Mon Sep 17 00:00:00 2001 From: Vaclav Cerny Date: Wed, 4 Jun 2025 12:34:39 +0200 Subject: [PATCH] feat(loader): add picture description configuration for DoclingLoader --- backend/open_webui/retrieval/loaders/main.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backend/open_webui/retrieval/loaders/main.py b/backend/open_webui/retrieval/loaders/main.py index 0c7daf905..c4730ea70 100644 --- a/backend/open_webui/retrieval/loaders/main.py +++ b/backend/open_webui/retrieval/loaders/main.py @@ -294,6 +294,12 @@ class Loader: "do_picture_classification": self.kwargs.get( "DOCLING_DO_PICTURE_DESCRIPTION" ), + "picture_description_local": ( + '{\n' + ' "repo_id": "HuggingFaceTB/SmolVLM-256M-Instruct",\n' + ' "prompt": "Describe the image in detail, including objects, actions, and connections. Use a descriptive and informative style."\n' + '}' + ) }, ) elif (