Skip to content

feat: make Docling processing configurable - #875

Open
Mastyal wants to merge 12 commits into
Cinnamon:mainfrom
Mastyal:feat/configurable-docling
Open

Mastyal wants to merge 12 commits into
Cinnamon:mainfrom
Mastyal:feat/configurable-docling

Conversation

@Mastyal

@Mastyal Mastyal commented Oct 8, 2026

Copy link
Copy Markdown

Description

  • Add environment settings for pre-downloaded Docling artifacts, OCR engine selection, and OCR languages.
  • Configure the application-level Docling reader from those settings.
  • Extend DoclingReader to build PDF pipeline options for EasyOCR, Tesseract, Tesseract CLI, and OCRmac.
  • Preserve Docling's existing default behavior when no new settings are supplied.
  • Document offline usage and provide focused regression tests.

Related to #754.

Type of change

  • New features (non-breaking change).
  • Bug fix (non-breaking change).
  • Breaking change (fix or feature that would cause existing functionality not to work as expected).

Checklist

  • I have performed a self-review of my code.
  • I have added thorough tests if it is a core feature.
  • There is a reference to the original bug report and related work.
  • I have commented on my code where clarification is needed.
  • The feature is well documented.

Testing

  • pre-commit run --all-files: all hooks passed, including Black, isort, Flake8, mypy, Prettier, and codespell.
  • pytest tests/test_docling_loader.py -q from libs/kotaemon with the lockfile's Python 3.11 environment: 3 passed.
  • The full pytest libs/kotaemon/tests/ run was attempted locally, but collection is blocked by an upstream Python 3.10/LlamaIndex typing incompatibility and proxy-dependent tiktoken downloads; GitHub Actions will run the complete suite on Linux.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant