Skip to content

Commit af9068c

Browse files
authored
fix: jinja problem of enumerate (#1216)
1 parent ea77cd6 commit af9068c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rdagent/scenarios/data_science/proposal/exp_gen/prompts_v2.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -473,8 +473,8 @@ hypothesis_select:
473473
The following are additional hypotheses that have been approved by other experiments.
474474
If any of these hypotheses have a SOTA score significantly higher than the current SOTA score in this experiment, you may want to prioritize considering them:
475475
Additional hypotheses (may include those corresponding to the SOTA score):
476-
{% for i, item in enumerate(selected_extra_hypo_l) %}
477-
{{ i+1 }}. {{ item[0] }} (item[1]: {{ "%.3f"|format(item[1]) }})
476+
{% for item in selected_extra_hypo_l %}
477+
{{ loop.index }}. {{ item[0] }} (score: {{ "%.3f"|format(item[1]) }})
478478
{% endfor %}
479479
{% endif %}
480480
{% else %}
@@ -485,8 +485,8 @@ hypothesis_select:
485485
The following are additional hypotheses that have been approved by other experiments.
486486
You can also serve as references and are part of the Hypothesis Source to help you quickly reach or surpass the SOTA score:
487487
Additional hypotheses (may include those corresponding to the SOTA score):
488-
{% for i, item in enumerate(selected_extra_hypo_l) %}
489-
{{ i+1 }}. {{ item[0] }} (item[1]: {{ "%.3f"|format(item[1]) }})
488+
{% for item in selected_extra_hypo_l %}
489+
{{ loop.index }}. {{ item[0] }} (score: {{ "%.3f"|format(item[1]) }})
490490
{% endfor %}
491491
{% endif %}
492492
{% endif %}

0 commit comments

Comments
 (0)