Home / Function/ test_indexing_with_no_docs() — langchain Function Reference

test_indexing_with_no_docs() — langchain Function Reference

Architecture documentation for the test_indexing_with_no_docs() function in test_indexing.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  912624ef_1bec_b4db_607b_21fe34d5972d["test_indexing_with_no_docs()"]
  576ad89d_c8dc_eddf_9cd2_c8ae0e7c9978["test_indexing.py"]
  912624ef_1bec_b4db_607b_21fe34d5972d -->|defined in| 576ad89d_c8dc_eddf_9cd2_c8ae0e7c9978
  style 912624ef_1bec_b4db_607b_21fe34d5972d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/indexing/test_indexing.py lines 1957–1974

def test_indexing_with_no_docs(
    record_manager: InMemoryRecordManager, vector_store: VectorStore
) -> None:
    """Check edge case when loader returns no new docs."""
    loader = ToyLoader(documents=[])

    assert index(
        loader,
        record_manager,
        vector_store,
        cleanup="full",
        key_encoder="sha256",
    ) == {
        "num_added": 0,
        "num_deleted": 0,
        "num_skipped": 0,
        "num_updated": 0,
    }

Subdomains

Frequently Asked Questions

What does test_indexing_with_no_docs() do?
test_indexing_with_no_docs() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/indexing/test_indexing.py.
Where is test_indexing_with_no_docs() defined?
test_indexing_with_no_docs() is defined in libs/core/tests/unit_tests/indexing/test_indexing.py at line 1957.

Analyze Your Own Codebase

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

Try Supermodel Free