Home / Class/ LLMEvalChain Class — langchain Architecture

LLMEvalChain Class — langchain Architecture

Architecture documentation for the LLMEvalChain class in schema.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  5415ac56_b757_05e4_1f48_99970c59f799["LLMEvalChain"]
  f3cef70e_11b0_61c9_7ec0_7308f4b45056["Chain"]
  5415ac56_b757_05e4_1f48_99970c59f799 -->|extends| f3cef70e_11b0_61c9_7ec0_7308f4b45056
  b8a2957b_df2e_04bc_f892_0752a91e1a55["schema.py"]
  5415ac56_b757_05e4_1f48_99970c59f799 -->|defined in| b8a2957b_df2e_04bc_f892_0752a91e1a55
  5e66c4d4_83e8_989b_3959_52ce84bc805e["from_llm()"]
  5415ac56_b757_05e4_1f48_99970c59f799 -->|method| 5e66c4d4_83e8_989b_3959_52ce84bc805e

Relationship Graph

Source Code

libs/langchain/langchain_classic/evaluation/schema.py lines 75–81

class LLMEvalChain(Chain):
    """A base class for evaluators that use an LLM."""

    @classmethod
    @abstractmethod
    def from_llm(cls, llm: BaseLanguageModel, **kwargs: Any) -> LLMEvalChain:
        """Create a new evaluator from an LLM."""

Extends

Frequently Asked Questions

What is the LLMEvalChain class?
LLMEvalChain is a class in the langchain codebase, defined in libs/langchain/langchain_classic/evaluation/schema.py.
Where is LLMEvalChain defined?
LLMEvalChain is defined in libs/langchain/langchain_classic/evaluation/schema.py at line 75.
What does LLMEvalChain extend?
LLMEvalChain extends Chain.

Analyze Your Own Codebase

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

Try Supermodel Free