llama-index-readers-oxidize-pdf
LlamaIndex reader backed by oxidize-pdf, a fast Rust-powered PDF engine with first-class RAG chunking.
0.1.1 (2026-04-22) — Requires
oxidize-pdf>=0.4.3(oxidize-pdf-core 2.5.5). Fixes a regression carried by 0.1.0: the underlyingHybridChunkerin oxidize-pdf-core 2.5.4 re-injected just-flushed elements through its overlap branch, so eachDocumentproduced bymode="rag"contained the previous one as a prefix (quadratic accumulation). 0.1.1 is the first release where the disjointness contract is verified end-to-end by semantic regression tests; 0.1.0 should not be used for RAG ingestion.
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: element-disjoint semantic chunking, element partitioning, heading-aware context — no post-processing needed. The disjointness contract (no chunk's text is a substring of another's; each source element appears in exactly one chunk) is enforced by regression tests in both this reader and the underlying bridge.
- 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
Release files for llama-index-readers-oxidize-pdf 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| llama_index_readers_oxidize_pdf-0.1.1.tar.gz | 3.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llama_index_readers_oxidize_pdf-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.0 kB
Release files / llama_index_readers_oxidize_pdf-0.1.1.tar.gz
| Download URL | llama_index_readers_oxidize_pdf-0.1.1.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
baa9d82f156cc7e3158fbb759763083749802ed15bba06366cc2e9e2449c3483
|
|
BLAKE2b-256 checksum How to use checksums |
311c862b1e8e61ac70d691065ba61321275389129df0a9362cd023c892f3ffe1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 22, 2026.
Transparency logRelease files / llama_index_readers_oxidize_pdf-0.1.1-py3-none-any.whl
| Download URL | llama_index_readers_oxidize_pdf-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9627c129626722bbceff8e471f316087ccb20ac9d252f121689c26680e1fa979
|
|
BLAKE2b-256 checksum How to use checksums |
6eb8ee7eb57dbd5f3237efca04112252ee3f61c241316b080b72fa3dafdb9a3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 22, 2026.
Transparency log