mirror of
https://github.com/hwchase17/langchain
synced 2024-11-11 19:11:02 +00:00
616d06d7fe
- **Description:** Updated *community.langchain_community.document_loaders.directory.py* to enable the use of multiple glob patterns in the `DirectoryLoader` class. Now, the glob parameter is of type `list[str] | str` and still defaults to the same value as before. I updated the docstring of the class to reflect this, and added a unit test to *community.tests.unit_tests.document_loaders.test_directory.py* named `test_directory_loader_glob_multiple`. This test also shows an example of how to use the new functionality. - ~~Issue:~~**Discussion Thread:** https://github.com/langchain-ai/langchain/discussions/18559 - **Dependencies:** None - **Twitter handle:** N/a - [x] **Add tests and docs** - Added test (described above) - Updated class docstring - [x] **Lint and test** --------- Co-authored-by: isaac hershenson <ihershenson@hmc.edu> Co-authored-by: Harrison Chase <hw.chase.17@gmail.com> Co-authored-by: Isaac Francisco <78627776+isahers1@users.noreply.github.com> |
||
---|---|---|
.. | ||
blob_loaders | ||
loaders | ||
parsers | ||
sample_documents | ||
test_docs | ||
__init__.py | ||
test_airbyte.py | ||
test_arcgis_loader.py | ||
test_assemblyai.py | ||
test_bibtex.py | ||
test_bshtml.py | ||
test_confluence.py | ||
test_couchbase.py | ||
test_csv_loader.py | ||
test_cube_semantic.py | ||
test_detect_encoding.py | ||
test_directory_loader.py | ||
test_directory.py | ||
test_evernote_loader.py | ||
test_generic_loader.py | ||
test_git.py | ||
test_github.py | ||
test_hugging_face_model.py | ||
test_hugging_face.py | ||
test_imports.py | ||
test_json_loader.py | ||
test_lakefs.py | ||
test_mediawikidump.py | ||
test_mhtml.py | ||
test_mongodb.py | ||
test_notebook.py | ||
test_obsidian.py | ||
test_onenote.py | ||
test_oracleadb.py | ||
test_pebblo.py | ||
test_psychic.py | ||
test_readthedoc.py | ||
test_recursive_url_loader.py | ||
test_rspace_loader.py | ||
test_rss.py | ||
test_trello.py | ||
test_web_base.py | ||
test_youtube.py |