cost. Each LLM call is billed to your provider account.
data. Page content is sent to the LLM service you configure; do not use it on confidential documents without checking.
Who it is forA developer feeding hard PDFs, with math or forms, into a knowledge base.
The problemDefault conversion can mangle multi-page tables and inline equations.
The outcomeA higher quality markdown file with fewer broken tables and formulas.
What you need first
- Python 3.10+ and PyTorch
- pip
- A GPU is best, CPU and Apple Silicon also work in fast mode
Steps
- Install with
pip install marker-pdf - Configure your LLM backend as described in the README LLM services section
- Run
marker_single /path/to/file.pdfon a hard document - Add
--use_llmto enable hybrid mode - Add
--redo_inline_mathwith it for the highest quality math conversion
Prompt for your agent
Using datalab-to/marker, configure an LLM service from its README, then run `marker_single /path/to/file.pdf --use_llm --redo_inline_math` on <my PDF> and compare the result with a run without the flag.
Caveat. The default LLM service is Gemini and needs its own API key.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for datalab-to/marker and "Raise accuracy with hybrid LLM mode"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer