diff --git a/libs/experimental/langchain_experimental/prompts/load.py b/libs/experimental/langchain_experimental/prompts/load.py index 3944e18073..a1065c2e0a 100644 --- a/libs/experimental/langchain_experimental/prompts/load.py +++ b/libs/experimental/langchain_experimental/prompts/load.py @@ -6,7 +6,7 @@ from typing import Union import yaml from langchain.prompts.loading import load_prompt_from_config, try_load_from_hub -from langchain.schema.prompts import BasePromptTemplate +from langchain_core.prompts import BasePromptTemplate def load_prompt(path: Union[str, Path]) -> BasePromptTemplate: