Skip to content

Commit 34e143c

Browse files
authored
fix: avoid try-except in ensemble eval prompts (microsoft#637)
* avoid try-except in prompts * remove try-except limit from coder prompt * add no try-except criteria in ensemble eval
1 parent e73db7e commit 34e143c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

rdagent/components/coder/data_science/ensemble/prompts.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ ensemble_eval:
9090
{% endif %}
9191
9292
## Evaluation Criteria
93-
You will be given the standard output (`stdout`) from the ensemble test and, if applicable, the workflow test.
93+
- You will be given the standard output (`stdout`) from the ensemble test and, if applicable, the workflow test.
94+
- Code should have no try-except blocks because they can hide errors.
9495
9596
Please respond with your feedback in the following JSON format and order
9697
```json

rdagent/components/coder/data_science/raw_data_loader/prompts.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ data_loader_coder:
329329
330330
## Guidelines
331331
1. Ensure that the dataset is loaded strictly from `/kaggle/input/`, following the exact folder structure described in the **Data Folder Description**, and do not attempt to load data from the current directory (`./`).
332+
3. You should avoid using logging module to output information in your generated code, and instead use the print() function.
332333
333334
## Output Format
334335
Please response the code in the following json format. Here is an example structure for the JSON output:

0 commit comments

Comments
 (0)