Home / Function/ test_mistralai_embedding_documents_long() — langchain Function Reference

test_mistralai_embedding_documents_long() — langchain Function Reference

Architecture documentation for the test_mistralai_embedding_documents_long() function in test_embeddings.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  bdfe0410_2c7f_5696_a3aa_1610774b9a4b["test_mistralai_embedding_documents_long()"]
  92d013b2_fa85_724e_8abf_3543e9326d00["test_embeddings.py"]
  bdfe0410_2c7f_5696_a3aa_1610774b9a4b -->|defined in| 92d013b2_fa85_724e_8abf_3543e9326d00
  style bdfe0410_2c7f_5696_a3aa_1610774b9a4b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/mistralai/tests/integration_tests/test_embeddings.py lines 76–82

def test_mistralai_embedding_documents_long() -> None:
    """Test MistralAI embeddings for documents."""
    documents = ["foo bar " * 1000, "test document " * 1000] * 5
    embedding = MistralAIEmbeddings()
    output = embedding.embed_documents(documents)
    assert len(output) == 10
    assert len(output[0]) == 1024

Domain

Subdomains

Frequently Asked Questions

What does test_mistralai_embedding_documents_long() do?
test_mistralai_embedding_documents_long() is a function in the langchain codebase, defined in libs/partners/mistralai/tests/integration_tests/test_embeddings.py.
Where is test_mistralai_embedding_documents_long() defined?
test_mistralai_embedding_documents_long() is defined in libs/partners/mistralai/tests/integration_tests/test_embeddings.py at line 76.

Analyze Your Own Codebase

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

Try Supermodel Free