Home / Function/ test_vectorstore_from_texts() — langchain Function Reference

test_vectorstore_from_texts() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  b97db8b4_743e_607d_c69e_bf3379b0af45["test_vectorstore_from_texts()"]
  911ffb0f_3570_ae90_9ff9_2c9c03151aea["test_from_texts.py"]
  b97db8b4_743e_607d_c69e_bf3379b0af45 -->|defined in| 911ffb0f_3570_ae90_9ff9_2c9c03151aea
  style b97db8b4_743e_607d_c69e_bf3379b0af45 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

def test_vectorstore_from_texts(location: str, retrieval_mode: RetrievalMode) -> None:
    """Test end to end Qdrant.from_texts stores texts."""
    collection_name = uuid.uuid4().hex

    vec_store = QdrantVectorStore.from_texts(
        ["Lorem ipsum dolor sit amet", "Ipsum dolor sit amet"],
        ConsistentFakeEmbeddings(),
        collection_name=collection_name,
        location=location,
        retrieval_mode=retrieval_mode,
        sparse_embedding=ConsistentFakeSparseEmbeddings(),
    )

    assert vec_store.client.count(collection_name).count == 2

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free