Skip to content

Conversation

@AstraBert
Copy link
Member

Description

I included two functions to check whether or not an image path or an image url are actually images. It uses PIL so it should be covered by llama-index-core dependencies without needing to install anything extra.

Should fix This Huntr issue

I also added tests to prove the effectiveness of the fix

@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Jun 3, 2025
Copy link
Collaborator

@logan-markewich logan-markewich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very clever. Reading the docs for Pillow, verify seems like a perfect tool for this job

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jun 3, 2025
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Jun 3, 2025
@AstraBert
Copy link
Member Author

AstraBert commented Jun 3, 2025

Not sure at what happened in 3.9 for Weaviate, they say segmentation fault😨

But the tests for what we need seem ok

@logan-markewich logan-markewich merged commit cdeaab9 into main Jun 3, 2025
9 of 10 checks passed
@logan-markewich logan-markewich deleted the clelia/imagedocument-base64-huntr-issue branch June 3, 2025 17:29
@colca colca mentioned this pull request Jun 9, 2025
18 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants