Files
langchain/tests/unit_tests
Eugene Yurtsev d56313acba Improve effeciency of TextSplitter.split_documents, iterate once (#5111)
# Improve TextSplitter.split_documents, collect page_content and
metadata in one iteration

## Who can review?

Community members can review the PR once tests pass. Tag
maintainers/contributors who might be interested:

@eyurtsev In the case where documents is a generator that can only be
iterated once making this change is a huge help. Otherwise a silent
issue happens where metadata is empty for all documents when documents
is a generator. So we expand the argument from `List[Document]` to
`Union[Iterable[Document], Sequence[Document]]`

---------

Co-authored-by: Steven Tartakovsky <tartakovsky.developer@gmail.com>
2023-05-22 23:00:24 -04:00
..
2023-04-30 11:14:09 -07:00
2023-05-21 09:13:20 -07:00
2023-05-11 15:34:06 -07:00
2023-05-17 20:01:01 -07:00
2023-05-20 08:21:52 -07:00
2023-05-19 15:27:50 -07:00
2023-04-24 19:54:15 -07:00
2023-05-22 16:43:07 -07:00