Home / Function/ test_azure_openai_embedding_documents() — langchain Function Reference

test_azure_openai_embedding_documents() — langchain Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

libs/partners/openai/tests/integration_tests/embeddings/test_azure.py lines 33–39

def test_azure_openai_embedding_documents() -> None:
    """Test openai embeddings."""
    documents = ["foo bar"]
    embedding = _get_embeddings()
    output = embedding.embed_documents(documents)
    assert len(output) == 1
    assert len(output[0]) == 1536

Domain

Subdomains

Frequently Asked Questions

What does test_azure_openai_embedding_documents() do?
test_azure_openai_embedding_documents() 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() defined?
test_azure_openai_embedding_documents() is defined in libs/partners/openai/tests/integration_tests/embeddings/test_azure.py at line 33.
What does test_azure_openai_embedding_documents() call?
test_azure_openai_embedding_documents() 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