test__split_list_long_single_doc() — langchain Function Reference
Architecture documentation for the test__split_list_long_single_doc() function in test_combine_documents.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 451344c4_dd09_13e7_da39_b763252c85e1["test__split_list_long_single_doc()"] fdcbc2e2_7fde_290c_7006_d84e63536c57["test_combine_documents.py"] 451344c4_dd09_13e7_da39_b763252c85e1 -->|defined in| fdcbc2e2_7fde_290c_7006_d84e63536c57 style 451344c4_dd09_13e7_da39_b763252c85e1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/tests/unit_tests/chains/test_combine_documents.py lines 31–37
def test__split_list_long_single_doc() -> None:
"""Test splitting of a long single doc."""
docs = [Document(page_content="foo" * 100)]
with pytest.raises(
ValueError, match="A single document was longer than the context length"
):
split_list_of_docs(docs, _fake_docs_len_func, 100)
Domain
Subdomains
Source
Frequently Asked Questions
What does test__split_list_long_single_doc() do?
test__split_list_long_single_doc() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/chains/test_combine_documents.py.
Where is test__split_list_long_single_doc() defined?
test__split_list_long_single_doc() is defined in libs/langchain/tests/unit_tests/chains/test_combine_documents.py at line 31.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free