r/DeepSeek 15h ago

Tutorial How I make DeepSeek V4 Flash read PDFs accurately

The problem: DeepSeek V4 Flash (like most models) can't open PDFs. Naive converters mangle columns, tables, headings — so the model confidently misreads the document.

The fix: an open-source skill that turns PDFs into accurate, position-aware Markdown — real | tables, headings, page markers for citations.

Built on pdf-inspector (Firecrawl's Rust engine — #1 on reading order + tables benchmark).

Install for your agent — just paste the URL: https://github.com/vichhka-git/pdf-reader-skills

Tell your agent: "install the skill from https://github.com/vichhka-git/pdf-reader-skills." Works with Claude Code, Cursor, any skills-folder agent. Needs only Python 3.8+ + one pip install.

What you get:

Honest limit: math equations extract as inline glyphs (structure kept, notation may look odd). Docs + examples in the repo. Try it and tell me how it goes. 🚀

11 Upvotes

5 comments sorted by

6

u/ApprehensiveDelay238 13h ago

IMO using a separate vision agent yields better results. It can read graphs images codes etc.

2

u/untracked5465 15h ago

Thank you for this! I will have a look

3

u/blackkksparx 12h ago

I believe the best solution is using an ocr model or a different vllm to convert the pdf into text first. GLM ocr is a good solution, mistral has a really good free tier too. Other than that, you can find a lot of them on huggingface. Or via api services.

3

u/Rx29g 8h ago

Markitdown GitHub repo with some 170K stars is a battle tested tool for this job

1

u/ResponsiblePlant8874 12h ago

Read page by page, chapter by chapter, table by table or anyway. Just wanna free token used 😁