← Về thư mục
📄 / / profiles / r-and-d / raw_evidence / scientific-agent-skills / skills / liteparse / references / choosing_a_parser.md

Choosing a Document Parser

Use this guide to pick the right tool in the scientific-agent-skills repo (or LlamaParse for cloud escalation).

flowchart TD
  start[User has a document task]
  start --> q1{Need PDF merge split forms or encryption utilities?}
  q1 -->|yes| pdfSkill[pdf skill]
  q1 -->|no| q2{Need Markdown audio video EPUB or Azure table extraction?}
  q2 -->|yes| markitdown[markitdown skill]
  q2 -->|no| q3{Need bounding boxes fast local parse or page PNGs for agents?}
  q3 -->|yes| liteparse[liteparse skill]
  q3 -->|no| q4{Complex tables handwriting or production cloud pipeline?}
  q4 -->|yes| llamaparse[LlamaParse cloud]
  q4 -->|no| liteparse

Comparison table

Criterion LiteParse MarkItDown pdf skill LlamaParse
Primary output Layout text + JSON with bboxes Markdown PDF bytes / extracted text Structured markdown / JSON (cloud)
Runs locally Yes Yes Yes No (cloud API)
Bounding boxes Yes No Limited Yes (cloud)
OCR Tesseract + optional HTTP OCR Yes (images/PDF) Via external tools Advanced
Page screenshots Yes (PNG) No Image extract only Varies
Office → text Via LibreOffice convert Native converters N/A Yes
Audio / video / EPUB No Yes No Some formats
PDF merge / split / forms No No Yes No
Best for RAG grounding, agent vision, batch PDF corpus LLM-friendly Markdown pipelines PDF manipulation Hard documents at scale

Decision rules

Choose LiteParse when

Choose MarkItDown when

Choose the pdf skill when

Choose LlamaParse when

Link: https://docs.cloud.llamaindex.ai/llamaparse/overview

Combining tools

Common pipelines:

  1. LiteParse → chunk + embed — JSON/text for vector store; bboxes for UI highlights.
  2. LiteParse screenshots + vision model — figures and tables; text JSON for search.
  3. LiteParse text → MarkItDown-style post-processing — only if you must have Markdown; otherwise use LiteParse text directly.
  4. pdf skill merge → LiteParse parse — assemble supplementary PDFs, then extract.

Avoid running LiteParse and MarkItDown on the same file unless you have distinct consumers (coordinates vs Markdown).