Simplify vision LLM image description prompt

This commit is contained in:
CREDO23 2026-04-09 14:56:18 +02:00
parent afd3c2cde2
commit caaec2e0a7

View file

@ -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."
)