diff --git a/evoprompt/evolution/evolution.py b/evoprompt/evolution/evolution.py index d3e0ec338c8356d3062868034770abd29ecd3fa6..7412f1f4c972442d8f92ff0cb336c33aaa7e66d0 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,