Home / File/ test_embeddings_standard.py — langchain Source File

test_embeddings_standard.py — langchain Source File

Architecture documentation for test_embeddings_standard.py, a python file in the langchain codebase. 3 imports, 0 dependents.

File python LangChainCore Runnables 3 imports 1 classes

Entity Profile

Dependency Diagram

graph LR
  c6964d81_ee3f_cb3c_3e92_ff8f9d62e268["test_embeddings_standard.py"]
  918b8514_ba55_6df2_7254_4598ec160e33["langchain_core.embeddings"]
  c6964d81_ee3f_cb3c_3e92_ff8f9d62e268 --> 918b8514_ba55_6df2_7254_4598ec160e33
  6147b906_d31c_21e2_24da_c3accd4ffc08["langchain_tests.unit_tests.embeddings"]
  c6964d81_ee3f_cb3c_3e92_ff8f9d62e268 --> 6147b906_d31c_21e2_24da_c3accd4ffc08
  8fb0b028_3090_f6d0_439f_e1b8a0c592ed["langchain_fireworks"]
  c6964d81_ee3f_cb3c_3e92_ff8f9d62e268 --> 8fb0b028_3090_f6d0_439f_e1b8a0c592ed
  style c6964d81_ee3f_cb3c_3e92_ff8f9d62e268 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

"""Standard LangChain interface tests."""

from langchain_core.embeddings import Embeddings
from langchain_tests.unit_tests.embeddings import EmbeddingsUnitTests

from langchain_fireworks import FireworksEmbeddings


class TestFireworksStandard(EmbeddingsUnitTests):
    @property
    def embeddings_class(self) -> type[Embeddings]:
        return FireworksEmbeddings

    @property
    def embeddings_params(self) -> dict:
        return {"api_key": "test_api_key"}

    @property
    def init_from_env_params(self) -> tuple[dict, dict, dict]:
        return (
            {
                "FIREWORKS_API_KEY": "api_key",
            },
            {},
            {
                "fireworks_api_key": "api_key",
            },
        )

Domain

Subdomains

Dependencies

  • langchain_core.embeddings
  • langchain_fireworks
  • langchain_tests.unit_tests.embeddings

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 LangChainCore domain, Runnables subdomain.
What does test_embeddings_standard.py depend on?
test_embeddings_standard.py imports 3 module(s): langchain_core.embeddings, langchain_fireworks, langchain_tests.unit_tests.embeddings.
Where is test_embeddings_standard.py in the architecture?
test_embeddings_standard.py is located at libs/partners/fireworks/tests/unit_tests/test_embeddings_standard.py (domain: LangChainCore, subdomain: Runnables, directory: libs/partners/fireworks/tests/unit_tests).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free