mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-23 03:19:38 +00:00
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:
@@ -3,9 +3,9 @@ from typing import Any, Dict, List, Optional, Union
|
||||
|
||||
from langchain.chains.base import Chain
|
||||
from langchain.chains.llm import LLMChain
|
||||
from langchain.prompts.few_shot import FewShotPromptTemplate
|
||||
from langchain.pydantic_v1 import BaseModel, root_validator
|
||||
from langchain_core.language_models import BaseLanguageModel
|
||||
from langchain_core.prompts.few_shot import FewShotPromptTemplate
|
||||
|
||||
|
||||
class SyntheticDataGenerator(BaseModel):
|
||||
|
@@ -1,4 +1,4 @@
|
||||
from langchain.prompts.prompt import PromptTemplate
|
||||
from langchain_core.prompts.prompt import PromptTemplate
|
||||
|
||||
DEFAULT_INPUT_KEY = "example"
|
||||
DEFAULT_PROMPT = PromptTemplate(
|
||||
|
Reference in New Issue
Block a user