Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

community: Fix the problem of error reporting when OCR extracts text from PDF. #29378

Merged
merged 4 commits into from
Jan 23, 2025

Conversation

jiangtongxueya
Copy link
Contributor

@jiangtongxueya jiangtongxueya commented Jan 23, 2025

  • Description: The issue has been fixed where images could not be recognized from xObject[obj]["/Filter"] (whose value can be either a string or a list of strings) in the _extract_images_from_page() method. It also resolves the bug where vectorization by Faiss fails due to the failure of image extraction from a PDF containing only imagesIndexError: list index out of range.
    69a60f3f6bd474641b9126d74bb18f7e

  • Issue:
    Fix the following issues:
    #15227 #22892 #26652 #27153
    Related issues:
    #7067

  • Dependencies: None

  • Twitter handle: None

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jan 23, 2025
Copy link

vercel bot commented Jan 23, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langchain ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 23, 2025 3:01pm

@dosubot dosubot bot added community Related to langchain-community Ɑ: doc loader Related to document loader module (not documentation) 🤖:bug Related to a bug, vulnerability, unexpected error with an existing feature labels Jan 23, 2025
@dosubot dosubot bot added the lgtm PR looks good. Use to confirm that a PR is ready for merging. label Jan 23, 2025
@ccurme ccurme enabled auto-merge (squash) January 23, 2025 14:53
@ccurme ccurme merged commit a1e6207 into langchain-ai:master Jan 23, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖:bug Related to a bug, vulnerability, unexpected error with an existing feature community Related to langchain-community Ɑ: doc loader Related to document loader module (not documentation) lgtm PR looks good. Use to confirm that a PR is ready for merging. size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants