Home / Function/ test__split_list_double_doc() — langchain Function Reference

test__split_list_double_doc() — langchain Function Reference

Architecture documentation for the test__split_list_double_doc() function in test_combine_documents.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  99b642ae_f4a7_82dd_936e_7573bd6403a6["test__split_list_double_doc()"]
  fdcbc2e2_7fde_290c_7006_d84e63536c57["test_combine_documents.py"]
  99b642ae_f4a7_82dd_936e_7573bd6403a6 -->|defined in| fdcbc2e2_7fde_290c_7006_d84e63536c57
  style 99b642ae_f4a7_82dd_936e_7573bd6403a6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/tests/unit_tests/chains/test_combine_documents.py lines 47–51

def test__split_list_double_doc() -> None:
    """Test splitting works with just two docs."""
    docs = [Document(page_content="foo"), Document(page_content="bar")]
    doc_list = split_list_of_docs(docs, _fake_docs_len_func, 100)
    assert doc_list == [docs]

Domain

Subdomains

Frequently Asked Questions

What does test__split_list_double_doc() do?
test__split_list_double_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_double_doc() defined?
test__split_list_double_doc() is defined in libs/langchain/tests/unit_tests/chains/test_combine_documents.py at line 47.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free