Skip to content

fix: point default_code_formula_preset at a real Docling preset - #721

Merged
dolfim-ibm merged 1 commit into
docling-project:mainfrom
CyberRik:fix/default-code-formula-preset
Oct 13, 2026
Merged

dolfim-ibm merged 1 commit into
docling-project:mainfrom
CyberRik:fix/default-code-formula-preset

Conversation

@CyberRik

@CyberRik CyberRik commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Fixes #716.

Since v1.35.0, every conversion with do_formula_enrichment or do_code_enrichment enabled fails while the pipeline is set up:

KeyError: "Preset 'default' not found for CodeFormulaVlmOptions. Available presets: ['codeformulav2', 'granite_docling']"

Cause. default_code_formula_preset defaults to the alias "default". The converter manager maps the default alias onto this setting, so it must name a real Docling preset. docling-jobkit 3.8.0 now resolves the code/formula preset whenever enrichment is enabled (before, only when code_formula_preset was given), so the bad default is hit on a stock deployment. docling-jobkit fixed its own default in docling-project/docling-jobkit#233, but docling-serve passes its setting through and overrides that fix.

Change. The default is now granite_docling, the same value docling-jobkit uses. The docs table and the default-value test are updated to match.

Tests. tests/test_default_presets.py builds the converter manager from _build_cm_config() with stock settings and checks that default resolves for every preset stage, and that a request with formula or code enrichment enabled resolves its options. On main, the three code/formula cases fail with the KeyError above; with this change all pass. tests/test_env_parsing.py passes.

The setting defaulted to the alias "default", which is not a Docling preset. docling-jobkit 3.8.0 resolves the code/formula preset whenever code or formula enrichment is enabled, so every such request failed with "Preset 'default' not found for CodeFormulaVlmOptions". Use granite_docling, the default docling-jobkit itself switched to.

Signed-off-by: Ritankar Mondal <[email protected]>
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

✅ DCO Check Passed

Thanks @CyberRik, all your commits are properly signed off. 🎉

@mergify

mergify Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Merge Protections

🟢 Merge protection satisfied — ready to merge.

Show 1 satisfied protection

🟢 Enforce conventional commit

Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/

  • title ~= ^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert)(?:\(.+\))?(!)?:

@dolfim-ibm dolfim-ibm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@dolfim-ibm
dolfim-ibm merged commit 7e77b29 into docling-project:main Oct 13, 2026
12 checks passed
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.

v1.35.0: do_formula_enrichment fails with "Preset 'default' not found for CodeFormulaVlmOptions"

2 participants