Skip to content

epichunker: one service that reads every kind of file

Krishan Marco Madan2 min readEngineering

Short answer

epichunker is a file parsing service. A caller submits a file over HTTP, the service picks the right parser for its type and runs it on one of many engines (docling, unstructured, gotenberg, local and remote AI models, Whisper) kept warm and ready, and the caller gets back structured output for the whole file, including every file found inside it.

Most of the AI features we build have to read something first: an invoice, a technical manual, a mailbox export, a recorded call. Every format has its own best tool, and every tool comes with its own setup, its own models and its own ways of failing. epichunker puts all of them behind one API.

One API, many engines

A parser handles one family of files: PDFs, office documents, web pages, emails and mailboxes, archives, e-books, images, audio, video, source code and even compiled programs. Each one runs on the engine that does that job best: docling and unstructured for documents, gotenberg to convert office files, local or remote AI models to read images and emails, Whisper to transcribe speech. The caller does not need to know any of this. It sends the file, and the service picks the parser from the file's type, unless the call names one.

Files inside files

Real files nest. A zip holds a mailbox, the mailbox holds emails, the emails hold attachments, and one of the attachments is a Word document. epichunker parses every file it extracts as a job of its own, as deep as the call allows, and the caller can wait for the whole tree with a single request.

Always warm

Starting a document engine and loading its models can take longer than the parsing itself. So the service keeps a pool of warm instances for every engine: processes that are already running and waiting for work. A job takes one instance for its whole run, and the pool prefers an instance that already has the job's model loaded. When every instance is busy, the job waits in the queue, and the jobs of one engine always start in the order they arrived.

Predictable by design

Every job has an id chosen by the caller. It moves from queued to running to completed, or it fails, once, with its error. Nothing is retried behind the caller's back, so the caller decides what happens next. A job cut short by a restart goes back into the queue and runs again from the start. Every parser is tested end to end on real files, on real engines and real GPUs.

The result is the reading layer under our AI work: one place that turns any file into something a model can use.

Share