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 | |
|---|---|---|---|
| llama_index_readers_pdfmuse-0.1.0.tar.gz | 3.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llama_index_readers_pdfmuse-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
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
|