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

Fix tuple/list issue created by recent commit #109

Closed zane-programs closed 2 months ago

zane-programs commented 2 months ago

Hello! It seems that a recent contribution to the project inadvertently changed bullet in pymupdf_rag.py from a tuple to a list. This is an issue where bullet is used with the string startswith method in a couple places, as startswith only accepts strings and tuples.

I made a small change to convert the new list of bullet characters to a tuple, such that this issue could be resolved. Please let me know what you think.

Thank you!

JorjMcKie commented 2 months ago

Thank your for submitting this. In the meantime, the issue has been resolved via v0.0.12.