experimental[patch]: prompts import fix (#20534)

Replaced `from langchain.prompts` with `from langchain_core.prompts`
where it is appropriate.
Most of the changes go to `langchain_experimental`
Similar to #20348
This commit is contained in:
Leonid Ganeline
2024-04-18 13:09:11 -07:00
committed by GitHub
parent 2542a09abc
commit 95dc90609e
28 changed files with 40 additions and 41 deletions

View File

@@ -1,5 +1,5 @@
from langchain.prompts.few_shot import FewShotPromptTemplate
from langchain.prompts.prompt import PromptTemplate
from langchain_core.prompts.few_shot import FewShotPromptTemplate
from langchain_core.prompts.prompt import PromptTemplate
fallacy_critique_example = PromptTemplate(
template="""Human: {input_prompt}