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-pdfpackage; 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llama_index_readers_oxidize_pdf-0.1.0.tar.gz.
File metadata
- Download URL: llama_index_readers_oxidize_pdf-0.1.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2c7d2a7ff71f137d3243f5147e30a61054e6097cf8f417022712e5d1bb8c43b
|
|
| MD5 |
29f537d5e45f2203566614ce938a001e
|
|
| BLAKE2b-256 |
5778c03991f26c305aa049d0ed8fad289a0b31beefd152a9cd21e21562cbda41
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llama_index_readers_oxidize_pdf-0.1.0.tar.gz -
Subject digest:
b2c7d2a7ff71f137d3243f5147e30a61054e6097cf8f417022712e5d1bb8c43b - Sigstore transparency entry: 1352976081
- Sigstore integration time:
-
Permalink:
bzsanti/oxidize-pdf-integrations@eb24ffd3ffd837660a49ce553974c9190dadc533 -
Branch / Tag:
refs/tags/llamaindex-v0.1.0 - Owner: https://github.com/bzsanti
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-llamaindex.yml@eb24ffd3ffd837660a49ce553974c9190dadc533 -
Trigger Event:
push
-
Statement type:
File details
Details for the file llama_index_readers_oxidize_pdf-0.1.0-py3-none-any.whl.
File metadata
- Download URL: llama_index_readers_oxidize_pdf-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78e8947aedea2dc970d8458e4a8fef843d022ef9ec4b6a9489bc54fd1dd4463c
|
|
| MD5 |
1d1aa9fda6a74624c79f60342cf705de
|
|
| BLAKE2b-256 |
d6704d3c9f393e2378db11ab2e64b7e792c2a10fd73bd562179864be8ad3c6c1
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llama_index_readers_oxidize_pdf-0.1.0-py3-none-any.whl -
Subject digest:
78e8947aedea2dc970d8458e4a8fef843d022ef9ec4b6a9489bc54fd1dd4463c - Sigstore transparency entry: 1352976152
- Sigstore integration time:
-
Permalink:
bzsanti/oxidize-pdf-integrations@eb24ffd3ffd837660a49ce553974c9190dadc533 -
Branch / Tag:
refs/tags/llamaindex-v0.1.0 - Owner: https://github.com/bzsanti
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-llamaindex.yml@eb24ffd3ffd837660a49ce553974c9190dadc533 -
Trigger Event:
push
-
Statement type: