test_embeddings_standard.py — langchain Source File
Architecture documentation for test_embeddings_standard.py, a python file in the langchain codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 7e54bcc3_3c0a_eaf6_677f_bef907d199b3["test_embeddings_standard.py"] 8f882798_3f47_fa1f_5253_3b7193f357a9["langchain_tests.integration_tests"] 7e54bcc3_3c0a_eaf6_677f_bef907d199b3 --> 8f882798_3f47_fa1f_5253_3b7193f357a9 2262764c_34d0_6fe0_58d6_bd676e3a2575["langchain_huggingface.embeddings"] 7e54bcc3_3c0a_eaf6_677f_bef907d199b3 --> 2262764c_34d0_6fe0_58d6_bd676e3a2575 style 7e54bcc3_3c0a_eaf6_677f_bef907d199b3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"""Test HuggingFace embeddings."""
from langchain_tests.integration_tests import EmbeddingsIntegrationTests
from langchain_huggingface.embeddings import (
HuggingFaceEmbeddings,
HuggingFaceEndpointEmbeddings,
)
class TestHuggingFaceEmbeddings(EmbeddingsIntegrationTests):
@property
def embeddings_class(self) -> type[HuggingFaceEmbeddings]:
return HuggingFaceEmbeddings
@property
def embedding_model_params(self) -> dict:
return {"model_name": "sentence-transformers/all-mpnet-base-v2"}
class TestHuggingFaceEndpointEmbeddings(EmbeddingsIntegrationTests):
@property
def embeddings_class(self) -> type[HuggingFaceEndpointEmbeddings]:
return HuggingFaceEndpointEmbeddings
@property
def embedding_model_params(self) -> dict:
return {"model": "sentence-transformers/all-mpnet-base-v2"}
Domain
Subdomains
Dependencies
- langchain_huggingface.embeddings
- langchain_tests.integration_tests
Source
Frequently Asked Questions
What does test_embeddings_standard.py do?
test_embeddings_standard.py is a source file in the langchain codebase, written in python. It belongs to the CoreAbstractions domain, RunnableInterface subdomain.
What does test_embeddings_standard.py depend on?
test_embeddings_standard.py imports 2 module(s): langchain_huggingface.embeddings, langchain_tests.integration_tests.
Where is test_embeddings_standard.py in the architecture?
test_embeddings_standard.py is located at libs/partners/huggingface/tests/integration_tests/test_embeddings_standard.py (domain: CoreAbstractions, subdomain: RunnableInterface, directory: libs/partners/huggingface/tests/integration_tests).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free