PARAPHRASE_PROMPT="""You are given an instruction that describes a task. Write a response that paraphrases the instruction. Only output the paraphrased instruction bracketed in <prompt> and </prompt>."""
classEditText(App):
BINDINGS=[
Binding(key="q",action="quit",description="Quit the app"),
]
def__init__(self,text):
self.text=text+"asdasdasd"
super().__init__()
defcompose(self)->ComposeResult:
self.text_area=TextArea.code_editor(self.text)
yieldFooter(self.text_area)
@log_calls("Paraphrasing prompts")
defparaphrase_prompts(
model:LLMModel,
...
...
@@ -266,6 +283,11 @@ class PromptOptimization:
logger.info(f"Prompt judged as bad. Letting User change the prompt.")