Home / Function/ test_embed_query_normalized() — langchain Function Reference

test_embed_query_normalized() — langchain Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

libs/partners/openai/tests/integration_tests/embeddings/test_azure.py lines 131–133

def test_embed_query_normalized() -> None:
    output = _get_embeddings().embed_query("foo walked to the market")
    assert np.isclose(np.linalg.norm(output), 1.0)

Domain

Subdomains

Frequently Asked Questions

What does test_embed_query_normalized() do?
test_embed_query_normalized() is a function in the langchain codebase, defined in libs/partners/openai/tests/integration_tests/embeddings/test_azure.py.
Where is test_embed_query_normalized() defined?
test_embed_query_normalized() is defined in libs/partners/openai/tests/integration_tests/embeddings/test_azure.py at line 131.
What does test_embed_query_normalized() call?
test_embed_query_normalized() 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