split_text() — langchain Function Reference
Architecture documentation for the split_text() function in html.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD cdce0dab_74f2_fff9_b284_195643913ed5["split_text()"] 0c8a5f97_7cb0_fe24_746d_9689c4e5426c["HTMLSectionSplitter"] cdce0dab_74f2_fff9_b284_195643913ed5 -->|defined in| 0c8a5f97_7cb0_fe24_746d_9689c4e5426c fb63895c_3000_9932_3530_3357c6736f4f["create_documents()"] fb63895c_3000_9932_3530_3357c6736f4f -->|calls| cdce0dab_74f2_fff9_b284_195643913ed5 3a8f906a_02bf_a0ff_6dbb_2ffbc48f937d["split_text()"] 3a8f906a_02bf_a0ff_6dbb_2ffbc48f937d -->|calls| cdce0dab_74f2_fff9_b284_195643913ed5 170f66e6_a026_8fd5_9128_33eeefb7dd62["split_text_from_file()"] cdce0dab_74f2_fff9_b284_195643913ed5 -->|calls| 170f66e6_a026_8fd5_9128_33eeefb7dd62 cf1e77cb_9fca_ca93_1428_c967d5cb0c97["split_text_from_file()"] cdce0dab_74f2_fff9_b284_195643913ed5 -->|calls| cf1e77cb_9fca_ca93_1428_c967d5cb0c97 3a8f906a_02bf_a0ff_6dbb_2ffbc48f937d["split_text()"] cdce0dab_74f2_fff9_b284_195643913ed5 -->|calls| 3a8f906a_02bf_a0ff_6dbb_2ffbc48f937d style cdce0dab_74f2_fff9_b284_195643913ed5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/text-splitters/langchain_text_splitters/html.py lines 395–404
def split_text(self, text: str) -> list[Document]:
"""Split HTML text string.
Args:
text: HTML text
Returns:
A list of split `Document` objects.
"""
return self.split_text_from_file(StringIO(text))
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does split_text() do?
split_text() is a function in the langchain codebase, defined in libs/text-splitters/langchain_text_splitters/html.py.
Where is split_text() defined?
split_text() is defined in libs/text-splitters/langchain_text_splitters/html.py at line 395.
What does split_text() call?
split_text() calls 3 function(s): split_text, split_text_from_file, split_text_from_file.
What calls split_text()?
split_text() is called by 2 function(s): create_documents, split_text.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free