Skip to content

Commit

Permalink
Update rdagent/scenarios/qlib/task_generator/feedback.py
Browse files Browse the repository at this point in the history
  • Loading branch information
you-n-g authored Jul 15, 2024
1 parent d68a666 commit b32d9dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rdagent/scenarios/qlib/task_generator/feedback.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ def generateFeedback(self, exp: Experiment, hypothesis: Hypothesis, trace: Trace
return hypothesis_feedback

except json.JSONDecodeError as e:
# TODO: (Xiao) I think raising a specific type of ERROR to make caller know sth bad has happend would be more reasonable
print("Error parsing JSON response from LLM for hypothesis feedback:", e)
except Exception as e:
print("An unexpected error occurred while generating hypothesis feedback:", e)
Expand Down

0 comments on commit b32d9dd

Please sign in to comment.