langchain/libs
Finlay Macklon 616d06d7fe
community: glob multiple patterns when using DirectoryLoader (#22852)
- **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>
2024-06-18 09:24:50 -07:00
..
cli cli[minor]: remove redefined DEFAULT_GIT_REF (#21471) 2024-06-14 15:49:15 -07:00
community community: glob multiple patterns when using DirectoryLoader (#22852) 2024-06-18 09:24:50 -07:00
core core[patch]: Document BaseStore (#23082) 2024-06-18 11:47:47 -04:00
experimental SemanticChunker : Feature Addition ("Semantic Splitting with gradient") (#22895) 2024-06-17 21:01:08 -07:00
langchain core[patch],community[patch],langchain[patch]: tenacity dependency to version >=8.1.0,<8.4.0 (#22973) 2024-06-18 10:34:28 -04:00
partners standard-tests[patch]: Update chat model standard tests (#22378) 2024-06-17 13:37:41 -07:00
standard-tests standard-tests[patch]: Update chat model standard tests (#22378) 2024-06-17 13:37:41 -07:00
text-splitters text-splitters[patch]: Fix HTMLSectionSplitter (#22812) 2024-06-14 22:40:39 +00:00