Skip to content

Add a Haystack document converter - #39

Open
brendanboyle87 wants to merge 2 commits into
arpitpatel25:mainfrom
brendanboyle87:haystack-converter
Open

brendanboyle87 wants to merge 2 commits into
arpitpatel25:mainfrom
brendanboyle87:haystack-converter

Conversation

@brendanboyle87

@brendanboyle87 brendanboyle87 commented Nov 23, 2026 •

Copy link
Copy Markdown

Closes #7.

What this changes and why

Haystack pipelines can now convert local files into Document objects using the optional readanydoc[haystack] extra. The component calls the same chunking helper as the LangChain and LlamaIndex adapters, so all three integrations share the page, block and whole-file splits and source metadata. The converter forwards parser options, preserves them when a pipeline is saved, and surfaces parser errors.

Accuracy

The converter uses the existing ReadAnyDoc parser and chunking helper. Both shipped profiles use their existing behavior.

  • Fake-parser tests cover pipeline execution, split modes, metadata, parser options, serialization, and parse errors.
  • Full suite on Python 3.12 and 3.13 with the Haystack extra installed — 1,058 passed and 168 skipped on each.
  • Strict MkDocs build passes. The guide’s Haystack example also runs with the fake parser.
  • The integration guide includes a pipeline example, and docs/decisions.md records the new interface.

@brendanboyle87
brendanboyle87 marked this pull request as ready for review November 23, 2026 14:52

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Haystack integration: a ReadAnyDoc converter

1 participant