mirror of
https://github.com/hwchase17/langchain
synced 2024-11-10 01:10:59 +00:00
95dc90609e
Replaced `from langchain.prompts` with `from langchain_core.prompts` where it is appropriate. Most of the changes go to `langchain_experimental` Similar to #20348
16 lines
464 B
Python
16 lines
464 B
Python
from langchain_core.prompts.prompt import PromptTemplate
|
|
|
|
sentence_template = """Given the following fields, create a sentence about them.
|
|
Make the sentence detailed and interesting. Use every given field.
|
|
If any additional preferences are given, use them during sentence construction as well.
|
|
Fields:
|
|
{fields}
|
|
Preferences:
|
|
{preferences}
|
|
Sentence:
|
|
"""
|
|
|
|
SENTENCE_PROMPT = PromptTemplate(
|
|
template=sentence_template, input_variables=["fields", "preferences"]
|
|
)
|