test_azure_openai_embedding_documents_chunk_size() — langchain Function Reference
Architecture documentation for the test_azure_openai_embedding_documents_chunk_size() function in test_azure.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD e681fc0d_9c8d_78c6_01b0_7b26eab89b49["test_azure_openai_embedding_documents_chunk_size()"] b6441089_df7b_2f5f_20e3_97ad397ec4f9["test_azure.py"] e681fc0d_9c8d_78c6_01b0_7b26eab89b49 -->|defined in| b6441089_df7b_2f5f_20e3_97ad397ec4f9 e0a47da9_250f_6bd7_3263_1ac362d554a6["_get_embeddings()"] e681fc0d_9c8d_78c6_01b0_7b26eab89b49 -->|calls| e0a47da9_250f_6bd7_3263_1ac362d554a6 style e681fc0d_9c8d_78c6_01b0_7b26eab89b49 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/openai/tests/integration_tests/embeddings/test_azure.py lines 57–66
def test_azure_openai_embedding_documents_chunk_size() -> None:
"""Test openai embeddings."""
documents = ["foo bar"] * 20
embedding = _get_embeddings()
embedding.embedding_ctx_length = 8191
output = embedding.embed_documents(documents)
# Max 2048 chunks per batch on Azure OpenAI embeddings
assert embedding.chunk_size == 2048
assert len(output) == 20
assert all(len(out) == 1536 for out in output)
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does test_azure_openai_embedding_documents_chunk_size() do?
test_azure_openai_embedding_documents_chunk_size() 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_chunk_size() defined?
test_azure_openai_embedding_documents_chunk_size() is defined in libs/partners/openai/tests/integration_tests/embeddings/test_azure.py at line 57.
What does test_azure_openai_embedding_documents_chunk_size() call?
test_azure_openai_embedding_documents_chunk_size() 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