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>."""
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>."""
...
@@ -40,22 +43,28 @@ def paraphrase_prompts(
...
@@ -40,22 +43,28 @@ def paraphrase_prompts(
classPromptOptimization:
classPromptOptimization:
total_evaluation_usage:ModelUsage
total_evolution_usage:ModelUsage
run_directory:Path
# P contains the list of prompts at each generation
P:list[list[Prompt]]
# family_tree contains the relation of prompts to its parents
family_tree:dict[str,tuple[str,...]|None]
# all_prompts contains a list of Prompt objects that took part in the optimization