From bf5787f58bbf847d7567720bed1bcb7a92ccbb2b Mon Sep 17 00:00:00 2001 From: Leonid Ganeline Date: Tue, 28 Nov 2023 16:40:27 -0800 Subject: [PATCH] experimental[patch]: fixed namespace bug (#13585) It was : `from langchain.schema.prompts import BasePromptTemplate` but because of the breaking change in the ns, it is now `from langchain.schema.prompt_template import BasePromptTemplate` This bug prevents building the API Reference for the langchain_experimental --- libs/experimental/langchain_experimental/prompts/load.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/experimental/langchain_experimental/prompts/load.py b/libs/experimental/langchain_experimental/prompts/load.py index 3944e180739..a1065c2e0a1 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: