| name | liteparse |
| description | Fast document parsing for RAG pipelines via LiteParse (Rust, 100x faster than Python parsers) |
| tags | ["rag","document-parsing","rust","pdf","llm"] |
| related_skills | ["crawl4ai","huggingface-hub"] |
LiteParse — Fast Document Parsing for RAG
Parse PDFs, DOCX, HTML, and other documents 100x faster than Python parsers. From the LlamaIndex team.
Prerequisites
- Rust toolchain (or Python pip)
- LiteParse installed:
cargo install liteparse or pip install liteparse
Usage
CLI — Parse a single document
liteparse document.pdf --output ./parsed/
CLI — Parse a directory
liteparse ./documents/ --recursive --output ./parsed/
Python API — Integration with RAG pipelines
from liteparse import parse
result = parse("document.pdf")
print(result.markdown)
print(result.tables)
print(result.images)
print(result.metadata)
MCP Server — For AI agents
liteparse serve --port 8091
Supported Formats
| Format | Support | Notes |
|---|
| PDF | ✅ Full | Text, tables, images, metadata |
| DOCX | ✅ Full | Headings, lists, tables |
| HTML | ✅ Full | DOM-aware extraction |
| Markdown | ✅ Passthrough | Clean formatting |
| EPUB | ✅ Full | Chapter structure preserved |
Pitfalls
- Scanned PDFs: LiteParse extracts embedded text. For scanned PDFs, pair with OCR (tesseract) first.
- Complex tables: Multi-row spanning tables may need manual cleanup in output.
- Memory usage: Large documents (>100MB) may need chunked processing.
- Encoding: Non-UTF-8 documents may need preprocessing.
Verification
liteparse test.pdf --output ./test-output/
cat ./test-output/test.md
ls ./test-output/