LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • MCP Adapters
    Standard Tests
    Text Splitters
    • Overview
    • Agents
    • Callbacks
    • Chains
    • Chat models
    • Embeddings
    • Evaluation
    • Globals
    • Hub
    • Memory
    • Output parsers
    • Retrievers
    • Runnables
    • LangSmith
    • Storage
    โŒ˜I

    Chat LangChain

    What can I help with?

    Enter to sendยทShift+Enter new line

    Menu

    MCP Adapters
    Standard Tests
    Text Splitters
    OverviewAgentsCallbacksChainsChat modelsEmbeddingsEvaluationGlobalsHubMemoryOutput parsersRetrieversRunnablesLangSmithStorage
    Language
    Theme
    Pythonlangchain-classicevaluationschemaStringEvaluator
    Classโ—Since v1.5

    StringEvaluator

    Copy
    StringEvaluator()

    Bases

    _EvalArgsMixinABC

    Attributes

    Methods

    View source on GitHub
    attribute
    evaluation_name: str

    The name of the evaluation.

    attribute
    requires_reference: bool

    Whether this evaluator requires a reference label.

    method
    evaluate_strings

    Evaluate Chain or LLM output, based on optional input and label.

    method
    aevaluate_strings

    Asynchronously evaluate Chain or LLM output, based on optional input and label.

    String evaluator interface.

    Grade, tag, or otherwise evaluate predictions relative to their inputs and/or reference labels.