Home / Function/ test_qdrant_add_texts_returns_all_ids() — langchain Function Reference

test_qdrant_add_texts_returns_all_ids() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  0a7a8025_1bc9_6107_6e4a_9ac513462a8e["test_qdrant_add_texts_returns_all_ids()"]
  cfb482fe_7880_43f9_b1d4_600dadb066ca["test_add_texts.py"]
  0a7a8025_1bc9_6107_6e4a_9ac513462a8e -->|defined in| cfb482fe_7880_43f9_b1d4_600dadb066ca
  style 0a7a8025_1bc9_6107_6e4a_9ac513462a8e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/qdrant/tests/integration_tests/qdrant_vector_store/test_add_texts.py lines 55–77

def test_qdrant_add_texts_returns_all_ids(
    location: str,
    vector_name: str,
    retrieval_mode: RetrievalMode,
    sparse_vector_name: str,
    batch_size: int,
) -> None:
    """Test end to end Qdrant.add_texts returns unique ids."""
    docsearch = QdrantVectorStore.from_texts(
        ["foobar"],
        ConsistentFakeEmbeddings(),
        location=location,
        vector_name=vector_name,
        retrieval_mode=retrieval_mode,
        sparse_vector_name=sparse_vector_name,
        sparse_embedding=ConsistentFakeSparseEmbeddings(),
        batch_size=batch_size,
    )

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

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free