Home / Function/ test_qdrant_add_documents_extends_existing_collection() — langchain Function Reference

test_qdrant_add_documents_extends_existing_collection() — langchain Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

libs/partners/qdrant/tests/integration_tests/qdrant_vector_store/test_add_texts.py lines 24–45

def test_qdrant_add_documents_extends_existing_collection(
    location: str,
    vector_name: str,
    retrieval_mode: RetrievalMode,
    sparse_vector_name: str,
) -> None:
    """Test end to end construction and search."""
    texts = ["foo", "bar", "baz"]
    docsearch = QdrantVectorStore.from_texts(
        texts,
        ConsistentFakeEmbeddings(),
        location=location,
        vector_name=vector_name,
        retrieval_mode=retrieval_mode,
        sparse_vector_name=sparse_vector_name,
        sparse_embedding=ConsistentFakeSparseEmbeddings(),
    )

    new_texts = ["foobar", "foobaz"]
    docsearch.add_documents([Document(page_content=content) for content in new_texts])
    output = docsearch.similarity_search("foobar", k=1)
    assert_documents_equals(output, [Document(page_content="foobar")])

Domain

Subdomains

Frequently Asked Questions

What does test_qdrant_add_documents_extends_existing_collection() do?
test_qdrant_add_documents_extends_existing_collection() 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_documents_extends_existing_collection() defined?
test_qdrant_add_documents_extends_existing_collection() is defined in libs/partners/qdrant/tests/integration_tests/qdrant_vector_store/test_add_texts.py at line 24.

Analyze Your Own Codebase

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

Try Supermodel Free