{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "datalab-to-marker--boost-marker-accuracy-with-an-llm-for-forms-and-math",
 "repo": "datalab-to/marker",
 "repo_url": "https://github.com/datalab-to/marker",
 "repo_slug": "datalab-to-marker",
 "title": "Raise accuracy with hybrid LLM mode",
 "page_title": "How to raise accuracy with hybrid LLM mode with Marker",
 "summary": "Add the use_llm flag so an LLM merges tables across pages and fixes inline math and forms.",
 "who": "A developer feeding hard PDFs, with math or forms, into a knowledge base.",
 "problem": "Default conversion can mangle multi-page tables and inline equations.",
 "outcome": "A higher quality markdown file with fewer broken tables and formulas.",
 "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.pdf` on a hard document",
  "Add `--use_llm` to enable hybrid mode",
  "Add `--redo_inline_math` with it for the highest quality math conversion"
 ],
 "agent_prompt": "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.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The default LLM service is Gemini and needs its own API key.",
 "category": "Data and analytics",
 "tags": [
  "Data and analytics"
 ],
 "lang": "python",
 "requirements": [
  "Python 3.10+ and PyTorch",
  "pip",
  "A GPU is best, CPU and Apple Silicon also work in fast mode"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "cost",
   "notice": "Each LLM call is billed to your provider account."
  },
  {
   "tag": "data",
   "notice": "Page content is sent to the LLM service you configure; do not use it on confidential documents without checking."
  }
 ],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/datalab-to-marker/boost-marker-accuracy-with-an-llm-for-forms-and-math/",
 "md": "https://dedupedai.com/use-cases/datalab-to-marker/boost-marker-accuracy-with-an-llm-for-forms-and-math/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/datalab-to-marker--boost-marker-accuracy-with-an-llm-for-forms-and-math.json",
 "api_version": "v1"
}
