Home / Function/ test_qdrant_aadd_texts_returns_all_ids() — langchain Function Reference

test_qdrant_aadd_texts_returns_all_ids() — langchain Function Reference

Architecture documentation for the test_qdrant_aadd_texts_returns_all_ids() function in test_add_texts.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  c83beec0_3eda_5ad4_63a9_2e851a61671a["test_qdrant_aadd_texts_returns_all_ids()"]
  fa987b47_f67d_62d0_09e8_08022f943abe["test_add_texts.py"]
  c83beec0_3eda_5ad4_63a9_2e851a61671a -->|defined in| fa987b47_f67d_62d0_09e8_08022f943abe
  style c83beec0_3eda_5ad4_63a9_2e851a61671a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/qdrant/tests/integration_tests/async_api/test_add_texts.py lines 17–30

async def test_qdrant_aadd_texts_returns_all_ids(
    batch_size: int, qdrant_location: str
) -> None:
    """Test end to end Qdrant.aadd_texts returns unique ids."""
    docsearch: Qdrant = Qdrant.from_texts(
        ["foobar"],
        ConsistentFakeEmbeddings(),
        batch_size=batch_size,
        location=qdrant_location,
    )

    ids = await docsearch.aadd_texts(["foo", "bar", "baz"])
    assert len(ids) == 3
    assert len(set(ids)) == 3

Domain

Subdomains

Frequently Asked Questions

What does test_qdrant_aadd_texts_returns_all_ids() do?
test_qdrant_aadd_texts_returns_all_ids() is a function in the langchain codebase, defined in libs/partners/qdrant/tests/integration_tests/async_api/test_add_texts.py.
Where is test_qdrant_aadd_texts_returns_all_ids() defined?
test_qdrant_aadd_texts_returns_all_ids() is defined in libs/partners/qdrant/tests/integration_tests/async_api/test_add_texts.py at line 17.

Analyze Your Own Codebase

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

Try Supermodel Free