Repository navigation
Releases: saibal-roy/docling-batch-extract
Releases · saibal-roy/docling-batch-extract
Release list
v0.1.0
First public release: a batch PDF → Markdown extractor for RAG on one CPU-only 2 vCPU / 8 GB server running Ubuntu 26.04 LTS. Plans: v1–v7.
Added
extract.py: convertsinputs/*.pdfwith docling-serve tooutputs/<name>.json, then moves each PDF tocompleted/, or toerrors/on failure. Per-document logs inlogs/<name>.log. Exit codes: 0 all succeeded, 1 some PDFs failed, 2 server down.- Parallel page-range conversion for text PDFs (
--chunk-pages 5); scanned PDFs are detected automatically, converted whole and OCR'd (--ocr auto). - Memory-aware dispatch (
--mem-high 0.75), container-restart recovery, and "busy is not down" polling. pdf_backend=pypdfium2by default. docling's default PDF reader ran out of memory on JBIG2 scans.- Every output JSON carries
extractor_versionandengine(docling-serve and docling versions, PDF reader).extract.py --versionprints the version. docker-compose.yml: CPU-onlydocling-serve-cpu:v1.36.0(latest stable), published on127.0.0.1only. Sizing comes from.env(written bysetup_ubuntu.shfrom the machine's CPUs and RAM): 1 worker × 2 threads, ~6.5 GB limit on the 2 vCPU / 8 GB target.extract.pyreads the worker count from the container.- Scripts:
setup_ubuntu.sh(server setup),demo_run.sh(first run + benchmark, with a CC BY 4.0 demo PDF),cleanup.sh,preview_site.shandcheck_github_pages.sh(documentation site). - Tests: 18 acceptance checks, benchmarks,
tests/profile_benchmark.sh(size any machine), and the go-ahead gatetests/ubuntu_container_test.sh: Ubuntu 26.04 LTS on a simulated 2 vCPU / 8 GB machine. - CI (lint, data guard, setup + acceptance on Ubuntu 26.04 LTS), a Pages workflow (documentation site), and a Release workflow. All dependencies pinned to their latest stable releases (
requests2.34.2,pypdf6.19.0, Actionscheckout@v7…). - Documentation: README, STORY.md, prompts.md, design history, and a documentation site built with MkDocs.
Known trade-off
- docling-serve-cpu v1.36.0 converts scanned PDFs ~20–25 % faster but text PDFs ~45–80 % slower than v1.30.0 at 2 vCPU (
tests/results/2026-10-08_profiles/). Chosen for scan-heavy legal and claims batches. Re-check when upgrading docling.
Security
- docling-serve has no authentication. It's bound to loopback, and acceptance check A25 and
demo_run.shfail if it's published beyond loopback. The README's AWS guidance: never open port 5001 in a security group. SECURITY.md: report vulnerabilities privately through GitHub (private vulnerability reporting is enabled); never attach real documents.