Skip to content

LlamaIndex integration issue #376

@jamie-lemon

Description

@jamie-lemon

When doing:

from pymupdf4llm import LlamaMarkdownReader

reader = LlamaMarkdownReader()
documents = reader.load_data("hello-world.pdf")

print(f"Loaded {len(documents)} document(s)")

It throws:

 File "/Library/Frameworks/Python.framework/Versions/3.14/lib/python3.14/site-packages/pymupdf4llm/llama/pdf_markdown_reader.py", line 6, in <module>
    from pymupdf4llm import IdentifyHeaders, to_markdown
ImportError: cannot import name 'IdentifyHeaders' from 'pymupdf4llm' (/Library/Frameworks/Python.framework/Versions/3.14/lib/python3.14/site-packages/pymupdf4llm/__init__.py)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions