test_embeddings.py — langchain Source File
Architecture documentation for test_embeddings.py, a python file in the langchain codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 41caa1aa_4403_49b1_9552_aa99cc093165["test_embeddings.py"] 8e2034b7_ceb8_963f_29fc_2ea6b50ef9b3["typing"] 41caa1aa_4403_49b1_9552_aa99cc093165 --> 8e2034b7_ceb8_963f_29fc_2ea6b50ef9b3 bc46b61d_cfdf_3f6b_a9dd_ac2a328d84b3["langchain_core.embeddings"] 41caa1aa_4403_49b1_9552_aa99cc093165 --> bc46b61d_cfdf_3f6b_a9dd_ac2a328d84b3 8f882798_3f47_fa1f_5253_3b7193f357a9["langchain_tests.integration_tests"] 41caa1aa_4403_49b1_9552_aa99cc093165 --> 8f882798_3f47_fa1f_5253_3b7193f357a9 bab3058f_1ec6_5a8a_2b11_86f46e62adb4["langchain_tests.unit_tests"] 41caa1aa_4403_49b1_9552_aa99cc093165 --> bab3058f_1ec6_5a8a_2b11_86f46e62adb4 style 41caa1aa_4403_49b1_9552_aa99cc093165 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
from typing import Any
from langchain_core.embeddings import DeterministicFakeEmbedding, Embeddings
from langchain_tests.integration_tests import EmbeddingsIntegrationTests
from langchain_tests.unit_tests import EmbeddingsUnitTests
class TestFakeEmbeddingsUnit(EmbeddingsUnitTests):
@property
def embeddings_class(self) -> type[Embeddings]:
return DeterministicFakeEmbedding
@property
def embedding_model_params(self) -> dict[str, Any]:
return {"size": 6} # embedding dimension
class TestFakeEmbeddingsIntegration(EmbeddingsIntegrationTests):
@property
def embeddings_class(self) -> type[Embeddings]:
return DeterministicFakeEmbedding
@property
def embedding_model_params(self) -> dict[str, Any]:
return {"size": 6}
Domain
Subdomains
Dependencies
- langchain_core.embeddings
- langchain_tests.integration_tests
- langchain_tests.unit_tests
- typing
Source
Frequently Asked Questions
What does test_embeddings.py do?
test_embeddings.py is a source file in the langchain codebase, written in python. It belongs to the CoreAbstractions domain, RunnableInterface subdomain.
What does test_embeddings.py depend on?
test_embeddings.py imports 4 module(s): langchain_core.embeddings, langchain_tests.integration_tests, langchain_tests.unit_tests, typing.
Where is test_embeddings.py in the architecture?
test_embeddings.py is located at libs/standard-tests/tests/unit_tests/test_embeddings.py (domain: CoreAbstractions, subdomain: RunnableInterface, directory: libs/standard-tests/tests/unit_tests).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free