test_embeddings.py — langchain Source File
Architecture documentation for test_embeddings.py, a python file in the langchain codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR b8484b89_9fb4_8e92_adf3_2ec56bea5d23["test_embeddings.py"] 9e98f0a7_ec6e_708f_4f1b_e9428b316e1c["os"] b8484b89_9fb4_8e92_adf3_2ec56bea5d23 --> 9e98f0a7_ec6e_708f_4f1b_e9428b316e1c 8f882798_3f47_fa1f_5253_3b7193f357a9["langchain_tests.integration_tests"] b8484b89_9fb4_8e92_adf3_2ec56bea5d23 --> 8f882798_3f47_fa1f_5253_3b7193f357a9 0297c4ad_9082_68e6_3e5b_3caf4001da4e["langchain_ollama.embeddings"] b8484b89_9fb4_8e92_adf3_2ec56bea5d23 --> 0297c4ad_9082_68e6_3e5b_3caf4001da4e style b8484b89_9fb4_8e92_adf3_2ec56bea5d23 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
"""Test Ollama embeddings."""
import os
from langchain_tests.integration_tests import EmbeddingsIntegrationTests
from langchain_ollama.embeddings import OllamaEmbeddings
MODEL_NAME = os.environ.get("OLLAMA_TEST_MODEL", "llama3.1")
class TestOllamaEmbeddings(EmbeddingsIntegrationTests):
@property
def embeddings_class(self) -> type[OllamaEmbeddings]:
return OllamaEmbeddings
@property
def embedding_model_params(self) -> dict:
return {"model": MODEL_NAME}
Domain
Subdomains
Classes
Dependencies
- langchain_ollama.embeddings
- langchain_tests.integration_tests
- os
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, Serialization subdomain.
What does test_embeddings.py depend on?
test_embeddings.py imports 3 module(s): langchain_ollama.embeddings, langchain_tests.integration_tests, os.
Where is test_embeddings.py in the architecture?
test_embeddings.py is located at libs/partners/ollama/tests/integration_tests/test_embeddings.py (domain: CoreAbstractions, subdomain: Serialization, directory: libs/partners/ollama/tests/integration_tests).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free