Skip to content

feat: Add serialization/deserialization to DoclingConverter #3267

Merged
sjrl merged 6 commits into
mainfrom
se-de-docling
May 4, 2026
Merged

feat: Add serialization/deserialization to DoclingConverter #3267
sjrl merged 6 commits into
mainfrom
se-de-docling

Conversation

@sjrl
Copy link
Copy Markdown
Contributor

@sjrl sjrl commented May 4, 2026

Related Issues

Proposed Changes:

Add a to_dict and from_dict methods to DoclingConverter to properly support serialization and deserialization.

Add warnings at serialization time that we don't support serializing the converter or chunker fields since they are classes that are not easily serialized.

How did you test it?

Added and updated unit tests.

Notes for the reviewer

Checklist

@sjrl sjrl requested a review from a team as a code owner May 4, 2026 08:22
@sjrl sjrl requested review from julian-risch and removed request for a team May 4, 2026 08:22
@github-actions github-actions Bot added integration:docling type:documentation Improvements or additions to documentation labels May 4, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 4, 2026

Coverage report (docling)

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  integrations/docling/src/haystack_integrations/components/converters/docling
  converter.py 68
Project Total  

This report was generated by python-coverage-comment-action

@sjrl sjrl merged commit 75644fe into main May 4, 2026
16 checks passed
@sjrl sjrl deleted the se-de-docling branch May 4, 2026 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integration:docling type:documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add to_dict / from_dict deserialization methods to DoclingConverter

2 participants