opendatalab/OmniDocBench/skills
OmniDocBench evaluation helper
Guides agents through OmniDocBench setup, input validation, OCR evaluation, result parsing, and Docker, conda, or SSH troubleshooting.
What OmniDocBench evaluation helper does
The OmniDocBench evaluation helper guides a coding agent through evaluating document parsing results against OmniDocBench ground truth. It covers OCR and document parsing evaluations, including MinerU outputs. The agent starts by checking the ground-truth JSON file, prediction Markdown directory, output location, and runtime access. It counts prediction files, identifies empty Markdown files, and checks for incorrect directory paths before launching an evaluation.
For end-to-end evaluations, the skill prepares a separate YAML configuration and runs python pdf_validation.py --config .... It recommends Docker, particularly when the Formula CDM metric is required. Conda-based execution and remote SSH workflows are also documented. The bundled generate_end2end_config.py script creates configurations from input paths and worker settings. Users can disable CDM when it is unnecessary. The skill also advises reducing worker counts when memory limits affect execution.
After evaluation, parse_results.py reads metric files and generates a Markdown score table. Its output includes available Overall, Text, Formula, Table, and Reading-order metrics, along with result paths and validation details. These details can include page counts, empty predictions, timeouts, and errors. The workflow recommends read-only mounts for ground-truth and prediction inputs, with a separate writable output directory. The repository documents Docker and conda setup for the evaluation software but does not provide a separate command for installing the agent skill.
Install
git clone https://github.com/opendatalab/OmniDocBench.git && mkdir -p .claude/skills && cp -r OmniDocBench/skills .claude/skills/omnidocbench-eval-helperRead the security check below before you run it. The repository's own instructions win if they differ.
Security check
What the skill's files do, from reading them. A flag that nobody has checked yet says "Not checked", never "No".
- Runs scripts
- Yes
- Uses the network
- No
- Installs hooks
- No
- Asks for secrets
- No
The scan identifies two bundled Python scripts: generate_end2end_config.py and parse_results.py. It reports no required network access, installed hooks, or required secrets. The scripts write YAML configurations and read local evaluation results. The broader workflow can execute Docker commands, pull a container image, and run commands over SSH when requested. Review both scripts and the proposed execution commands before granting access. The documented Docker workflow mounts ground-truth and prediction files read-only while allowing writes to the selected output directory. Use a separate output directory to protect existing results on shared systems.
Scan details: Ships 2 script files: scripts/generate_end2end_config.py, scripts/parse_results.py. Checked at commit ea2d138c7d2e.
Use cases
- Evaluate MinerU or other document parsing outputs against OmniDocBench ground truth.
- Generate end-to-end evaluation configurations with adjustable workers and optional Formula CDM.
- Run OmniDocBench evaluations through Docker, conda, or remote SSH.
- Parse evaluation JSON files into metric tables and identify execution warnings.
Limitations
- End-to-end evaluation requires OmniDocBench ground-truth JSON and corresponding page-level Markdown predictions.
- Formula CDM requires TeX Live with CJK support, ImageMagick PDF access, and Ghostscript. Docker is recommended.
- Evaluation can consume substantial memory. The skill recommends reducing workers when runs stall or encounter out-of-memory errors.
- The repository ships no dedicated skill installer. The install command manually copies the skills/ folder, including SKILL.md and the scripts/ folder, into .claude/skills/omnidocbench-eval-helper.
Sources
- omnidocbench-eval-helper skill folderRepositoryPrimarygithub.com
- opendatalab/OmniDocBenchRepositoryPrimarygithub.com
- github.com/opendatalab/OmniDocBench/blob/main/skills/SKILL.mdRepositoryPrimary
- raw.githubusercontent.com/opendatalab/OmniDocBench/main/skills/SKILL.mdWeb
- raw.githubusercontent.com/opendatalab/OmniDocBench/main/skills/scripts/generate_end2end_config.pyWeb
- raw.githubusercontent.com/opendatalab/OmniDocBench/main/skills/scripts/parse_results.pyWeb

