-
Notifications
You must be signed in to change notification settings - Fork 16.3k
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: better support of pathlib paths in document loaders #18396
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
Looks good for scanning quickl |
@eyurtsev i think this may be ready to merge now |
@efriis I think this is ready to merge |
I'm trying to mention someone else: @baskaryan can you merge this? |
@eyurtsev so far i'm upkeeping with the changes in master, it would be nice to it merged |
I'll try to merge tomorrow added myself as reviewer |
tomorrow is relative i guess |
sorry for the delay @mmajewsk and thanks for the contribution! |
…hain-ai#18396) So this arose from the langchain-ai#18397 problem of document loaders not supporting `pathlib.Path`. This pull request provides more uniform support for Path as an argument. The core ideas for this upgrade: - if there is a local file path used as an argument, it should be supported as `pathlib.Path` - if there are some external calls that may or may not support Pathlib, the argument is immidiately converted to `str` - if there `self.file_path` is used in a way that it allows for it to stay pathlib without conversion, is is only converted for the metadata. Twitter handle: https://twitter.com/mwmajewsk
So this arose from the #18397 problem of document loaders not supporting `pathlib.Path`. This pull request provides more uniform support for Path as an argument. The core ideas for this upgrade: - if there is a local file path used as an argument, it should be supported as `pathlib.Path` - if there are some external calls that may or may not support Pathlib, the argument is immidiately converted to `str` - if there `self.file_path` is used in a way that it allows for it to stay pathlib without conversion, is is only converted for the metadata. Twitter handle: https://twitter.com/mwmajewsk
So this arose from the #18397 problem of document loaders not supporting
pathlib.Path
.This pull request provides more uniform support for Path as an argument.
The core ideas for this upgrade:
pathlib.Path
str
self.file_path
is used in a way that it allows for it to stay pathlib without conversion, is is only converted for the metadata.Twitter handle: https://twitter.com/mwmajewsk