You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: examples/creative_writing/configs/SOP.json
+32-28
Original file line number
Diff line number
Diff line change
@@ -2,25 +2,25 @@
2
2
"nodes": {
3
3
"node_write": {
4
4
"node_name": "node_write",
5
+
"node_description": "Compose a coherent and fluent passage based on provided questions. Ensure each paragraph ends with a specific concluding sentence to maintain narrative consistency and emphasize key points.",
6
+
"node_roles_description": {
7
+
"role_write": "Compose a fluent and coherent passage based on the given questions. Ensure that each paragraph concludes with the specified sentence to reinforce key ideas and provide a smooth narrative flow."
8
+
},
9
+
"begin_role": "role_write",
10
+
"begin_query": null,
5
11
"controller": {
6
-
"route_type": "order",
7
-
"transit_type": "order",
8
12
"max_chat_nums": 20,
13
+
"transit_type": "order",
9
14
"transit_system_prompt": "",
10
15
"transit_last_prompt": "",
11
16
"transit_extract_word": "end",
17
+
"route_type": "order",
12
18
"route_system_prompt": "",
13
19
"route_last_prompt": "",
14
20
"route_extract_word": "end"
15
21
},
16
-
"begin_role": "role_write",
17
-
"node_description": "Write a fluent passage based on the questions given, in which the closing part of each paragraph ends with the sentence given",
18
-
"tools": "",
19
-
"node_roles_description": {
20
-
"role_write": "Write a fluent passage based on the questions given, in which the closing part of each paragraph ends with the sentence given"
21
-
},
22
22
"node_prompt_templates": {
23
-
"step_write": "A creative writing task where the input is 4 random sentences and the output should be a coherent passage with 4 paragraphs that end in the 4 input sentences respectively. Such a task is open-ended and exploratory, and challenges creative thinking as well as high-level planning. Here is the four sentences: 1. The sun was shining brightly. 2. The birds were chirping. 3. The flowers were blooming. 4. The children were playing in the park. Please write a passage that ends with each of the four sentences: {text}"
23
+
"step_write": "Compose a creative passage of four paragraphs, adhering to the following guidelines: \n1. Each paragraph should conclude with one of these sentences in the given order \n2. The narrative should be coherent, logically consistent, and maintain a consistent tone and setting throughout. \n3. Avoid introducing characters or elements without context. \n4. Ensure smooth transitions between paragraphs. \nUse these sentences respectively to conclude each of the four paragraphs: {text}."
24
24
},
25
25
"node_prompt_paddings": {
26
26
"role_write": {
@@ -29,50 +29,54 @@
29
29
"value": "input_data"
30
30
}
31
31
}
32
-
}
32
+
},
33
+
"kb": null
33
34
},
34
-
"node_check": {
35
-
"node_name": "node_check",
35
+
"node_edit": {
36
+
"node_name": "node_edit",
37
+
"node_description": "Review the passage written by 'role_write'. The node should correct errors, improve logical flow, and enhance readability.",
38
+
"node_roles_description": {
39
+
"role_edit": "The role of 'role_edit' is to review the passage written by 'role_write', correcting grammatical errors, improving logical flow, and enhancing readability. The final result should be free of major errors and optimized for fluency."
40
+
},
41
+
"begin_role": "role_edit",
42
+
"begin_query": null,
36
43
"controller": {
37
-
"route_type": "order",
38
-
"transit_type": "order",
39
44
"max_chat_nums": 20,
45
+
"transit_type": "order",
40
46
"transit_system_prompt": "",
41
47
"transit_last_prompt": "",
42
48
"transit_extract_word": "end",
49
+
"route_type": "order",
43
50
"route_system_prompt": "",
44
51
"route_last_prompt": "",
45
52
"route_extract_word": "end"
46
53
},
47
-
"begin_role": "role_check",
48
-
"node_description": "Check that the written text is correct and fluent, and modify the text appropriately to make it fluent",
49
-
"tools": "",
50
-
"node_roles_description": {
51
-
"role_check": "Check the text written by the previous person, analyze it, and optimize it to make it more fluent"
52
-
},
53
54
"node_prompt_templates": {
54
-
"step_check": "Check the text written by the previous person, analyze it, and optimize it to make it more fluent. Please enclose the optimized text in <result>[put the optimized text here]</result>."
55
+
"step_role_edit": "Review and refine the passage written by 'role_write' for coherence, grammar, and style. Ensure the final passage flows smoothly and meets the required standards. Specifically, the last sentence of the paragraph should sequentially come from the following sentences: {text}. Please use <result>[the passage you refined]</result> to wrap the result."
Copy file name to clipboardexpand all lines: examples/creative_writing/configs/task.json
-1
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,4 @@
1
1
{
2
-
"task_id": "CreativeWriting",
3
2
"task_name": "CreativeWriting",
4
3
"task_type": "",
5
4
"task_description": "A creative writing task where the input is 4 random sentences and the output should be a coherent passage with 4 paragraphs that end in the 4 input sentences respectively. Such a task is open-ended and exploratory, and challenges creative thinking as well as high-level planning."
0 commit comments