What is Chunkr?
Chunkr is a self-hosted document intelligence service that converts PDFs, PowerPoint files, Word documents, and images into structured, LLM-ready chunks. It runs layout analysis and OCR with bounding boxes, then outputs structured HTML and Markdown that you can feed into a retrieval pipeline. It sits in the Parsing & Ingestion category of the Retrieval & Knowledge (RAG) tools and is open-source, licensed AGPL-3.0.
Overview
Chunkr is a self-hosted document intelligence service that converts PDFs, PowerPoint files, Word documents, and images into structured, LLM-ready chunks. It runs layout analysis and OCR with bounding boxes, then outputs structured HTML and Markdown that you can feed into a retrieval pipeline.
It is built for developers who need a document ingestion step in front of a RAG system and want to run it on their own infrastructure. The open-source AGPL release uses community and open-source models, while the separate Chunkr Cloud API runs proprietary in-house models for higher accuracy and adds features like native Excel parsing.
Within the parsing and ingestion category, Chunkr handles the messy first stage of a retrieval pipeline: detecting document structure, reading text from scanned pages, and splitting content into coherent chunks before embedding and indexing.
What it does
- Layout analysis that detects document structure across PDFs, PPTs, Word docs, and images
- OCR with bounding boxes so extracted text keeps its position on the page
- Outputs structured HTML and Markdown plus semantic chunks ready for RAG and LLM use
- Vision-language model processing for handling complex page content
- Configurable LLM backends via a models.yaml file or environment variables, using any OpenAI-compatible endpoint
- Self-hosted deployment with Docker Compose, with GPU, CPU-only, and Mac ARM compose files
Getting started
The open-source version runs locally with Docker Compose. Clone the repo, set up your configuration, and start the services.
Clone the repository
You need Docker and Docker Compose installed. The NVIDIA Container Toolkit is optional and only needed for GPU support.
git clone https://github.com/lumina-ai-inc/chunkr
cd chunkrSet up environment and model config
Copy the example environment file and the example models file, then edit models.yaml to point at your LLM provider.
cp .env.example .env
cp models.example.yaml models.yamlStart the services
Use the default command for GPU, or pick the CPU-only or Mac ARM compose overrides if you do not have a GPU.
# For GPU deployment:
docker compose up -d
# For CPU-only deployment:
docker compose -f compose.yaml -f compose.cpu.yaml up -d
# For Mac ARM architecture (M1, M2, M3, etc.):
docker compose -f compose.yaml -f compose.cpu.yaml -f compose.mac.yaml up -dAccess the web UI and API
Once the containers are running, open the web UI in your browser and send documents to the API.
# Web UI: http://localhost:5173
# API: http://localhost:8000Commands and code are distilled from the project's own documentation — always check the official repo for the latest.
When to use it
- Building the ingestion stage of a RAG pipeline that turns PDFs and Office files into clean, chunked text
- Extracting text and layout from scanned documents and images where positional bounding boxes matter
- Converting reports, slide decks, and Word documents into structured Markdown or HTML for downstream LLM processing
- Self-hosting document parsing on your own infrastructure when data cannot leave your environment
How Chunkr compares
Chunkr alongside other open-source parsing & ingestion tools AI/TLDR tracks, ranked by GitHub stars.
| Tool | Stars | What it does |
|---|---|---|
| MarkItDown | ★ 199k | A Microsoft Python utility that converts many file types, including Office docs and PDFs, into Markdown for LLMs. |
| MinerU | ★ 84.6k | A document extraction tool that converts PDFs and Office files into clean Markdown or JSON, with strong handling of complex layouts and CJK content. |
| Docling | ★ 71.2k | An IBM-originated document conversion pipeline that turns PDF, DOCX, PPTX, HTML, and more into structured, LLM-ready Markdown or JSON. |
| Marker | ★ 41.1k | A fast pipeline that converts PDFs and other documents to Markdown, JSON, or HTML while preserving tables, equations, and formatting. |
| OpenDataLoader PDF | ★ 30.4k | OpenDataLoader PDF turns any PDF into structured Markdown, JSON, or HTML with bounding boxes, and auto-tags untagged files into screen-reader-ready Tagged PDFs. |
| Repomix | ★ 29.5k | Repomix packs an entire repository into one file that is easy to feed to AI tools like Claude, ChatGPT, and Gemini. |
| Unstructured | ★ 15.8k | A library for ingesting and preprocessing many document types into clean, chunked elements ready for RAG pipelines. |
| Chunkr | ★ 4.2k | Open-source document intelligence API for layout analysis, OCR, and semantic chunking |

