Skip to content

Commit d74a415

Browse files
committed
tweak prompt to explain images with text with more accuracy
1 parent 3ff2be9 commit d74a415

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dalai/worker.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ const worker = new Worker(
309309
model: 'qwen2.5vl:7b',
310310
system: `Your task is to transcribe the content of a PDF page given to you as an image.
311311
If the given PDF page contains an image, or a diagram, describe it in detail.
312+
IMPORTANT: If an image includes text, interpret that text as precisely as possible.
312313
Enclose the description in an **image** tag. For example: **image** This is an image of a cat. **image**.
313314
You are also given the text extracted from the PDF using a PDF parser.
314315
Your task is to combine these two sources of information to produce the most accurate transcription possible.

0 commit comments

Comments
 (0)