Skip to main content

Haystack converter for pdfmuse — deterministic PDF/DOCX parsing for RAG.

Project description

pdfmuse-haystack

Haystack converter for pdfmuse — a deterministic PDF/DOCX parser for RAG. Same file in → same Document out.

pip install pdfmuse-haystack

Usage

from pdfmuse_haystack import PdfmuseConverter

converter = PdfmuseConverter(mode="markdown")   # or "text" (default)
docs = converter.run(sources=["report.pdf"])["documents"]

In a pipeline:

from haystack import Pipeline
from pdfmuse_haystack import PdfmuseConverter

pipe = Pipeline()
pipe.add_component("converter", PdfmuseConverter(mode="text"))
# ... connect to a splitter / embedder / writer ...

Modes

  • "text" (default) — plain reading-order text (fast path).
  • "markdown" — structured Markdown (headings + tables).

Extracts text with exact coordinates, tables and structure; no probabilistic models in the core path, so your index is reproducible run-to-run. Scanned/image-only pages surface a NeedsOcr warning (OCR is a pluggable backend, kept out of the core).

MIT OR Apache-2.0 · part of the pdfmuse project.

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

pdfmuse_haystack-0.1.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

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

pdfmuse_haystack-0.1.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file pdfmuse_haystack-0.1.0.tar.gz.

File metadata

  • Download URL: pdfmuse_haystack-0.1.0.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for pdfmuse_haystack-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d9d1507fc9515114041110d73bd7daaf9774dd0af1f3c93c0253ac5031eba960
MD5 51527b8b07d487d09bee9dfb3b594e08
BLAKE2b-256 5c1aa26e84692a9c11aeca29d53230f99dc3b85088045151a3d354b963b6fcd1

See more details on using hashes here.

File details

Details for the file pdfmuse_haystack-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pdfmuse_haystack-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 366c1e48563760203bd6a5a9bf8487210ca4ed60bba7f62b3cd4d5639d6dcacd
MD5 75d81e6daead89e919cf47c97ff9062d
BLAKE2b-256 c282df6051a7bcc1ea3a220ab93c3f2b681328e4a9367fb8c8b34b8aa1897cd8

See more details on using hashes here.

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