Add a loader to load .py files #19020
CD-rajveer
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
@CD-rajveer from langchain_community.document_loaders import DirectoryLoader, PythonLoader
loader = DirectoryLoader('../../../../../', glob="**/*.py", loader_cls=PythonLoader) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Checked
Feature request
there are different loaders in the langchain, plz provide support for the python file readers as well. and in the
glob
parameter add support of passing a link of document types, i.e. pdf, py files, c filesMotivation
multi file loading support
Proposal (If applicable)
No response
Beta Was this translation helpful? Give feedback.
All reactions