When building Retrieval-Augmented Generation (RAG) pipelines for Korean corporate or government documents, ingestion breaks long before retrieval or prompting. Legacy HWP/HWPX files, spreadsheets full of merged cells, and multi-column PDFs routinely turn into scrambled text streams.

OpenDocKit (hyeonsang010716/OpenDocKit), surfaced on GeekNews on November 20, 2026, tackles this preprocessing layer with a deterministic Python library—converting messy office formats into clean, section-indexed Markdown without requiring PyTorch, vision models, or GPUs.

Architecture Built for Messy Office Formats

Based on the project's repository documentation, OpenDocKit focuses on four practical engineering details:

  • First-class HWP 5.x and HWPX support: Implements a from-scratch HWP 5.x parser alongside HWPX support, CP949 encoding detection, and Unicode NFC normalization—handling dense, nested administrative tables common in Korean organizations without calling external office binaries.
  • Chunk-safe table and layout recovery: Instead of leaving merged spreadsheet cells blank, OpenDocKit repeats merged values across rows so downstream chunkers preserve row context. It also reconstructs multi-column PDF reading order and extracts equations as LaTeX.
  • Citation-ready output: Alongside full Markdown (result.text), convert_file returns page-, slide-, or sheet-level sections for accurate source citations and a warnings list flagging any skipped or approximated elements.
  • Content inspection and worker isolation: Detects formats by file contents rather than extensions (catching HTML tables disguised as .xls) and runs parsing inside disposable worker processes with bounded recursion and size limits for untrusted uploads.
# Reference snippet from repository documentation (not executed in this environment)
from opendockit import convert_file

result = convert_file("document.hwp")

print(result.text)      # Structured Markdown with tables and LaTeX
print(result.sections)  # Page/slide/sheet breakdown for citations
print(result.warnings)  # Logged approximations or skipped elements

Disclosed Limitations and Verification Status

The author is explicit about what OpenDocKit does not solve yet:

Dimension Current Status
Verification 49 author-reported structure checks pass; no independent third-party benchmark yet
OCR Not supported—scanned image-only PDFs require an external OCR pipeline
Throughput Disclosed as slower than certain competing parsers
Integrations LangChain/LlamaIndex loaders, Open WebUI support, and uvx opendockit-mcp

Choosing Between OpenDocKit, Docling, and MarkItDown

Before standardizing on any parser, run a small side-by-side test against 10–20 representative internal documents:

  1. Heavy scanned PDFs: If documents lack a text layer, OCR-capable pipelines such as Docling remain necessary.
  2. HWP/HWPX and complex merged tables: If lightweight converters like MarkItDown scramble Korean office tables or drop HWP files, OpenDocKit is a strong candidate to benchmark.
  3. High-volume batch indexing: Measure conversion latency alongside table-structure preservation to confirm throughput fits your ingestion SLA.