feat(plugin): Introduce plugin support for document conversion#772
feat(plugin): Introduce plugin support for document conversion#772ayoub-ibm wants to merge 2 commits intodocling-project:mainfrom
Conversation
Merge ProtectionsYour pull request matches the following merge protections and will not be merged until they are valid. 🟢 Enforce conventional commitWonderful, this rule succeeded.Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/
|
|
@ayoub-ibm Thanks for this feature proposal. We are reviewing if the high-level concepts make sense in the overall Docling design. Will keep you posted. Meanwhile, we noticed your commits are missing the DCO sign-off. Here are some instructions for adding it
|
…lize the interface (docling-project#742) * fix get image with cropbox Signed-off-by: Michele Dolfi <dol@zurich.ibm.com> * allow the usage of backends in the enrich models and generalize the interface Signed-off-by: Michele Dolfi <dol@zurich.ibm.com> * move logic in BaseTextImageEnrichmentModel Signed-off-by: Michele Dolfi <dol@zurich.ibm.com> * renaming Signed-off-by: Michele Dolfi <dol@zurich.ibm.com> --------- Signed-off-by: Michele Dolfi <dol@zurich.ibm.com> Signed-off-by: Ayoub El Bouchtili <Ayoub.elbouchtili@gmail.com>
This change enables users to extend the document conversion process with custom logic through plugins. - Introduced a PluginManager to handle preprocessing and postprocessing plugins in DocumentConverter. - Updated DocumentConverter to accept and initialize a list of plugins. - Implemented plugin execution within the document processing pipeline, enabling custom modifications before and after conversion. - Updated ConversionResult to include metadata about the plugins used during conversion. - Updated the CLI to accept plugin paths and load them dynamically. - Expanded documentation with examples for creating and using plugins. - Added test cases to verify plugin integration and ensure correct execution in various scenarios. Signed-off-by: Ayoub El Bouchtili <Ayoub.elbouchtili@gmail.com>
54a7f82 to
224d633
Compare
|
@dolfim-ibm Thanks for the feedback. I've corrected the missing DCO sign-off. My apologies for the oversight. I'll also be adding more to the "Concepts" section soon to better explain and showcase the plugins implementation. |
Merge ProtectionsYour pull request matches the following merge protections and will not be merged until they are valid. 🟢 Enforce conventional commitWonderful, this rule succeeded.Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/
|
|
Closing this PR for now. |
This change enables users to extend the document conversion process with custom logic through plugins.
Checklist: