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-classicevaluationstring_distancebaseStringDistance
    Classโ—Since v1.5

    StringDistance

    Copy
    StringDistance()

    Bases

    strEnum

    Attributes

    View source on GitHub
    attribute
    DAMERAU_LEVENSHTEIN: str
    attribute
    LEVENSHTEIN: str
    attribute
    JARO: str
    attribute
    JARO_WINKLER: str
    attribute
    HAMMING: str
    attribute
    INDEL: str

    Distance metric to use.