diff --git a/docs/decisions.md b/docs/decisions.md
index 197450f..28ae038 100644
--- a/docs/decisions.md
+++ b/docs/decisions.md
@@ -4,6 +4,11 @@ One line per decision, with the reason, grouped by area in the order they were m
earlier ones; the first section lists what changed for the first public release. Add a line here when you change
the document format, a default, or a public interface.
+## Haystack document conversion
+
+- `ReadAnyDocConverter` uses the shared chunking helper so Haystack receives the same Markdown, split modes and
+ source metadata as the other adapters.
+
## Left-out values are warned by default (2026-11-20)
- `printed_but_empty` and `row_not_extracted` go into `warnings` on every extraction, not only with `review`:
diff --git a/docs/guides/integrations.md b/docs/guides/integrations.md
index 4b2ca15..01752da 100644
--- a/docs/guides/integrations.md
+++ b/docs/guides/integrations.md
@@ -1,12 +1,12 @@
---
-title: LangChain and LlamaIndex
-description: Use ReadAnyDoc as a document loader in LangChain and a reader in LlamaIndex to load PDFs, scans and Office files as clean Markdown with page metadata for RAG.
+title: LangChain, LlamaIndex and Haystack
+description: Load PDFs, scans and Office files as Markdown with page metadata in LangChain, LlamaIndex and Haystack.
---
-# LangChain and LlamaIndex
+# LangChain, LlamaIndex and Haystack
-ReadAnyDoc plugs into both frameworks as a loader. Each page becomes one document by default, as Markdown with tables
-in HTML, and carries its page number, so answers can point back to the page.
+Each page becomes one document by default, as Markdown with tables in HTML. The page number in the metadata lets
+answers point back to the page.
## LangChain
@@ -36,6 +36,26 @@ docs = SimpleDirectoryReader("contracts/", file_extractor={".pdf": reader, ".doc
index = VectorStoreIndex.from_documents(docs)
```
+## Haystack
+
+```bash
+pip install "readanydoc[engine,haystack]"
+```
+
+```python
+from haystack import Pipeline
+from readanydoc.integrations.haystack import ReadAnyDocConverter
+
+pipeline = Pipeline()
+pipeline.add_component("converter", ReadAnyDocConverter())
+result = pipeline.run({"converter": {"sources": ["report.pdf", "appendix.docx"]}})
+docs = result["converter"]["documents"]
+print(docs[0].content, docs[0].meta)
+```
+
+Pass local file paths in `sources` and set `split` and parse options on the converter. If a source fails to parse,
+the converter surfaces the error, as the other adapters do.
+
## Options
| Argument | Values |
@@ -44,5 +64,4 @@ index = VectorStoreIndex.from_documents(docs)
| any `readanydoc.parse` argument | `mode="model-only"`, `model=...`, `pages=[1, 2]`, ... |
The first document of a file carries `warnings` in its metadata when there are any (a page the provider declined,
-an illegible value). Typed extraction with citations is not part of the loaders; call
-[`readanydoc.extract`](extract.md) for that.
+an illegible value). For typed extraction with citations, call [`readanydoc.extract`](extract.md).
diff --git a/mkdocs.yml b/mkdocs.yml
index 0b40b8c..aff20b0 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -103,7 +103,7 @@ nav:
- Async jobs and webhooks: guides/jobs-webhooks.md
- File types: guides/file-types.md
- Test it yourself: guides/testing.md
- - LangChain and LlamaIndex: guides/integrations.md
+ - LangChain, LlamaIndex and Haystack: guides/integrations.md
- Use cases:
- Overview: use-cases/index.md
- Real documents, end to end: examples/real-documents.md
diff --git a/pyproject.toml b/pyproject.toml
index ba7cec6..d137d45 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -47,9 +47,10 @@ Changelog = "https://github.com/arpitpatel25/ReadAnyDoc/blob/main/CHANGELOG.md"
engine = ["onnxruntime>=1.18", "numpy>=1.26", "rapidocr>=3.10"]
# kept for older install commands; the MCP server is part of the base install since 0.1.5
mcp = []
-# document loaders for LangChain and LlamaIndex (readanydoc/integrations/)
+# document adapters for LangChain, LlamaIndex and Haystack (readanydoc/integrations/)
langchain = ["langchain-core>=0.3"]
llamaindex = ["llama-index-core>=0.12"]
+haystack = ["haystack-ai>=2.0"]
[project.scripts]
readanydoc = "readanydoc.cli:main"
diff --git a/readanydoc/integrations/__init__.py b/readanydoc/integrations/__init__.py
index 1f7135d..75bbf89 100644
--- a/readanydoc/integrations/__init__.py
+++ b/readanydoc/integrations/__init__.py
@@ -2,6 +2,7 @@
from readanydoc.integrations.langchain import ReadAnyDocLoader # pip install "readanydoc[langchain]"
from readanydoc.integrations.llamaindex import ReadAnyDocReader # pip install "readanydoc[llamaindex]"
+ from readanydoc.integrations.haystack import ReadAnyDocConverter # pip install "readanydoc[haystack]"
"""
from __future__ import annotations
diff --git a/readanydoc/integrations/haystack.py b/readanydoc/integrations/haystack.py
new file mode 100644
index 0000000..9d74b11
--- /dev/null
+++ b/readanydoc/integrations/haystack.py
@@ -0,0 +1,43 @@
+"""Haystack document converter.
+
+ pip install "readanydoc[engine,haystack]"
+
+ from readanydoc.integrations.haystack import ReadAnyDocConverter
+ docs = ReadAnyDocConverter().run(sources=["report.pdf"])["documents"]
+"""
+
+from __future__ import annotations
+
+from pathlib import Path
+from typing import Any, Union
+
+try:
+ from haystack import Document, component, default_to_dict
+except ImportError as e: # pragma: no cover
+ raise ImportError('The Haystack converter needs haystack-ai: pip install "readanydoc[haystack]"') from e
+
+from . import chunks
+
+
+@component
+class ReadAnyDocConverter:
+ """Converts local files to Markdown Documents, one per page by default.
+
+ ``split``: "page" (default), "document" or "block". Other keyword arguments go to ``readanydoc.parse``.
+ """
+
+ def __init__(self, split: str = "page", **parse_kwargs: Any):
+ self.split, self.parse_kwargs = split, parse_kwargs
+
+ def to_dict(self) -> dict[str, Any]:
+ """Serialize parse options as constructor keywords for Haystack pipelines."""
+ return default_to_dict(self, split=self.split, **self.parse_kwargs)
+
+ @component.output_types(documents=list[Document])
+ def run(self, sources: list[Union[str, Path]]) -> dict[str, list[Document]]:
+ """Convert the given file paths in order. Parser errors propagate to the caller."""
+ documents = []
+ for source in sources:
+ for text, metadata in chunks(source, self.split, **self.parse_kwargs):
+ documents.append(Document(content=text, meta=metadata))
+ return {"documents": documents}
diff --git a/tests/test_integrations.py b/tests/test_integrations.py
index b7a0d03..833eeea 100644
--- a/tests/test_integrations.py
+++ b/tests/test_integrations.py
@@ -1,4 +1,7 @@
-"""LangChain and LlamaIndex adapters: chunking by page, block and document, metadata, no model calls."""
+"""Framework adapters: chunking by page, block and document, metadata, no model calls."""
+from pathlib import Path
+from unittest.mock import Mock, call
+
import pytest
import readanydoc
@@ -44,3 +47,50 @@ def test_llamaindex_reader():
from readanydoc.integrations.llamaindex import ReadAnyDocReader
docs = ReadAnyDocReader(split="block").load_data("r.pdf", extra_info={"team": "finance"})
assert len(docs) == 3 and docs[0].metadata["team"] == "finance" and docs[0].text == "# Report"
+
+
+@pytest.fixture
+def haystack(monkeypatch):
+ monkeypatch.setenv("HAYSTACK_TELEMETRY_ENABLED", "false")
+ return pytest.importorskip("haystack")
+
+
+def test_haystack_converter_pipeline(haystack, monkeypatch):
+ from readanydoc.integrations.haystack import ReadAnyDocConverter
+
+ parse = Mock(side_effect=fake_parse)
+ monkeypatch.setattr(readanydoc, "parse", parse)
+ sources = ["r.pdf", Path("s.pdf")]
+ pipeline = haystack.Pipeline()
+ pipeline.add_component("converter", ReadAnyDocConverter(mode="model-only"))
+ assert pipeline.to_dict()["components"]["converter"]["init_parameters"] == {
+ "split": "page", "mode": "model-only",
+ }
+ results = pipeline.run({"converter": {"sources": sources}})
+ docs = results["converter"]["documents"]
+
+ assert parse.call_args_list == [call(source, mode="model-only") for source in sources]
+ assert all(isinstance(doc, haystack.Document) for doc in docs)
+ assert [doc.content for doc in docs] == ["# Report\n\nRevenue grew.", "
"] * 2
+ assert [doc.meta for doc in docs] == [
+ {"source": "r.pdf", "page": 1, "warnings": ["page 2: check"]},
+ {"source": "r.pdf", "page": 2},
+ {"source": "s.pdf", "page": 1, "warnings": ["page 2: check"]},
+ {"source": "s.pdf", "page": 2},
+ ]
+
+
+@pytest.mark.parametrize("split", ["document", "block"])
+def test_haystack_converter_split(haystack, split):
+ from readanydoc.integrations.haystack import ReadAnyDocConverter
+
+ docs = ReadAnyDocConverter(split=split).run(sources=["r.pdf"])["documents"]
+ assert [(doc.content, doc.meta) for doc in docs] == list(chunks("r.pdf", split))
+
+
+def test_haystack_converter_surfaces_parse_errors(haystack, monkeypatch):
+ from readanydoc.integrations.haystack import ReadAnyDocConverter
+
+ monkeypatch.setattr(readanydoc, "parse", Mock(side_effect=FileNotFoundError("missing.pdf")))
+ with pytest.raises(FileNotFoundError, match="missing.pdf"):
+ ReadAnyDocConverter().run(sources=["missing.pdf"])
diff --git a/uv.lock b/uv.lock
index 3816823..2f9a507 100644
--- a/uv.lock
+++ b/uv.lock
@@ -433,6 +433,15 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/12/b3/231ffd4ab1fc9d679809f356cebee130ac7daa00d6d6f3206dd4fd137e9e/distro-1.9.0-py3-none-any.whl", hash = "sha256:7bffd925d65168f85027d8da9af6bddab658135b840670a223589bc0c8ef02b2", size = 20277, upload-time = "2023-12-24T09:54:30.421Z" },
]
+[[package]]
+name = "docstring-parser"
+version = "0.18.0"
+source = { registry = "https://pypi.org/simple" }
+sdist = { url = "https://files.pythonhosted.org/packages/e0/4d/f332313098c1de1b2d2ff91cf2674415cc7cddab2ca1b01ae29774bd5fdf/docstring_parser-0.18.0.tar.gz", hash = "sha256:292510982205c12b1248696f44959db3cdd1740237a968ea1e2e7a900eeb2015", size = 29341, upload-time = "2026-04-14T04:09:19.867Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/a7/5f/ed01f9a3cdffbd5a008556fc7b2a08ddb1cc6ace7effa7340604b1d16699/docstring_parser-0.18.0-py3-none-any.whl", hash = "sha256:b3fcbed555c47d8479be0796ef7e19c2670d428d72e96da63f3a40122860374b", size = 22484, upload-time = "2026-04-14T04:09:18.638Z" },
+]
+
[[package]]
name = "et-xmlfile"
version = "2.0.0"
@@ -646,6 +655,36 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/04/4b/29cac41a4d98d144bf5f6d33995617b185d14b22401f75ca86f384e87ff1/h11-0.16.0-py3-none-any.whl", hash = "sha256:63cf8bbe7522de3bf65932fda1d9c2772064ffb3dae62d55932da54b31cb6c86", size = 37515, upload-time = "2025-04-24T03:35:24.344Z" },
]
+[[package]]
+name = "haystack-ai"
+version = "3.5.0"
+source = { registry = "https://pypi.org/simple" }
+dependencies = [
+ { name = "anyio" },
+ { name = "certifi" },
+ { name = "docstring-parser" },
+ { name = "filetype" },
+ { name = "httpx" },
+ { name = "jinja2" },
+ { name = "jsonschema" },
+ { name = "lazy-imports" },
+ { name = "markupsafe" },
+ { name = "more-itertools" },
+ { name = "networkx" },
+ { name = "numpy" },
+ { name = "openai" },
+ { name = "posthog" },
+ { name = "pydantic" },
+ { name = "python-dateutil" },
+ { name = "pyyaml" },
+ { name = "tenacity" },
+ { name = "tqdm" },
+]
+sdist = { url = "https://files.pythonhosted.org/packages/65/8d/84d94814e67679323a09a148a599d08fd92f10a436a10ecd0ec9b4f5c6a5/haystack_ai-3.5.0.tar.gz", hash = "sha256:afa27213cfa06ddf2283d06cf98e0c66c1f9500ba30196cf67c5b37612d22df5", size = 570805, upload-time = "2026-11-10T12:34:33.741Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/ac/5f/96d140d9748fe6a85321f49b02b68f7791834e8a033babb369f748a77d54/haystack_ai-3.5.0-py3-none-any.whl", hash = "sha256:b0328db32cc7e33867296127afa501b47d20a88b22713c6b33338004f3eeb06c", size = 785673, upload-time = "2026-11-10T12:34:32.015Z" },
+]
+
[[package]]
name = "httpcore"
version = "1.0.9"
@@ -809,6 +848,49 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/62/a1/3d680cbfd5f4b8f15abc1d571870c5fc3e594bb582bc3b64ea099db13e56/jinja2-3.1.6-py3-none-any.whl", hash = "sha256:85ece4451f492d0c13c5dd7c13a64681a86afae63a5f347908daf103ce6d2f67", size = 134899, upload-time = "2025-03-05T20:05:00.369Z" },
]
+[[package]]
+name = "jiter"
+version = "0.19.0"
+source = { registry = "https://pypi.org/simple" }
+sdist = { url = "https://files.pythonhosted.org/packages/67/de/8dfd06a2153d8ab6a83a8ca8f8ae3ff860ce2fe324ee6a5d05294b621c2a/jiter-0.19.0.tar.gz", hash = "sha256:ba3064f8be276d7cfb83c2fb85c858be533da2c2f80f9b048c3781b45a57a195", size = 665248, upload-time = "2026-11-06T15:03:33.462Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/8c/cd/88cf9efec4d4b6cb816233a6fbfcd842e9675012b2827c6abee4f87e53f1/jiter-0.19.0-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:0282eae10bbccfabcb6001ced6a20abc5e05e26c6316e7729c8fc1510bd3b8e1", size = 290088, upload-time = "2026-11-06T15:01:25.103Z" },
+ { url = "https://files.pythonhosted.org/packages/86/56/371651ed5fdbab064b9ca39f5ceddd1bad2175bc1d4c81915eb63ac1fa3d/jiter-0.19.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:730b0387fbea21b71b86b6975e20da7a364b04c4428eba0d15e6f0a7b20aa59b", size = 314238, upload-time = "2026-11-06T15:01:26.672Z" },
+ { url = "https://files.pythonhosted.org/packages/71/56/357172c32d0763f5cf8eb1afb8f5ded5ba314856eccbdb600fc82efe8b18/jiter-0.19.0-cp312-cp312-manylinux1_i686.manylinux_2_5_i686.whl", hash = "sha256:cfbf731056b76d2d600f11ee895ca5d4d39d22d881562d65ada3ecbaf6053d25", size = 332123, upload-time = "2026-11-06T15:01:28.273Z" },
+ { url = "https://files.pythonhosted.org/packages/b1/a8/9c0e83f11fd067d1973e8f801e78d0c2ea1186aef7cd6bf9e7c847c16836/jiter-0.19.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:fcce75459e06cf811395581f6d256e2535d165ec4d223b809115a59b4ea6f398", size = 335561, upload-time = "2026-11-06T15:01:29.834Z" },
+ { url = "https://files.pythonhosted.org/packages/0a/e9/d49c126dad2bc47d8e02392eb7ffae797134f021f4dcfc15bccc3b704c7a/jiter-0.19.0-cp312-cp312-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:10e863d52095bc1106d22a4b9285bbe722a56d7f3e65f9a5d09ec9814a31be43", size = 322601, upload-time = "2026-11-06T15:01:31.313Z" },
+ { url = "https://files.pythonhosted.org/packages/ad/d3/9085b225b080218f7ae7f3f33b746686cabefa99cbc34895fd35221df4d6/jiter-0.19.0-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:bafc856de75f6d4400e2d839189a6aefa1c985a151893743262811495917c20c", size = 333667, upload-time = "2026-11-06T15:01:33.032Z" },
+ { url = "https://files.pythonhosted.org/packages/fb/2d/d71dbb7bb2f5954e2f33151de25721abf03771fb5368acda88f781b419d0/jiter-0.19.0-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:562d329189727922d9ee2e58f37382de1d0ec0d7a69b8d9670a23ef7ea216a49", size = 348693, upload-time = "2026-11-06T15:01:34.541Z" },
+ { url = "https://files.pythonhosted.org/packages/8c/41/22f74631763c50a6ec76fec1e6a9557ffba181fe5048135520284a5746f3/jiter-0.19.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:0956b5f58b804221dfb929c120e6d4032138fed20c1cc0ef683a2d1326255e46", size = 338071, upload-time = "2026-11-06T15:01:35.871Z" },
+ { url = "https://files.pythonhosted.org/packages/9b/4a/66e5d347e63b452eb160b549d1bb9bc88b2e7ad4d55c900afd278b8ec85b/jiter-0.19.0-cp312-cp312-manylinux_2_31_riscv64.whl", hash = "sha256:aa8e941d7569417134d14ed982bd5cef2c9baa55748bd70601f29e59b65497a9", size = 314409, upload-time = "2026-11-06T15:01:38.148Z" },
+ { url = "https://files.pythonhosted.org/packages/cf/19/919970ab010e41cc8daae6e3b225cf457b09f9ce1a8458a0b949272d312d/jiter-0.19.0-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:39032d61473b11a6201300a710d6f912935bb3c783f3b564f94caa4d8ea34f40", size = 480350, upload-time = "2026-11-06T15:01:39.515Z" },
+ { url = "https://files.pythonhosted.org/packages/6c/53/fef6d7566fdc019201be101bb63056a01ac3746c4f072901318593c65a2b/jiter-0.19.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:1427fd34cf36db7c13d9643465a9fe00bfcc9ba969d8a633e43a4e2525afb565", size = 515375, upload-time = "2026-11-06T15:01:40.9Z" },
+ { url = "https://files.pythonhosted.org/packages/50/94/0eb1a877a9e34fe757aa6fbcb9e19a996540283fafa4826c4fff816087bc/jiter-0.19.0-cp312-cp312-win32.whl", hash = "sha256:178bdffd86ccaf25fda33dee522b046720b1f617f5b72864a720a4e88d574fc6", size = 185353, upload-time = "2026-11-06T15:01:42.628Z" },
+ { url = "https://files.pythonhosted.org/packages/10/7f/9d1dd194cc52698a9c7116b0b464826cc1a2feda2afd12fa562182ff27d6/jiter-0.19.0-cp312-cp312-win_amd64.whl", hash = "sha256:f64154096d9aa5462ef3c4f48d624492602d0073d54d30c20c08793387f67e42", size = 225500, upload-time = "2026-11-06T15:01:43.975Z" },
+ { url = "https://files.pythonhosted.org/packages/98/d9/5065590d951e03216b7b0beba984d397d1e724201dc57184503f79d696eb/jiter-0.19.0-cp312-cp312-win_arm64.whl", hash = "sha256:d9cf0a878f99f97335023f51bf07e1f81c19ce13636b06347c8b548e3a26bc70", size = 181832, upload-time = "2026-11-06T15:01:45.279Z" },
+ { url = "https://files.pythonhosted.org/packages/c4/b0/9af5c95d02e75ec5ee2c45ab37a7ead761cfbf1807b6b568944baa371699/jiter-0.19.0-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:ee63ba51f837d5a4bc2d79f6255ef0e754922519b172099fe4b9e8b1a6c85513", size = 289637, upload-time = "2026-11-06T15:01:46.615Z" },
+ { url = "https://files.pythonhosted.org/packages/72/31/826662abf9197a96ac347f4f7456bca96e751de71ad8983de1ae06f210ef/jiter-0.19.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:9ea284d5a9391fa7b6bec676569a91463325298532887d3b324b27d541f6ffc1", size = 315796, upload-time = "2026-11-06T15:01:48.327Z" },
+ { url = "https://files.pythonhosted.org/packages/76/c2/a4e62a7af0cd7f17423593437b721f4035b025b1d4ac0f2b996ed6d059c4/jiter-0.19.0-cp313-cp313-manylinux1_i686.manylinux_2_5_i686.whl", hash = "sha256:345f9f5dc1496a17b83cbbe7c351f94ddcd77b853518b0382b82702652353c9e", size = 331137, upload-time = "2026-11-06T15:01:49.675Z" },
+ { url = "https://files.pythonhosted.org/packages/aa/60/edd90b139888ec1f40ff1d37b5d446447164806dc607706b933172277ab3/jiter-0.19.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:d056e8cf0ad1c4676ae559311d4a90b2613ca415452f5072bee62ee7424a094a", size = 335268, upload-time = "2026-11-06T15:01:51.172Z" },
+ { url = "https://files.pythonhosted.org/packages/cf/d1/5a5a8684097942c24854f4308b36cf630ed573a94b06305dc146c74e0bb7/jiter-0.19.0-cp313-cp313-manylinux2014_armv7l.manylinux_2_17_armv7l.whl", hash = "sha256:62fda39be2cd67deca433e8ff9b125b285a592c5b5a439a5e80ba18337a73d2a", size = 321592, upload-time = "2026-11-06T15:01:52.58Z" },
+ { url = "https://files.pythonhosted.org/packages/fc/94/f4466e2ada992e82f4967021953121039998b8e4ad83ebfb2b6e2c2a401c/jiter-0.19.0-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:a09edc861155f4df705a382e0d241e0ba4bf504a1438a6cd3a94e8d3fe2cf37d", size = 332880, upload-time = "2026-11-06T15:01:53.849Z" },
+ { url = "https://files.pythonhosted.org/packages/1f/b3/11a1d37dcdca6edc003ac6f2512c1dd37b0f0c2dbf7c988e5213e1b29d19/jiter-0.19.0-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:fc13db05062df81357bdb926fc6b1014ce8ebef511a0fe7520b818f43b74fe5b", size = 348166, upload-time = "2026-11-06T15:01:55.216Z" },
+ { url = "https://files.pythonhosted.org/packages/30/f1/75de49da39833a8be13b47468b99876c1f4a96b301c6a3fa3ad6a7d87e7d/jiter-0.19.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:3b27d6bec319dc17cdced13e495f90ce066676ca296fc56f2dd2128f6a7599ed", size = 335970, upload-time = "2026-11-06T15:01:56.493Z" },
+ { url = "https://files.pythonhosted.org/packages/6a/95/6ceb994aae2511e94da56a3def4795e0b797357af252c824bdfdaae70323/jiter-0.19.0-cp313-cp313-manylinux_2_31_riscv64.whl", hash = "sha256:541669df0273fafdc506e89d7750afd528b6094586f87c01291c62f3273575ed", size = 313765, upload-time = "2026-11-06T15:01:57.768Z" },
+ { url = "https://files.pythonhosted.org/packages/02/a9/ee7f3f2ceacb6e4593cfe9d9b7eff3b2b404efe2e05e152070a50abe42a9/jiter-0.19.0-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:bcf434316c96f58b4623500c01498506cc1d3fb689e948158a5955dc245202a4", size = 479932, upload-time = "2026-11-06T15:01:59.149Z" },
+ { url = "https://files.pythonhosted.org/packages/f5/50/127a653d5292c6d9e6ec993c3948e3b9f3d0fbc6af91094dbab175ee8d3e/jiter-0.19.0-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:8b9d75a51df8f3b6fa7e25a0c0d7c4735e9d2196d6441e5a7c5b4ef1b76cd8bd", size = 514729, upload-time = "2026-11-06T15:02:00.695Z" },
+ { url = "https://files.pythonhosted.org/packages/54/23/17c033c7336a5ec7d4c6b10edb851c96ffc9c0652d9f5b14ea5bae6028de/jiter-0.19.0-cp313-cp313-win32.whl", hash = "sha256:a39f45078cc2b75ac91b48833093c033e374f8224ad38576ebba06398a1de96b", size = 184740, upload-time = "2026-11-06T15:02:02.231Z" },
+ { url = "https://files.pythonhosted.org/packages/2d/ce/c11a38ccc9d4fdb0c092cf583919ecff62724d39ad3556b5324173dad1ee/jiter-0.19.0-cp313-cp313-win_amd64.whl", hash = "sha256:050dd505e407c028aa76b9b4a379a06f79f484c3b256d99a7fea118d863c9a79", size = 223145, upload-time = "2026-11-06T15:02:03.485Z" },
+ { url = "https://files.pythonhosted.org/packages/4e/54/d63c0ed96e4d2b6f4a64ada70a8eaedbd8849416045821d70c27d26c2dcb/jiter-0.19.0-cp313-cp313-win_arm64.whl", hash = "sha256:96b8d6795c8e8121d0a99b2c8f60ca4db02ff8063205bf2c9712e2714a52ea9f", size = 181228, upload-time = "2026-11-06T15:02:04.664Z" },
+ { url = "https://files.pythonhosted.org/packages/4c/67/66164d4be8991d7f3b7163be80c7c5e94040cc7d9ba62b4e4e4113da5f79/jiter-0.19.0-graalpy312-graalpy250_312_native-macosx_10_12_x86_64.whl", hash = "sha256:e7682cfd9561bcdc47dbd10d2546b5b37640b4bef407f76fb434c30e4cb0ae81", size = 287293, upload-time = "2026-11-06T15:03:23.746Z" },
+ { url = "https://files.pythonhosted.org/packages/ba/8f/94f8b4d9be8cbf8e0be61c21b368ba367d8cb57d8f5d0ef71bcc8f61ef3d/jiter-0.19.0-graalpy312-graalpy250_312_native-macosx_11_0_arm64.whl", hash = "sha256:bee08505baeb38c891d884e977b20924ec13bbedfc3ff1d32cfd66a867f8e9b1", size = 277813, upload-time = "2026-11-06T15:03:25.476Z" },
+ { url = "https://files.pythonhosted.org/packages/b3/5e/1ba251fae0c9d689cc40b4dbedc9a6674db0d5ef5dae2af0a7a4ccaa8886/jiter-0.19.0-graalpy312-graalpy250_312_native-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:dd34bb5493184ca9816fc4ffb19ea7377940d5171512cfc107356a3a145a4ba2", size = 300193, upload-time = "2026-11-06T15:03:26.882Z" },
+ { url = "https://files.pythonhosted.org/packages/7b/00/03f9750ce7fc6882c00e030f5843afaec7ab06813ebe2f0d363acaadb973/jiter-0.19.0-graalpy312-graalpy250_312_native-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:885673d25907536b3bce8d61accd67a534eb3ad5fa2dc7ebfa67c4842b3b0060", size = 301132, upload-time = "2026-11-06T15:03:28.217Z" },
+ { url = "https://files.pythonhosted.org/packages/c1/43/f7adc61beb4d2f9990ad802856324cfa5968f6b54c9dff91e16acc866b0b/jiter-0.19.0-graalpy313-graalpy253_313_native-macosx_11_0_arm64.whl", hash = "sha256:50f9e5bde6bef0eef6a12315088e635b19d50cbceec745615eb8614f6bf4b52c", size = 277105, upload-time = "2026-11-06T15:03:29.514Z" },
+ { url = "https://files.pythonhosted.org/packages/5d/56/9d34c6a580f010259c136a1354d0e51cbe1293aef4def5f6c42347c73727/jiter-0.19.0-graalpy313-graalpy253_313_native-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:42efe1a711c0745b6098b8bff931b0a2e7fff36098cbc2dc16b76497f1cbe834", size = 300134, upload-time = "2026-11-06T15:03:30.774Z" },
+ { url = "https://files.pythonhosted.org/packages/e7/b7/dd4360ad780ea1455ff2607b43cd9fcd0fd785ae366c8a632785010e92ff/jiter-0.19.0-graalpy313-graalpy253_313_native-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:2c82005ee84b348cee72a8df6672b5d6c9fe9db4b81c98b84a28155d447d2348", size = 300943, upload-time = "2026-11-06T15:03:32.042Z" },
+]
+
[[package]]
name = "joblib"
version = "1.6.0"
@@ -928,6 +1010,15 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/a8/11/4da3faa7fd20c487c4770f14aa2b4247871e787ad305c2ba528fcf0f2bcc/langsmith-0.14.17-py3-none-any.whl", hash = "sha256:0aa2c79936c93c7cea9c55656f05e21cc5da715fecbdbda439d084adc08429be", size = 940828, upload-time = "2026-11-02T00:58:43.727Z" },
]
+[[package]]
+name = "lazy-imports"
+version = "1.2.0"
+source = { registry = "https://pypi.org/simple" }
+sdist = { url = "https://files.pythonhosted.org/packages/25/67/04432aae0c1e2729bff14e1841f4a3fb63a9e354318e66622251487760c3/lazy_imports-1.2.0.tar.gz", hash = "sha256:3c546b3c1e7c4bf62a07f897f6179d9feda6118e71ef6ecc47a339cab3d2e2d9", size = 24470, upload-time = "2025-12-28T13:51:51.218Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/cd/62/60ed24fa8707f10c1c5aef94791252b820be3dd6bdfc6e2fcdb08bc8912f/lazy_imports-1.2.0-py3-none-any.whl", hash = "sha256:97134d6552e2ba16f1a278e316f05313ab73b360e848e40d593d08a5c2406fdf", size = 18681, upload-time = "2025-12-28T13:51:49.802Z" },
+]
+
[[package]]
name = "llama-index-core"
version = "0.14.26"
@@ -1218,6 +1309,15 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/5b/54/662a4743aa81d9582ee9339d4ffa3c8fd40a4965e033d77b9da9774d3960/mkdocs_material_extensions-1.3.1-py3-none-any.whl", hash = "sha256:adff8b62700b25cb77b53358dad940f3ef973dd6db797907c49e3c2ef3ab4e31", size = 8728, upload-time = "2023-11-22T19:09:43.465Z" },
]
+[[package]]
+name = "more-itertools"
+version = "11.2.1"
+source = { registry = "https://pypi.org/simple" }
+sdist = { url = "https://files.pythonhosted.org/packages/52/b8/c63995bebbb9ac9c059350e0fb8c82c2420c85aeca7d34e40aecf3df9281/more_itertools-11.2.1.tar.gz", hash = "sha256:cbf08fd0af284dc69718b9b76a8e6203df624d70209ea511e4219d350c856f63", size = 154133, upload-time = "2026-10-14T18:50:30.407Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/5d/57/3c4b1c6f2e0cc29ba023802458ea3d2a996f87085559e4a5f2192d549532/more_itertools-11.2.1-py3-none-any.whl", hash = "sha256:35a7377edd1dd6608dcb2cdf534ded55ea32d49448875ad042cd3f879fb1ded0", size = 74405, upload-time = "2026-10-14T18:50:29.116Z" },
+]
+
[[package]]
name = "multidict"
version = "7.2.1"
@@ -1389,6 +1489,23 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/05/10/e37d9f06dae61cecaad344aef213a19643b66761a06667bdfe5282c1fb37/onnxruntime-1.31.1-cp313-cp313t-manylinux_2_28_x86_64.whl", hash = "sha256:6711108bcddf8b401145fb31ac93776b8ca6e7e7e56acdfa9d478575b8df9a2f", size = 23773876, upload-time = "2026-10-26T19:26:50.371Z" },
]
+[[package]]
+name = "openai"
+version = "3.57.0"
+source = { registry = "https://pypi.org/simple" }
+dependencies = [
+ { name = "anyio" },
+ { name = "httpx2" },
+ { name = "jiter" },
+ { name = "pydantic" },
+ { name = "sniffio" },
+ { name = "typing-extensions" },
+]
+sdist = { url = "https://files.pythonhosted.org/packages/90/b2/97780581dab39384d1de4bc15f1f6cbaff26ce965a46c23a10bd948b71a8/openai-3.57.0.tar.gz", hash = "sha256:5a0a89d6a542efc85e2a8cec701ca9265b795d578c777828e10fafdf80e333b6", size = 2425150, upload-time = "2026-11-20T01:28:43.575Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/e0/40/0475208a470f90a1d3e94b41382678b44f311c2ea2a317228531e2193567/openai-3.57.0-py3-none-any.whl", hash = "sha256:f97bc74024c06ced8428b56c4a3594066709d3082779bf9d0b4b6092fbf587a8", size = 2451809, upload-time = "2026-11-20T01:28:41.48Z" },
+]
+
[[package]]
name = "opencv-python-headless"
version = "5.0.0.93"
@@ -1600,6 +1717,20 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/40/9e/2b38731e0fc536806f16490e1a12d7f0dc2a1235aa8cc07bcc75416a7daa/pluggy-1.7.0-py3-none-any.whl", hash = "sha256:7dd7b0d8832ba3cb632c306926ded123429211b83641b35dc5c41ad2d34f9bec", size = 27082, upload-time = "2026-10-15T09:50:56.808Z" },
]
+[[package]]
+name = "posthog"
+version = "8.1.0"
+source = { registry = "https://pypi.org/simple" }
+dependencies = [
+ { name = "distro" },
+ { name = "requests" },
+ { name = "typing-extensions" },
+]
+sdist = { url = "https://files.pythonhosted.org/packages/be/39/bb5fd6ca1f7e4466953d54194116bf9c27373acccfab8f407ad91b142e54/posthog-8.1.0.tar.gz", hash = "sha256:2c862b3956f64d6fe8d26542a8557e4ec97d61b9448a6645ae34114ab9b5a6b8", size = 1044111, upload-time = "2026-11-20T20:30:56.173Z" }
+wheels = [
+ { url = "https://files.pythonhosted.org/packages/4f/68/dd49608b8d5f9302ddad914a8fcb780b9e787477309040fd6edfa7b752df/posthog-8.1.0-py3-none-any.whl", hash = "sha256:0b62485673d9554090ebbe0c85e34d77fe2378b778d8a1cb43d716156536dec4", size = 1197215, upload-time = "2026-11-20T20:30:54.136Z" },
+]
+
[[package]]
name = "propcache"
version = "0.5.4"
@@ -2022,6 +2153,9 @@ engine = [
{ name = "onnxruntime" },
{ name = "rapidocr" },
]
+haystack = [
+ { name = "haystack-ai" },
+]
langchain = [
{ name = "langchain-core" },
]
@@ -2044,6 +2178,7 @@ docs = [
[package.metadata]
requires-dist = [
{ name = "fastapi", specifier = ">=0.110" },
+ { name = "haystack-ai", marker = "extra == 'haystack'", specifier = ">=2.0" },
{ name = "httpx", specifier = ">=0.27" },
{ name = "jsonschema", specifier = ">=4.21" },
{ name = "langchain-core", marker = "extra == 'langchain'", specifier = ">=0.3" },
@@ -2065,7 +2200,7 @@ requires-dist = [
{ name = "rapidocr", marker = "extra == 'engine'", specifier = ">=3.10" },
{ name = "uvicorn", specifier = ">=0.29" },
]
-provides-extras = ["engine", "mcp", "langchain", "llamaindex"]
+provides-extras = ["engine", "mcp", "langchain", "llamaindex", "haystack"]
[package.metadata.requires-dev]
dev = [