langchain_core.prompts.loading.load_prompt¶

langchain_core.prompts.loading.load_prompt(path: Union[str, Path]) BasePromptTemplate[source]¶

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

Parameters

path (Union[str, Path]) –

Return type

BasePromptTemplate

Examples using load_prompt¶