From 06b73a3bebec61484a3d654712189d231a2ceeea Mon Sep 17 00:00:00 2001 From: Maximilian Kimmich <maximilian.kimmich@ims.uni-stuttgart.de> Date: Thu, 17 Oct 2024 11:56:17 +0200 Subject: [PATCH] Rename prompt source to match defined literal --- evoprompt/evolution/evolution.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/evoprompt/evolution/evolution.py b/evoprompt/evolution/evolution.py index d3e0ec3..7412f1f 100644 --- a/evoprompt/evolution/evolution.py +++ b/evoprompt/evolution/evolution.py @@ -199,7 +199,7 @@ class EvolutionAlgorithm(PromptOptimization, metaclass=ABCMeta): prompt_source = ( "corrected" # could also mean that user skipped the prompt if False in [j.happy for j in judgements] - else "generated" + else "evolution" ) evolved_prompt = self.add_prompt( p_i, @@ -554,6 +554,7 @@ class DifferentialEvolutionWithCot(DifferentialEvolution): response, ) # TODO use serialized messages as prompt or use previous evolution steps as history? + input(f"{len(evolutions_steps)}, \n{evolutions_steps}") judgement = self.judge_and_correct_step( filled_prompt, response, -- GitLab