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-classicchainsflarebaseFlareChainfrom_llm
    Methodโ—Since v1.5

    from_llm

    Copy
    from_llm(
      cls,
      llm: BaseLanguageModel | None,
      max_generation_len: int = 32,
      kwargs: Any
    View source on GitHub
    =
    {
    }
    )
    ->
    FlareChain

    Parameters

    NameTypeDescription
    llm*BaseLanguageModel | None
    max_generation_lenint
    Default:32
    kwargsAny
    Default:{}

    Creates a FlareChain from a language model.

    Language model to use.

    Maximum length of the generated response.

    Additional arguments to pass to the constructor.