Home / Function/ test_qdrant_from_texts_stores_duplicated_texts() — langchain Function Reference

test_qdrant_from_texts_stores_duplicated_texts() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  951e2264_e75a_3891_8e47_cee8d5bd317e["test_qdrant_from_texts_stores_duplicated_texts()"]
  a57b717d_2d4d_3890_29a0_1fe4629dbfac["test_from_texts.py"]
  951e2264_e75a_3891_8e47_cee8d5bd317e -->|defined in| a57b717d_2d4d_3890_29a0_1fe4629dbfac
  style 951e2264_e75a_3891_8e47_cee8d5bd317e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/qdrant/tests/integration_tests/test_from_texts.py lines 18–34

def test_qdrant_from_texts_stores_duplicated_texts() -> None:
    """Test end to end Qdrant.from_texts stores duplicated texts separately."""
    from qdrant_client import QdrantClient

    collection_name = uuid.uuid4().hex

    with tempfile.TemporaryDirectory() as tmpdir:
        vec_store = Qdrant.from_texts(
            ["abc", "abc"],
            ConsistentFakeEmbeddings(),
            collection_name=collection_name,
            path=str(tmpdir),
        )
        del vec_store

        client = QdrantClient(path=str(tmpdir))
        assert client.count(collection_name).count == 2

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free