0

Document conversion with SmolDocling and OpenVINO

SmolDocling is a multimodal Image-Text-to-Text model designed for efficient document conversion. It retains Docling's most popular features while ensuring full compatibility with Docling through seamless support for DoclingDocuments (The JSON that can be exported using Docling follows this schema. T

Example · مثال

Content

Document conversion with SmolDocling and OpenVINO

<p>SmolDocling is a multimodal Image-Text-to-Text model designed for efficient document conversion. It retains Docling's most popular features while ensuring full compatibility with <a href=https://github.com/docling-project/docling> Docling </a> through seamless support for <strong>DoclingDocuments</strong> (The JSON that can be exported using Docling follows this schema. The DoclingDocument type also models the metadata that may be attached to the converted document.) 🚀 Model Features:

  • 🏷️ DocTags for Efficient Tokenization – Introduces DocTags an efficient and minimal representation for documents that is fully compatible with DoclingDocuments.
  • 🔍 OCR (Optical Character Recognition) – Extracts text accurately from images.
  • 📐 Layout and Localization – Preserves document structure and document element bounding boxes.
  • 💻 Code Recognition – Detects and formats code blocks including identation.
  • 🔢 Formula Recognition – Identifies and processes mathematical expressions.
  • 📊 Chart Recognition – Extracts and interprets chart data.
  • 📑 Table Recognition – Supports column and row headers for structured table extraction.
  • 🖼️ Figure Classification – Differentiates figures and graphical elements.
  • 📝 Caption Correspondence – Links captions to relevant images and figures.
  • 📜 List Grouping – Organizes and structures list elements correctly.
  • 📄 Full-Page Conversion – Processes entire pages for comprehensive document conversion including all page elements (code, equations, tables, charts etc.)
  • 🔲 OCR with Bounding Boxes – OCR regions using a bounding box.
  • 📂 General Document Processing – Trained for both scientific and non-scientific documents.
  • 🔄 Seamless Docling Integration – Import into Docling and export in multiple formats.

More details about model can be found in the model card and paper.

In this tutorial we consider how to convert and run SmolDocling model using OpenVINO Optimum Intel integration. Additionally, we demonstrate how to apply model optimization techniques like weights compression using NNCF.

Source and license

Source
Intel OpenVINO Notebooks
Original
openvinotoolkit/openvino_notebooks/notebooks/smoldocling
License
Apache-2.0