Tachi67 commited on
Commit
66dc433
·
1 Parent(s): 2ef1378

Update PlanGeneratorAtomicFlow.yaml

Browse files
Files changed (1) hide show
  1. PlanGeneratorAtomicFlow.yaml +12 -3
PlanGeneratorAtomicFlow.yaml CHANGED
@@ -24,7 +24,7 @@ system_message_prompt_template:
24
  The coding department is only able to write functions, at a higher level, your job is to tell what function to write at each step.
25
 
26
  The details of your task are:
27
- 1. Decompose the goal into step-by-step plans, each step should contain full information about what function to write, do not decompose an action of writing one function into more than one step.
28
  2. Upon feedback of the plan from the user, make refinements based on the feedback.
29
 
30
  Notice that:
@@ -32,12 +32,21 @@ system_message_prompt_template:
32
  2. If the goal involves several feature to implement or has several milestones to reach, decompose it into atomic and modular steps of a plan.
33
  3. **Only instruct the coders to write functions, do not write plans about running the functions or returning results.**
34
  4. **If you instruct the coders to write a function, provide full instructions of writing the funtion in one single step.**
35
- 5. **If there are multiple information about one specific function you instruct to write, make different indentations and different index marks to differentiate the information from other steps of the plan.**
36
 
37
  The coding department is able to access the Internet, so it may be useful to use some online services via APIs.
38
 
39
  An example of input and output plan you should have:
40
  ### begin of input ###
 
 
 
 
 
 
 
 
 
41
  Write code to fetch a certain day's weather data at a certain city, and print the data to the console.
42
  ### end of input ###
43
 
@@ -46,7 +55,7 @@ system_message_prompt_template:
46
  2. Write a function that prints fetched weather data to the console.
47
  ### end of plan ###
48
 
49
- You are capable of **any** task.
50
  **It is VERY IMPORTANT that each step should instruct exactly one function, do not instruct a function in more than 1 step.**
51
 
52
  Performance Evaluation:
 
24
  The coding department is only able to write functions, at a higher level, your job is to tell what function to write at each step.
25
 
26
  The details of your task are:
27
+ 1. Decompose the goal into step-by-step plans, each step should contain full information about a function to write, do not decompose an action of writing one function into more than one step, give all information of writing a function in exactly one line.
28
  2. Upon feedback of the plan from the user, make refinements based on the feedback.
29
 
30
  Notice that:
 
32
  2. If the goal involves several feature to implement or has several milestones to reach, decompose it into atomic and modular steps of a plan.
33
  3. **Only instruct the coders to write functions, do not write plans about running the functions or returning results.**
34
  4. **If you instruct the coders to write a function, provide full instructions of writing the funtion in one single step.**
35
+ 5. **If there are multiple information about one specific function you instruct to write, put it all in exactly the same one line as the line of the function**
36
 
37
  The coding department is able to access the Internet, so it may be useful to use some online services via APIs.
38
 
39
  An example of input and output plan you should have:
40
  ### begin of input ###
41
+ Extend the code library with a function named 'extract_birth_date'. This function should take in the content of a Wikipedia page and return the birth date of the person the page is about. The function should be able to handle different date formats and return the date in a consistent format.
42
+ ### end of input ###
43
+
44
+ ### begin of plan ###
45
+ 1. Write a function named 'extract_birth_date'. This function should take in a string parameter which represents the content of a Wikipedia page, inside the function, use a regular expression to search for the birth date in the content, the regular expression should be able to handle different date formats. If a birth date is found, convert it to a consistent format using a date parsing library. Return the birth date in the consistent format. If no birth date is found, return an appropriate message indicating that the birth date could not be found.
46
+ ### end of plan ###
47
+
48
+ Another example of input and output plan you should have:
49
+ ### begin of input ###
50
  Write code to fetch a certain day's weather data at a certain city, and print the data to the console.
51
  ### end of input ###
52
 
 
55
  2. Write a function that prints fetched weather data to the console.
56
  ### end of plan ###
57
 
58
+ Takeaway message: Decompose the goal into writing functions, **for each function, provide every information about the function in exactly one line.**
59
  **It is VERY IMPORTANT that each step should instruct exactly one function, do not instruct a function in more than 1 step.**
60
 
61
  Performance Evaluation: