deepseek-ai / deepseek-ai/DeepSeek-OCR-2

Analysis on Prompt + Document Type Compatibility

Open
#16 6 comments 4 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
3.4k
Forks
306
PR merge metrics
No merged PRs in 30d

Description

There are six prompt variants documented in the official codebase, and I've done some analysis on which prompt works best on which type of document.

Some findings:

![Screenshot 2026-01-27 at 11.19.10 PM](https://cdn-uploads.huggingface.co/production/uploads/664e6989d6d71e3dad304d71/ltP_Gv6jlgdQWUNwNXiiS.png)

1. Document `\n<|grounding|>Convert the document to markdown.` is the best generalist prompt over `\nFree OCR.`
2. General `\nDescribe this image in detail.` is the most reliable prompt, though it doesn't usually give you word for word output.
3. Rec `\nLocate <|ref|>{OBJECT}<|/ref|> in the image.` is effective with photos, but not documents.

You can view the full dataset, including exact model outputs, in an interactive web app here: https://deepseek-ocr-v2-demo.vercel.app

Curious to hear everyone's experiences on getting this model to perform well!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.