Skip to main content

Mistral OCR plugin for Docling

Project description

docling-ocr-mistral

Mistral OCR plugin for Docling.

Install

pip install docling-ocr-mistral

Use

from docling.datamodel.base_models import InputFormat
from docling.datamodel.pipeline_options import PdfPipelineOptions
from docling.document_converter import DocumentConverter, PdfFormatOption
from docling_ocr_mistral import MistralOcrOptions

pipeline_options = PdfPipelineOptions(
    allow_external_plugins=True,
    ocr_options=MistralOcrOptions(),
)

converter = DocumentConverter(
    format_options={
        InputFormat.PDF: PdfFormatOption(pipeline_options=pipeline_options),
    }
)
result = converter.convert("document.pdf")

Set MISTRAL_API_KEY or pass MistralOcrOptions(api_key="...").

CLI:

docling --allow-external-plugins --ocr-engine mistral_ocr document.pdf

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

docling_ocr_mistral-0.1.1.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

docling_ocr_mistral-0.1.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file docling_ocr_mistral-0.1.1.tar.gz.

File metadata

  • Download URL: docling_ocr_mistral-0.1.1.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for docling_ocr_mistral-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e9591aac591376067af8af0835d1b5147132c47aef828d8d6f181dc99c13e766
MD5 23a9fb77b776a4e68421359bdeec1555
BLAKE2b-256 d135fa0d7873569929b26eba929951132675e21d661902e0fec8bc4ec32546b5

See more details on using hashes here.

Provenance

The following attestation bundles were made for docling_ocr_mistral-0.1.1.tar.gz:

Publisher: release.yml on geoHeil/docling-ocr-mistral

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file docling_ocr_mistral-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for docling_ocr_mistral-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e3d95eff52a07194265d26689aa29066bd3b72f6e74fb95c7b97458c5d87bda1
MD5 bceecea75fd8c0953ab4c793f99cefb9
BLAKE2b-256 56cecf14718aa10d1c7393a9b603c1f3a295dfa3e9c7e51c65c1485765999828

See more details on using hashes here.

Provenance

The following attestation bundles were made for docling_ocr_mistral-0.1.1-py3-none-any.whl:

Publisher: release.yml on geoHeil/docling-ocr-mistral

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page