diff --git a/rdagent/components/coder/factor_coder/utils.py b/rdagent/components/coder/factor_coder/utils.py index cfc71457..a36d7bcd 100644 --- a/rdagent/components/coder/factor_coder/utils.py +++ b/rdagent/components/coder/factor_coder/utils.py @@ -22,7 +22,7 @@ def get_data_folder_intro(): It is for preparing prompting message. """ content_l = [] - for p in Path(FACTOR_IMPLEMENT_SETTINGS.data_folder).iterdir(): + for p in Path(FACTOR_IMPLEMENT_SETTINGS.data_folder_debug).iterdir(): if p.name.endswith(".h5"): df = pd.read_hdf(p) # get df.head() as string with full width diff --git a/rdagent/scenarios/qlib/factor_experiment_loader/pdf_loader.py b/rdagent/scenarios/qlib/factor_experiment_loader/pdf_loader.py index f5b9f94e..f62f5f21 100644 --- a/rdagent/scenarios/qlib/factor_experiment_loader/pdf_loader.py +++ b/rdagent/scenarios/qlib/factor_experiment_loader/pdf_loader.py @@ -183,7 +183,7 @@ def __extract_factors_formulation_from_content( except json.JSONDecodeError: parse_success = False if ret_json_str is None or not parse_success: - current_user_prompt = "Your response didn't follow the instruction might be wrong json format. Try again." + current_user_prompt = "Your response didn't follow the instruction might be wrong json format.\nRemember not to add any dots (...) in the json string which will cause json parse error!!!\nTry again." else: for name, formulation_and_description in ret_dict.items(): if name in factor_dict: