Skip to main content

LlamaIndex reader for oxidize-pdf — fast, Rust-powered PDF parsing with RAG-ready chunking

Reason this release was yanked:

Quadratic chunk accumulation in mode='rag'; upgrade to 0.1.1

Project description

llama-index-readers-oxidize-pdf

LlamaIndex reader backed by oxidize-pdf, a fast Rust-powered PDF engine with first-class RAG chunking.

Install

pip install llama-index-readers-oxidize-pdf

Usage

RAG chunks (default)

from llama_index.readers.oxidize_pdf import OxidizePdfReader

reader = OxidizePdfReader()  # mode="rag" by default
documents = reader.load_data("paper.pdf")

for doc in documents:
    print(doc.metadata["chunk_index"], doc.metadata["heading_context"])
    print(doc.text[:200])

Each Document carries:

Field Description
chunk_index 0-based index within the document
page_numbers list of 1-indexed pages covered by the chunk
element_types list of semantic types detected (e.g. title, paragraph)
heading_context nearest surrounding heading, or None
token_estimate rough token count for budget planning
file_path / file_name / total_pages / pdf_version source metadata

One document per page

reader = OxidizePdfReader(mode="pages")
docs = reader.load_data("paper.pdf")
for doc in docs:
    print(doc.metadata["page_number"], len(doc.text))

Whole PDF as markdown

reader = OxidizePdfReader(mode="markdown")
[doc] = reader.load_data("paper.pdf")
print(doc.text)

Why oxidize-pdf

  • Rust parser: fast on large PDFs, low memory footprint.
  • Native RAG primitives: semantic chunking, element partitioning, heading-aware context — no post-processing needed.
  • CJK friendly: compact output for multibyte documents (see oxidize-pdf 2.5.4 subsetter fixes).
  • Pure Python install: ships as a wheel for Linux/macOS/Windows via the oxidize-pdf package; no system dependencies.

Source

Part of oxidize-pdf-integrations, the ecosystem of integrations around oxidize-pdf. The Rust core and Python bridge live in oxidize-python.

License

MIT

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

llama_index_readers_oxidize_pdf-0.1.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

File details

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

File metadata

File hashes

Hashes for llama_index_readers_oxidize_pdf-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b2c7d2a7ff71f137d3243f5147e30a61054e6097cf8f417022712e5d1bb8c43b
MD5 29f537d5e45f2203566614ce938a001e
BLAKE2b-256 5778c03991f26c305aa049d0ed8fad289a0b31beefd152a9cd21e21562cbda41

See more details on using hashes here.

Provenance

The following attestation bundles were made for llama_index_readers_oxidize_pdf-0.1.0.tar.gz:

Publisher: release-llamaindex.yml on bzsanti/oxidize-pdf-integrations

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

File details

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

File metadata

File hashes

Hashes for llama_index_readers_oxidize_pdf-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 78e8947aedea2dc970d8458e4a8fef843d022ef9ec4b6a9489bc54fd1dd4463c
MD5 1d1aa9fda6a74624c79f60342cf705de
BLAKE2b-256 d6704d3c9f393e2378db11ab2e64b7e792c2a10fd73bd562179864be8ad3c6c1

See more details on using hashes here.

Provenance

The following attestation bundles were made for llama_index_readers_oxidize_pdf-0.1.0-py3-none-any.whl:

Publisher: release-llamaindex.yml on bzsanti/oxidize-pdf-integrations

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