feat: update prompt to improve json respond format of some LLM models (#928)

* update prompt to improve json respond format of some LLM models

* fix

* fix

---------

Co-authored-by: WinstonLiyte <1957922024@qq.com>
This commit is contained in:
Haoran Pan
2025-06-06 11:49:40 +08:00
committed by GitHub
parent 6ce765f05d
commit 3490719259
2 changed files with 4 additions and 1 deletions
@@ -49,6 +49,8 @@ evolving_strategy_factor_implementation_v1_system: |-
Your must write your code based on your former latest attempt below which consists of your former code and code feedback, you should read the former attempt carefully and must not modify the right part of your former code.
Notice that you should not add any other text before or after the json format.
{% if queried_former_failed_knowledge|length != 0 %}
--------------Your former latest attempt:---------------
=====Code to the former implementation=====
@@ -188,7 +190,7 @@ evaluator_final_decision_v1_system: |-
The implementation final decision is considered in the following logic:
1. If the value and the ground truth value are exactly the same under a small tolerance, the implementation is considered correct.
2. If the value and the ground truth value have a high correlation on ic or rank ic, the implementation is considered correct.
3. If no ground truth value is provided, the implementation is considered correct if the code executes successfully (assuming the data provided is correct). Any exceptions, including those actively raised, are considered faults of the code. Additionally, the code feedback must align with the scenario and factor description.
3. If no ground truth value is provided, the implementation is considered correct if the code executes successfully (assuming the data provided is correct). Any exceptions, including those actively raised, are considered faults of the code. Additionally, the code feedback must align with the scenario and factor description. The implementation cannot be considered correct if the code execution failed, no matter what the reason is.
Please response the critic in the json format. Here is an example structure for the JSON output, please strictly follow the format:
{
+1
View File
@@ -109,6 +109,7 @@ factor_hypothesis_specification: |-
- If optimizing a specific type of factor, proceed from simple to complex.
5. Note
- Highlight that factors surpassing SOTA are included in the library to avoid re-implementation.
- No matter how many factors you plan to generate, only reply with one set of hypothesis and reason. The hypothesis can include the proposal of multiple factors at the same time.
factor_experiment_output_format: |-
The output should follow JSON format. The schema is as follows: