Home / Function/ _get_embeddings() — langchain Function Reference

_get_embeddings() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  e0a47da9_250f_6bd7_3263_1ac362d554a6["_get_embeddings()"]
  b6441089_df7b_2f5f_20e3_97ad397ec4f9["test_azure.py"]
  e0a47da9_250f_6bd7_3263_1ac362d554a6 -->|defined in| b6441089_df7b_2f5f_20e3_97ad397ec4f9
  7520f1a7_a163_8ea9_8e6f_fc2d42a46d2b["test_azure_openai_embedding_documents()"]
  7520f1a7_a163_8ea9_8e6f_fc2d42a46d2b -->|calls| e0a47da9_250f_6bd7_3263_1ac362d554a6
  68dffb3b_f074_d3ce_09e6_792b847e6954["test_azure_openai_embedding_documents_multiple()"]
  68dffb3b_f074_d3ce_09e6_792b847e6954 -->|calls| e0a47da9_250f_6bd7_3263_1ac362d554a6
  e681fc0d_9c8d_78c6_01b0_7b26eab89b49["test_azure_openai_embedding_documents_chunk_size()"]
  e681fc0d_9c8d_78c6_01b0_7b26eab89b49 -->|calls| e0a47da9_250f_6bd7_3263_1ac362d554a6
  3ad6b373_c1dc_d63f_eb53_d96e0e7d1bf0["test_azure_openai_embedding_documents_async_multiple()"]
  3ad6b373_c1dc_d63f_eb53_d96e0e7d1bf0 -->|calls| e0a47da9_250f_6bd7_3263_1ac362d554a6
  2f9f3d13_0d03_86b0_dbde_7480f71ea239["test_azure_openai_embedding_query()"]
  2f9f3d13_0d03_86b0_dbde_7480f71ea239 -->|calls| e0a47da9_250f_6bd7_3263_1ac362d554a6
  476e51d2_e1b7_ebf1_6a12_898e38d39024["test_azure_openai_embedding_async_query()"]
  476e51d2_e1b7_ebf1_6a12_898e38d39024 -->|calls| e0a47da9_250f_6bd7_3263_1ac362d554a6
  df3a3585_56f8_a39f_c242_4c844580bfc9["test_azure_openai_embedding_with_empty_string()"]
  df3a3585_56f8_a39f_c242_4c844580bfc9 -->|calls| e0a47da9_250f_6bd7_3263_1ac362d554a6
  7071e8e9_d2c5_ad9c_28ea_03523fc6e267["test_embed_documents_normalized()"]
  7071e8e9_d2c5_ad9c_28ea_03523fc6e267 -->|calls| e0a47da9_250f_6bd7_3263_1ac362d554a6
  0285d785_4a5e_3190_c0de_787468ffb501["test_embed_query_normalized()"]
  0285d785_4a5e_3190_c0de_787468ffb501 -->|calls| e0a47da9_250f_6bd7_3263_1ac362d554a6
  style e0a47da9_250f_6bd7_3263_1ac362d554a6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/openai/tests/integration_tests/embeddings/test_azure.py lines 22–29

def _get_embeddings(**kwargs: Any) -> AzureOpenAIEmbeddings:
    return AzureOpenAIEmbeddings(  # type: ignore[call-arg]
        azure_deployment=DEPLOYMENT_NAME,
        api_version=OPENAI_API_VERSION,
        azure_endpoint=OPENAI_API_BASE,
        openai_api_key=OPENAI_API_KEY,
        **kwargs,
    )

Domain

Subdomains

Frequently Asked Questions

What does _get_embeddings() do?
_get_embeddings() is a function in the langchain codebase, defined in libs/partners/openai/tests/integration_tests/embeddings/test_azure.py.
Where is _get_embeddings() defined?
_get_embeddings() is defined in libs/partners/openai/tests/integration_tests/embeddings/test_azure.py at line 22.
What calls _get_embeddings()?
_get_embeddings() is called by 9 function(s): test_azure_openai_embedding_async_query, test_azure_openai_embedding_documents, test_azure_openai_embedding_documents_async_multiple, test_azure_openai_embedding_documents_chunk_size, test_azure_openai_embedding_documents_multiple, test_azure_openai_embedding_query, test_azure_openai_embedding_with_empty_string, test_embed_documents_normalized, and 1 more.

Analyze Your Own Codebase

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

Try Supermodel Free