From caaec2e0a798a500b45a737b1bf7924ed12546db Mon Sep 17 00:00:00 2001 From: CREDO23 Date: Thu, 9 Apr 2026 14:56:18 +0200 Subject: [PATCH] Simplify vision LLM image description prompt --- surfsense_backend/app/etl_pipeline/parsers/vision_llm.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/surfsense_backend/app/etl_pipeline/parsers/vision_llm.py b/surfsense_backend/app/etl_pipeline/parsers/vision_llm.py index e75f81c4b..fb12a1e75 100644 --- a/surfsense_backend/app/etl_pipeline/parsers/vision_llm.py +++ b/surfsense_backend/app/etl_pipeline/parsers/vision_llm.py @@ -4,12 +4,9 @@ import mimetypes from langchain_core.messages import HumanMessage _PROMPT = ( - "Analyze this image thoroughly and produce a detailed markdown description.\n\n" - "Include:\n" - "- All visible text, transcribed verbatim\n" - "- Description of diagrams, charts, tables, or visual structures\n" - "- Key subjects, objects, or scenes depicted\n\n" - "Output only the markdown content, no preamble." + "Describe this image in markdown. " + "Transcribe any visible text verbatim. " + "Be concise but complete — let the image content guide the level of detail." )