Skip to content

DS4SD/docling-haystack

Repository files navigation

Docling Haystack converter

PyPI version PyPI - Python Version Poetry Code style: black Imports: isort Pydantic v2 pre-commit License MIT

A Docling converter integration for Haystack.

Installation

Simply install docling-haystack from your package manager, e.g. pip:

pip install docling-haystack

Usage

Basic usage in a Haystack pipeline looks as follows:

from haystack import Pipeline
from docling_haystack.converter import DoclingConverter

idx_pipe = Pipeline()
# ...
converter = DoclingConverter()
idx_pipe.add_component("converter", converter)
# ...

For end-to-end usage samples check out the examples.