test_mistral_init() — langchain Function Reference
Architecture documentation for the test_mistral_init() function in test_embeddings.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD c8d7f90c_4aac_d0da_4675_686f0e8e7ddf["test_mistral_init()"] 259e18fc_a89d_a0b6_f2b4_0abe004bec8a["test_embeddings.py"] c8d7f90c_4aac_d0da_4675_686f0e8e7ddf -->|defined in| 259e18fc_a89d_a0b6_f2b4_0abe004bec8a style c8d7f90c_4aac_d0da_4675_686f0e8e7ddf fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/mistralai/tests/unit_tests/test_embeddings.py lines 11–17
def test_mistral_init() -> None:
for model in [
MistralAIEmbeddings(model="mistral-embed", mistral_api_key="test"), # type: ignore[call-arg]
MistralAIEmbeddings(model="mistral-embed", api_key="test"), # type: ignore[arg-type]
]:
assert model.model == "mistral-embed"
assert cast("SecretStr", model.mistral_api_key).get_secret_value() == "test"
Domain
Subdomains
Source
Frequently Asked Questions
What does test_mistral_init() do?
test_mistral_init() is a function in the langchain codebase, defined in libs/partners/mistralai/tests/unit_tests/test_embeddings.py.
Where is test_mistral_init() defined?
test_mistral_init() is defined in libs/partners/mistralai/tests/unit_tests/test_embeddings.py at line 11.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free