The app encounters an error when processing PDFs that contain graphics (e.g., images, charts, or diagrams) during the creation of the vectorstore. This prevents users from uploading and querying such PDFs effectively.
Steps to Reproduce:
- Open the app and upload a PDF that contains graphics (e.g., scanned documents, PDFs with embedded charts or images).
- Wait for the vectorstore creation process to begin.
- Observe the error message or behavior (failure to create vectorstore).
Expected Behavior:
The app should handle PDFs with graphics gracefully by:
- Ignoring non-text content while extracting and processing text.
- Successfully creating a vectorstore from the textual portions of the document.
Actual Behavior:
The app fails to create a vectorstore, likely due to an inability to process graphic elements in the PDF.
Possible Cause:
This issue might be due to the document loader (PyPDFLoader or similar) attempting to process non-text elements like graphics, which are not supported or cause parsing errors.
Proposed Solution:
- Add functionality to detect and skip non-text content during PDF processing.
- Implement robust error handling to ensure the app continues processing valid parts of the PDF while ignoring problematic sections.
The app encounters an error when processing PDFs that contain graphics (e.g., images, charts, or diagrams) during the creation of the vectorstore. This prevents users from uploading and querying such PDFs effectively.
Steps to Reproduce:
Expected Behavior:
The app should handle PDFs with graphics gracefully by:
Actual Behavior:
The app fails to create a vectorstore, likely due to an inability to process graphic elements in the PDF.
Possible Cause:
This issue might be due to the document loader (PyPDFLoader or similar) attempting to process non-text elements like graphics, which are not supported or cause parsing errors.
Proposed Solution: