llama-index-readers-pdfmuse
LlamaIndex reader for pdfmuse — a deterministic PDF/DOCX parser for RAG. Same file in → same Documents out, with exact coordinates, tables and section structure.
pip install llama-index-readers-pdfmuse
Usage
from llama_index.readers.pdfmuse import PdfmuseReader
from llama_index.core import VectorStoreIndex
# RAG-optimized: one Document per block, section-aware metadata
docs = PdfmuseReader(mode="elements").load_data("report.pdf")
index = VectorStoreIndex.from_documents(docs)
Modes
mode |
Documents | Best for |
|---|---|---|
"single" |
the whole file as one | quick ingestion |
"page" (default) |
one per page | page-level retrieval |
"elements" |
one per block (heading / paragraph / table) | RAG — chunk with structure |
Metadata (elements mode)
Kept to simple types so it indexes cleanly:
source,source_kind(Pdf/Docx)page— 0-based page indexcategory—Title·NarrativeText·Tableheading_path— section breadcrumb, e.g."Experience > Alibaba"bbox—"x0,y0,x1,y1"on the page (top-left origin, points)
heading_path + bbox let a retriever return "which section, where on the page" —
not just a blob of text. And because the core has no probabilistic models, your index
is reproducible run-to-run.
MIT OR Apache-2.0 · part of the pdfmuse project.
Metadata
Release files for llama-index-readers-pdfmuse 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| llama_index_readers_pdfmuse-0.1.0.tar.gz | 3.2 kB | Without provenance | Details for llama_index_readers_pdfmuse-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| llama_index_readers_pdfmuse-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for llama_index_readers_pdfmuse-0.1.0-py3-none-any.whl |
Total release size: 7.0 kB
Release files / llama_index_readers_pdfmuse-0.1.0.tar.gz
| Download URL | llama_index_readers_pdfmuse-0.1.0.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3fbcc6a47ba6d77398b69738a45e18c083e85951f4d4f5f7807dcf59f63f536d
|
|
BLAKE2b-256 checksum How to use checksums |
d13be91746757c5e8aee29f8a7d14ccc59d178531cab9d0deb5204c7ac6d90f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|
Release files / llama_index_readers_pdfmuse-0.1.0-py3-none-any.whl
| Download URL | llama_index_readers_pdfmuse-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6e651eb49a76a2c80ec6f415927c464a04f51ad65eda93eddbd36ea9c9f07063
|
|
BLAKE2b-256 checksum How to use checksums |
b2a4207bb8aeb809153db02754b33f9ee4a588e1efba61aee43bd62878cde54b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|
Security for llama-index-readers-pdfmuse 0.1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.