Home / Function/ test_qdrant_from_texts_raises_error_on_different_vector_name() — langchain Function Reference

test_qdrant_from_texts_raises_error_on_different_vector_name() — langchain Function Reference

Architecture documentation for the test_qdrant_from_texts_raises_error_on_different_vector_name() function in test_from_texts.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  d7903407_005e_7d09_026b_fa4fe4213bd3["test_qdrant_from_texts_raises_error_on_different_vector_name()"]
  7804b385_c130_47e1_2a48_71d688ae0935["test_from_texts.py"]
  d7903407_005e_7d09_026b_fa4fe4213bd3 -->|defined in| 7804b385_c130_47e1_2a48_71d688ae0935
  style d7903407_005e_7d09_026b_fa4fe4213bd3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/qdrant/tests/integration_tests/async_api/test_from_texts.py lines 156–179

async def test_qdrant_from_texts_raises_error_on_different_vector_name(
    location: str,
    first_vector_name: str | None,
    second_vector_name: str | None,
) -> None:
    """Test if Qdrant.afrom_texts raises an exception if vector name does not match."""
    collection_name = uuid.uuid4().hex

    await Qdrant.afrom_texts(
        ["lorem", "ipsum", "dolor", "sit", "amet"],
        ConsistentFakeEmbeddings(dimensionality=10),
        collection_name=collection_name,
        vector_name=first_vector_name,
        location=location,
    )

    with pytest.raises(QdrantException):
        await Qdrant.afrom_texts(
            ["foo", "bar"],
            ConsistentFakeEmbeddings(dimensionality=5),
            collection_name=collection_name,
            vector_name=second_vector_name,
            location=location,
        )

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free