Home / Function/ test__collapse_docs_no_metadata() — langchain Function Reference

test__collapse_docs_no_metadata() — langchain Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

libs/langchain/tests/unit_tests/chains/test_combine_documents.py lines 80–89

def test__collapse_docs_no_metadata() -> None:
    """Test collapse documents functionality when no metadata."""
    docs = [
        Document(page_content="foo"),
        Document(page_content="bar"),
        Document(page_content="baz"),
    ]
    output = collapse_docs(docs, _fake_combine_docs_func)
    expected_output = Document(page_content="foobarbaz")
    assert output == expected_output

Domain

Subdomains

Frequently Asked Questions

What does test__collapse_docs_no_metadata() do?
test__collapse_docs_no_metadata() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/chains/test_combine_documents.py.
Where is test__collapse_docs_no_metadata() defined?
test__collapse_docs_no_metadata() is defined in libs/langchain/tests/unit_tests/chains/test_combine_documents.py at line 80.

Analyze Your Own Codebase

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

Try Supermodel Free