forked from Archives/langchain
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
503 B
Python
23 lines
503 B
Python
# flake8: noqa
|
|
from langchain.prompts.prompt import PromptTemplate
|
|
|
|
NAIVE_FIX = """Instructions:
|
|
--------------
|
|
{instructions}
|
|
--------------
|
|
Completion:
|
|
--------------
|
|
{completion}
|
|
--------------
|
|
|
|
Above, the Completion did not satisfy the constraints given in the Instructions.
|
|
Error:
|
|
--------------
|
|
{error}
|
|
--------------
|
|
|
|
Please try again. Please only respond with an answer that satisfies the constraints laid out in the Instructions:"""
|
|
|
|
|
|
NAIVE_FIX_PROMPT = PromptTemplate.from_template(NAIVE_FIX)
|