perf: some small upgrade to factor costeer to improve the performance (#420)

* 1. use dataframe.info instead of head
2. in former trace query, add the latest attempt to the last success execution

* fix CI
This commit is contained in:
Xu Yang
2024-10-10 20:29:17 +08:00
committed by GitHub
parent 5402c00165
commit a6ddf08e2a
6 changed files with 44 additions and 9 deletions
@@ -40,7 +40,7 @@ def LLMSelect(
# find corresponding former trace for each task
target_factor_task_information = evo.sub_tasks[i].get_task_information()
if target_factor_task_information in former_trace:
tasks.append((i, evo.sub_tasks[i], former_trace[target_factor_task_information]))
tasks.append((i, evo.sub_tasks[i], former_trace[target_factor_task_information][0]))
system_prompt = (
Environment(undefined=StrictUndefined)