Home / Function/ test_azure_openai_embedding_documents_async_multiple() — langchain Function Reference

test_azure_openai_embedding_documents_async_multiple() — langchain Function Reference

Architecture documentation for the test_azure_openai_embedding_documents_async_multiple() function in test_azure.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  3ad6b373_c1dc_d63f_eb53_d96e0e7d1bf0["test_azure_openai_embedding_documents_async_multiple()"]
  b6441089_df7b_2f5f_20e3_97ad397ec4f9["test_azure.py"]
  3ad6b373_c1dc_d63f_eb53_d96e0e7d1bf0 -->|defined in| b6441089_df7b_2f5f_20e3_97ad397ec4f9
  e0a47da9_250f_6bd7_3263_1ac362d554a6["_get_embeddings()"]
  3ad6b373_c1dc_d63f_eb53_d96e0e7d1bf0 -->|calls| e0a47da9_250f_6bd7_3263_1ac362d554a6
  style 3ad6b373_c1dc_d63f_eb53_d96e0e7d1bf0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/openai/tests/integration_tests/embeddings/test_azure.py lines 70–79

async def test_azure_openai_embedding_documents_async_multiple() -> None:
    """Test openai embeddings."""
    documents = ["foo bar", "bar foo", "foo"]
    embedding = _get_embeddings(chunk_size=2)
    embedding.embedding_ctx_length = 8191
    output = await embedding.aembed_documents(documents)
    assert len(output) == 3
    assert len(output[0]) == 1536
    assert len(output[1]) == 1536
    assert len(output[2]) == 1536

Domain

Subdomains

Frequently Asked Questions

What does test_azure_openai_embedding_documents_async_multiple() do?
test_azure_openai_embedding_documents_async_multiple() is a function in the langchain codebase, defined in libs/partners/openai/tests/integration_tests/embeddings/test_azure.py.
Where is test_azure_openai_embedding_documents_async_multiple() defined?
test_azure_openai_embedding_documents_async_multiple() is defined in libs/partners/openai/tests/integration_tests/embeddings/test_azure.py at line 70.
What does test_azure_openai_embedding_documents_async_multiple() call?
test_azure_openai_embedding_documents_async_multiple() calls 1 function(s): _get_embeddings.

Analyze Your Own Codebase

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

Try Supermodel Free