Repository navigation
Conversation
Add the eight per-stage preset / custom-config pairs (layout, OCR, table structure, picture description, picture classification, code & formula, chart extraction and the VLM pipeline) along with the doChartExtraction, includePageImages and mdCompactTables flags, bringing ConvertDocumentOptions up to the ConvertDocumentsOptions schema that Docling Serve exposes. Presets are plain strings because the available ids are registered by the deployment rather than fixed by this library, and custom configs are Map<String, Object> because the server types them as dict[str, Any], the kind registry is open, and the module has to stay neutral across Jackson 2 and 3. Mark the six options Docling Serve deprecates, and the four types reachable only through them, as deprecated without forRemoval: they still work, and when they go is Docling Serve's decision rather than this library's. Drop the "Requires generate_parsed_pages=True" sentence from HeadingHierarchyOptions#getUseStyle(), which does not correspond to any property of the schema and sent readers hunting for a setter that should not exist. Note that several preset ids from the server's own OpenAPI examples, such as docling_layout_default and tableformer_v2, are not registered in every Docling Serve build, so the javadoc and docs steer callers to "default". Convert-side chunking, the missing OutputFormat values and the mistyped vlmPipelineModelLocal/Api fields are tracked separately in docling-project#821, docling-project#822 and docling-project#823. Closes docling-project#819 Assisted-By: Claude Code <noreply@anthropic.com> Signed-off-by: Eric Deandrea <eric.deandrea@ibm.com>
Presets are registered per deployment, and default is not an exception: code_formula_preset=default is rejected by the v1.35.0 image the testcontainers module pins. Add it to the warning and stop presenting default as universally safe. Also correct the custom-config description, which said a custom config overrides the preset while the paragraph above it said the two are mutually exclusive, and generalized the `kind` selector to every stage even though vlmPipelineCustomConfig takes model_spec and engine_options instead. Assisted-By: Claude Code <noreply@anthropic.com> Signed-off-by: Eric Deandrea <eric.deandrea@ibm.com>
…oups The previous wording put seven of the eight stages in the kind group and only the VLM pipeline outside it. The server schema splits them 4/4: ocr/layout/table_structure/picture_classification take a dict with a kind discriminator, while picture_description/code_formula/chart_extraction, like the VLM pipeline, are typed to VLM engine option models that require model_spec and engine_options and take no kind. Add an example for the second group, taken from the server's own chart_extraction_custom_config example. Assisted-By: Claude Code <noreply@anthropic.com> Signed-off-by: Eric Deandrea <eric.deandrea@ibm.com>
TesseractCliOcrOptions declares kind "tesseract", not "tesseract_cli". The Javadoc example came from the server's own OpenAPI example, which is wrong: the version-compatibility logs in this repo show every probed image registering 'tesserocr' and 'tesseract' and no 'tesseract_cli'. Assisted-By: Claude Code <noreply@anthropic.com> Signed-off-by: Eric Deandrea <eric.deandrea@ibm.com>
Bumps DOCLING_IMAGE_VERSION from v1.35.0 to v1.41.0. ConvertDocumentsOptions
is unchanged across this range, but preset registration is image-specific:
layoutPreset("docling_layout_default") and tableStructurePreset("tableformer_v2")
still fail, ocrPreset("tesseract") still fails for a different reason, and
codeFormulaPreset("default") now succeeds where it previously failed.
Two integration tests needed updates for genuine behavioral differences in
v1.41.0: single-file ZipTarget conversions now name the archive after the
source file instead of "converted_docs.zip", and a heading's extracted text
gained a space ("PDF backends" instead of "PDFbackends").
Split out of docling-project#819 so the behavioral change from the bump is attributable to
the bump rather than buried in a feature change.
Issue: docling-project#824
Signed-off-by: Eric Deandrea <eric.deandrea@ibm.com>
…s-stage-presets Signed-off-by: Eric Deandrea <eric.deandrea@ibm.com> # Conflicts: # docs/src/doc/docs/docling-serve/serve-api.md # docs/src/doc/docs/whats-new.md
The merge of upstream/main duplicated shouldConvertWithStagePresets, shouldIncludePageImagesWhenRequested, shouldNotIncludePageImagesByDefault, shouldEmitCompactMarkdownTablesWhenRequested and convertTableToMarkdown. Signed-off-by: Eric Deandrea <eric.deandrea@ibm.com>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the Docling Serve v1.41.0 image update.
No open issues 🎉
What changed in this PR
Updates the default Docling Serve container from v1.35.0 to v1.41.0, aligning integration tests and documentation with the newer image’s behavior.
Changes:
- Bumps the default Testcontainers image to
v1.41.0. - Updates integration-test expectations for extracted heading text and single-file ZIP filenames.
- Refreshes preset compatibility warnings and release notes.
| File | Description |
|---|---|
docs/src/doc/docs/whats-new.md |
Documents the image bump and single-file ZIP naming change. |
docs/src/doc/docs/docling-serve/serve-api.md |
Updates preset warnings for v1.41.0. |
docling-testcontainers/src/main/java/ai/docling/testcontainers/serve/config/DoclingServeContainerConfig.java |
Sets the default image version to v1.41.0. |
docling-serve/docling-serve-client/src/test/java/ai/docling/serve/client/AbstractDoclingServeClientTests.java |
Adjusts heading-text and ZIP-filename assertions for the new image. |
Review effort: Balanced
:java_duke: JaCoCo coverage report
|
|
||||||||||||||
|
HTML test reports are available as workflow artifacts (zipped HTML). • Download: Artifacts for this run |
|
HTML test reports are available as workflow artifacts (zipped HTML). • Download: Artifacts for this run |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
DoclingServeContainerConfig.DOCLING_IMAGE_VERSIONfromv1.35.0tov1.41.0.ConvertDocumentsOptionsis identical across this range, so no new properties needed mapping.v1.41.0container and updated the warning inserve-api.md:layoutPreset("docling_layout_default")andtableStructurePreset("tableformer_v2")still fail,ocrPreset("tesseract")still fails (for a different reason now), andcodeFormulaPreset("default")now succeeds where it previously failed.ZipTargetconversions now name the archive after the source file instead ofconverted_docs.zip, and a heading's extracted text gained a space ("PDF backends"instead of"PDFbackends").whats-new.md.docs/testcontainers.mddoesn't name the pinned default version anywhere, so it needed no changes.Test plan
./gradlew --no-daemon :docling-serve-client:test :docling-testcontainers:testagainst the new image./gradlew --no-daemon spotlessCheckghcr.io/docling-project/docling-serve:v1.41.0containerSplit out of #819.
Closes #824
Assisted-By: Claude Code noreply@anthropic.com