test_azure_standard.py — langchain Source File
Architecture documentation for test_azure_standard.py, a python file in the langchain codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR b6d7134a_d493_b94c_fbe0_d373af81b9d5["test_azure_standard.py"] bc46b61d_cfdf_3f6b_a9dd_ac2a328d84b3["langchain_core.embeddings"] b6d7134a_d493_b94c_fbe0_d373af81b9d5 --> bc46b61d_cfdf_3f6b_a9dd_ac2a328d84b3 2fbe8eb1_5f30_3412_8f93_d0622486af65["langchain_tests.unit_tests.embeddings"] b6d7134a_d493_b94c_fbe0_d373af81b9d5 --> 2fbe8eb1_5f30_3412_8f93_d0622486af65 0b28cff6_d823_1571_d2bb_ec61508cc89c["langchain_openai"] b6d7134a_d493_b94c_fbe0_d373af81b9d5 --> 0b28cff6_d823_1571_d2bb_ec61508cc89c style b6d7134a_d493_b94c_fbe0_d373af81b9d5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
from langchain_core.embeddings import Embeddings
from langchain_tests.unit_tests.embeddings import EmbeddingsUnitTests
from langchain_openai import AzureOpenAIEmbeddings
class TestAzureOpenAIStandard(EmbeddingsUnitTests):
@property
def embeddings_class(self) -> type[Embeddings]:
return AzureOpenAIEmbeddings
@property
def embedding_model_params(self) -> dict:
return {"api_key": "api_key", "azure_endpoint": "https://endpoint.com"}
@property
def init_from_env_params(self) -> tuple[dict, dict, dict]:
return (
{
"AZURE_OPENAI_API_KEY": "api_key",
"AZURE_OPENAI_ENDPOINT": "https://endpoint.com",
"AZURE_OPENAI_AD_TOKEN": "token",
"OPENAI_ORG_ID": "org_id",
"OPENAI_API_VERSION": "yyyy-mm-dd",
"OPENAI_API_TYPE": "type",
},
{},
{
"openai_api_key": "api_key",
"azure_endpoint": "https://endpoint.com",
"azure_ad_token": "token",
"openai_organization": "org_id",
"openai_api_version": "yyyy-mm-dd",
"openai_api_type": "type",
},
)
Domain
Subdomains
Classes
Dependencies
- langchain_core.embeddings
- langchain_openai
- langchain_tests.unit_tests.embeddings
Source
Frequently Asked Questions
What does test_azure_standard.py do?
test_azure_standard.py is a source file in the langchain codebase, written in python. It belongs to the CoreAbstractions domain, Serialization subdomain.
What does test_azure_standard.py depend on?
test_azure_standard.py imports 3 module(s): langchain_core.embeddings, langchain_openai, langchain_tests.unit_tests.embeddings.
Where is test_azure_standard.py in the architecture?
test_azure_standard.py is located at libs/partners/openai/tests/unit_tests/embeddings/test_azure_standard.py (domain: CoreAbstractions, subdomain: Serialization, directory: libs/partners/openai/tests/unit_tests/embeddings).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free