From c71236ba07fbed0abeb132b5d1ba65cadf050079 Mon Sep 17 00:00:00 2001 From: Vaclav Cerny Date: Wed, 4 Jun 2025 14:25:31 +0200 Subject: [PATCH] feat(loader): enhance picture description prompt for improved detail and clarity --- backend/open_webui/retrieval/loaders/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/open_webui/retrieval/loaders/main.py b/backend/open_webui/retrieval/loaders/main.py index 817d9ddbc..0dc530c96 100644 --- a/backend/open_webui/retrieval/loaders/main.py +++ b/backend/open_webui/retrieval/loaders/main.py @@ -297,7 +297,7 @@ class Loader: "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' + ' "prompt": "Analyze the image and provide a comprehensive, detailed description. Identify all visible objects, their attributes, actions taking place, spatial relationships, and any contextual or inferred connections. Use clear, structured, and informative language suitable for downstream retrieval or knowledge extraction tasks."\n' '}' ) },