Skip to content

Commit c0c22de

Browse files
committed
chore: fix the qlib *hypothesis_and_feedback
when access in the prompt: rdagent/scenarios/qlib/prompts.yaml:298: {% if last_hypothesis_and_feedback != "" %} rdagent/components/proposal/prompts.yaml:17: {% if hypothesis_and_feedback|length == 0 %}
1 parent 06ba314 commit c0c22de

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

rdagent/scenarios/qlib/proposal/factor_proposal.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,15 @@ def prepare_context(self, trace: Trace) -> Tuple[dict, bool]:
2222
trace=trace,
2323
)
2424
if len(trace.hist) > 0
25-
else "No previous hypothesis and feedback available since it's the first round."
25+
else str()
26+
2627
)
2728
last_hypothesis_and_feedback = (
2829
T("scenarios.qlib.prompts:last_hypothesis_and_feedback").r(
2930
experiment=trace.hist[-1][0], feedback=trace.hist[-1][1]
3031
)
3132
if len(trace.hist) > 0
32-
else "No previous hypothesis and feedback available since it's the first round."
33+
else str()
3334
)
3435

3536
context_dict = {

0 commit comments

Comments
 (0)