pymupdf / RAG

RAG (Retrieval-Augmented Generation) Chatbot Examples Using PyMuPDF
https://pymupdf.readthedocs.io/en/latest/pymupdf4llm
GNU Affero General Public License v3.0
539 stars 82 forks source link

No attribute to_markdown #22

Closed aman-vink closed 6 months ago

aman-vink commented 6 months ago

When using in production

pymupdf4llm.to_markdown

AttributeError: module 'pymupdf4llm' has no attribute 'to_markdown'

Version i am using. PyMuPDF==1.24.3 pymupdf4llm==0.0.1

JorjMcKie commented 6 months ago

Please reinstall. The current version is 0.0.3. Please make sure to first uninstall all of pdf4llm, pymupdf4llm.

aman-vink commented 6 months ago

hey @JorjMcKie one question can it be used with async process.

JorjMcKie commented 6 months ago

We are currently working on this. It will be based on multiprocessing and will not use async def, await etc. constructs.

JorjMcKie commented 6 months ago

Forgot to mention: This will become a PyMuPDF feature being reused here.

andrey4763913 commented 2 days ago

I have pip list | grep -i pdf PyMuPDF 1.24.13 pymupdf4llm 0.0.17 (TEST) [shevel@homedesk TEST]$ python -V Python 3.12.1

and still have "AttributeError: partially initialized module 'pymupdf4llm' has no attribute 'to_markdown' (most likely due to a circular import)" Any ideas ?

jamie-lemon commented 1 day ago

Possibly you have this issue - https://stackoverflow.com/questions/59762996/how-to-fix-attributeerror-partially-initialized-module - do you have a file called pymupdf4llm in the same location?