pymupdf / RAG

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

Update logic to set same_line flag based on case of first character #9

Closed tamdao closed 4 months ago

tamdao commented 4 months ago

This pull request addresses an issue caused by the attached file. 06_Coverage.pdf

The primary modification in this PR updates the logic for setting the same_line flag. Now, it also considers whether the first character of the text is lowercase. This enhancement ensures more accurate flagging based on the text's initial character case.