You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/libs
Jiejun Tan c8c67dde6f
text-splitters[patch]: Fix HTMLSectionSplitter (#22812)
Update former pull request:
https://github.com/langchain-ai/langchain/pull/22654.

Modified `langchain_text_splitters.HTMLSectionSplitter`, where in the
latest version `dict` data structure is used to store sections from a
html document, in function `split_html_by_headers`. The header/section
element names serve as dict keys. This can be a problem when duplicate
header/section element names are present in a single html document.
Latter ones can replace former ones with the same name. Therefore some
contents can be miss after html text splitting is conducted.

Using a list to store sections can hopefully solve the problem. A Unit
test considering duplicate header names has been added.

---------

Co-authored-by: Bagatur <baskaryan@gmail.com>
3 months ago
..
cli cli[patch]: Release 0.0.25 (#22876) 3 months ago
community docs: Fix wrongly referenced class name in confluence.py (#22879) 3 months ago
core core: release 0.2.7 (#22917) 3 months ago
experimental experimental: LLMGraphTransformer - added relationship properties. (#21856) 3 months ago
langchain langchain: release 0.2.5 (#22922) 3 months ago
partners anthropic[minor]: Adds streaming tool call support for Anthropic (#22687) 3 months ago
standard-tests multiple: add `stop` attribute (#22573) 3 months ago
text-splitters text-splitters[patch]: Fix HTMLSectionSplitter (#22812) 3 months ago