Toggle Menu
Prev Up Next

# `langchain.chains.loading`.load_chain

langchain.chains.loading.load_chain(path: Union[str, Path], **kwargs: Any) → Chain

  Unified method for loading a chain from LangChainHub or local fs.

  Parameters

    - path (Union[str, Path]) –

    - kwargs (Any) –

  Return type

    Chain

# Examples using load_chain

- Using https://huggingface.co/laiyer/deberta-v3-base-prompt-injection