-
Notifications
You must be signed in to change notification settings - Fork 15.9k
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
feat: Add page metadata on PDFMinerLoader #12277
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add this is a toggle someone can set? defaulting to old behavior. that way it wont suddently change behavior on folks
@blue-hope this looks good, but we'd want to add a parameter in the init controlled by end users to make sure that we can retain backwards compatibility for this parser |
@hwchase17 @eyurtsev I added the feature flag |
libs/langchain/tests/integration_tests/document_loaders/test_pdf.py
Outdated
Show resolved
Hide resolved
libs/langchain/tests/integration_tests/document_loaders/test_pdf.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be good to merge after tests pass
- **Description:** langchain-ai#12273 's suggestion PR Like other PDFLoader, loading pdf per each page and giving page metadata. - **Issue:** langchain-ai#12273 - **Twitter handle:** @blue0_0hope --------- Co-authored-by: Eugene Yurtsev <eyurtsev@gmail.com>
PDFMinerLoader
not givespage
metadata when loading withextract_images=False
- is it intended? #12273 's suggestion PRLike other PDFLoader, loading pdf per each page and giving page metadata.
PDFMinerLoader
not givespage
metadata when loading withextract_images=False
- is it intended? #12273