Commit
·
e54a1f1
1
Parent(s):
6c473f5
Update name of expected_inputs/outputs variables.
Browse files- CF_Code.yaml +2 -2
- CF_CodeCollab.yaml +1 -1
- CF_CodeCritic.yaml +2 -2
- CF_CodeReflect.yaml +5 -5
- CF_CodeWithPlan.yaml +2 -2
- CF_Plan.yaml +2 -2
- CF_PlanCollab.yaml +3 -3
- CF_PlanCritic.yaml +2 -2
- CF_PlanReflect.yaml +4 -4
CF_Code.yaml
CHANGED
@@ -65,13 +65,13 @@ query_message_prompt_template:
|
|
65 |
code_placeholder: "{{python_code}}"
|
66 |
template_format: jinja2
|
67 |
|
68 |
-
|
69 |
- "problem_description"
|
70 |
- "input_description"
|
71 |
- "output_description"
|
72 |
- "io_examples_and_explanation"
|
73 |
|
74 |
-
|
75 |
- "code"
|
76 |
|
77 |
response_annotators:
|
|
|
65 |
code_placeholder: "{{python_code}}"
|
66 |
template_format: jinja2
|
67 |
|
68 |
+
input_keys:
|
69 |
- "problem_description"
|
70 |
- "input_description"
|
71 |
- "output_description"
|
72 |
- "io_examples_and_explanation"
|
73 |
|
74 |
+
output_keys:
|
75 |
- "code"
|
76 |
|
77 |
response_annotators:
|
CF_CodeCollab.yaml
CHANGED
@@ -38,7 +38,7 @@ subflows_config:
|
|
38 |
end_of_interaction_message: "Final answer"
|
39 |
key: "end_of_interaction"
|
40 |
verbose: True
|
41 |
-
|
42 |
- "code"
|
43 |
- "end_of_interaction"
|
44 |
- _target_: flows.flow_verse.instantiate_flow
|
|
|
38 |
end_of_interaction_message: "Final answer"
|
39 |
key: "end_of_interaction"
|
40 |
verbose: True
|
41 |
+
output_keys:
|
42 |
- "code"
|
43 |
- "end_of_interaction"
|
44 |
- _target_: flows.flow_verse.instantiate_flow
|
CF_CodeCritic.yaml
CHANGED
@@ -67,7 +67,7 @@ query_message_prompt_template:
|
|
67 |
- "code"
|
68 |
template_format: jinja2
|
69 |
|
70 |
-
|
71 |
- "problem_description"
|
72 |
- "input_description"
|
73 |
- "output_description"
|
@@ -75,5 +75,5 @@ expected_inputs:
|
|
75 |
- "code"
|
76 |
- "api_key"
|
77 |
|
78 |
-
|
79 |
- "query"
|
|
|
67 |
- "code"
|
68 |
template_format: jinja2
|
69 |
|
70 |
+
input_keys:
|
71 |
- "problem_description"
|
72 |
- "input_description"
|
73 |
- "output_description"
|
|
|
75 |
- "code"
|
76 |
- "api_key"
|
77 |
|
78 |
+
output_keys:
|
79 |
- "query"
|
CF_CodeReflect.yaml
CHANGED
@@ -2,13 +2,13 @@ name: "CodeReflect_Flow"
|
|
2 |
verbose: True
|
3 |
description: "ToDO: add description"
|
4 |
|
5 |
-
|
6 |
- "problem_description"
|
7 |
- "input_description"
|
8 |
- "output_description"
|
9 |
- "io_examples_and_explanation"
|
10 |
|
11 |
-
|
12 |
- "code"
|
13 |
- "end_of_interaction"
|
14 |
|
@@ -25,7 +25,7 @@ subflows_config:
|
|
25 |
overrides:
|
26 |
name: "CodeGenerator"
|
27 |
model_name: "gpt-4"
|
28 |
-
|
29 |
- "code"
|
30 |
- "end_of_interaction"
|
31 |
response_annotators:
|
@@ -38,8 +38,8 @@ subflows_config:
|
|
38 |
overrides:
|
39 |
name: "CodeFixedReplyCritic"
|
40 |
description: "ToDo: Add description"
|
41 |
-
|
42 |
-
|
43 |
- "query"
|
44 |
fixed_reply: |2-
|
45 |
Consider the problem statement and the last proposed solution. Are you sure that the solution is provided in the requested format, and crucially, solves the problem?
|
|
|
2 |
verbose: True
|
3 |
description: "ToDO: add description"
|
4 |
|
5 |
+
input_keys:
|
6 |
- "problem_description"
|
7 |
- "input_description"
|
8 |
- "output_description"
|
9 |
- "io_examples_and_explanation"
|
10 |
|
11 |
+
output_keys:
|
12 |
- "code"
|
13 |
- "end_of_interaction"
|
14 |
|
|
|
25 |
overrides:
|
26 |
name: "CodeGenerator"
|
27 |
model_name: "gpt-4"
|
28 |
+
output_keys:
|
29 |
- "code"
|
30 |
- "end_of_interaction"
|
31 |
response_annotators:
|
|
|
38 |
overrides:
|
39 |
name: "CodeFixedReplyCritic"
|
40 |
description: "ToDo: Add description"
|
41 |
+
input_keys: []
|
42 |
+
output_keys:
|
43 |
- "query"
|
44 |
fixed_reply: |2-
|
45 |
Consider the problem statement and the last proposed solution. Are you sure that the solution is provided in the requested format, and crucially, solves the problem?
|
CF_CodeWithPlan.yaml
CHANGED
@@ -71,7 +71,7 @@ query_message_prompt_template:
|
|
71 |
code_placeholder: "{{python_code}}"
|
72 |
template_format: jinja2
|
73 |
|
74 |
-
|
75 |
- "problem_description"
|
76 |
- "input_description"
|
77 |
- "output_description"
|
@@ -79,7 +79,7 @@ expected_inputs:
|
|
79 |
- "plan"
|
80 |
- "api_key"
|
81 |
|
82 |
-
|
83 |
- "code"
|
84 |
|
85 |
response_annotators:
|
|
|
71 |
code_placeholder: "{{python_code}}"
|
72 |
template_format: jinja2
|
73 |
|
74 |
+
input_keys:
|
75 |
- "problem_description"
|
76 |
- "input_description"
|
77 |
- "output_description"
|
|
|
79 |
- "plan"
|
80 |
- "api_key"
|
81 |
|
82 |
+
output_keys:
|
83 |
- "code"
|
84 |
|
85 |
response_annotators:
|
CF_Plan.yaml
CHANGED
@@ -66,14 +66,14 @@ query_message_prompt_template:
|
|
66 |
plan_placeholder: "{{conceptual_solution}}"
|
67 |
template_format: jinja2
|
68 |
|
69 |
-
|
70 |
- "problem_description"
|
71 |
- "input_description"
|
72 |
- "output_description"
|
73 |
- "io_examples_and_explanation"
|
74 |
- "api_key"
|
75 |
|
76 |
-
|
77 |
- "plan"
|
78 |
|
79 |
response_annotators:
|
|
|
66 |
plan_placeholder: "{{conceptual_solution}}"
|
67 |
template_format: jinja2
|
68 |
|
69 |
+
input_keys:
|
70 |
- "problem_description"
|
71 |
- "input_description"
|
72 |
- "output_description"
|
73 |
- "io_examples_and_explanation"
|
74 |
- "api_key"
|
75 |
|
76 |
+
output_keys:
|
77 |
- "plan"
|
78 |
|
79 |
response_annotators:
|
CF_PlanCollab.yaml
CHANGED
@@ -7,14 +7,14 @@ reset_critic_every_round: True
|
|
7 |
max_rounds: 2 # ToDo: To increase to 4
|
8 |
early_exit_key: "end_of_interaction"
|
9 |
|
10 |
-
|
11 |
- "problem_description"
|
12 |
- "input_description"
|
13 |
- "output_description"
|
14 |
- "io_examples_and_explanation"
|
15 |
- "api_key"
|
16 |
|
17 |
-
|
18 |
- "plan"
|
19 |
|
20 |
subflows_config:
|
@@ -47,7 +47,7 @@ subflows_config:
|
|
47 |
end_of_interaction_message: "Final answer"
|
48 |
key: "end_of_interaction"
|
49 |
verbose: True
|
50 |
-
|
51 |
- "plan"
|
52 |
- "end_of_interaction"
|
53 |
- _target_: flows.flow_verse.instantiate_flow
|
|
|
7 |
max_rounds: 2 # ToDo: To increase to 4
|
8 |
early_exit_key: "end_of_interaction"
|
9 |
|
10 |
+
input_keys:
|
11 |
- "problem_description"
|
12 |
- "input_description"
|
13 |
- "output_description"
|
14 |
- "io_examples_and_explanation"
|
15 |
- "api_key"
|
16 |
|
17 |
+
output_keys:
|
18 |
- "plan"
|
19 |
|
20 |
subflows_config:
|
|
|
47 |
end_of_interaction_message: "Final answer"
|
48 |
key: "end_of_interaction"
|
49 |
verbose: True
|
50 |
+
output_keys:
|
51 |
- "plan"
|
52 |
- "end_of_interaction"
|
53 |
- _target_: flows.flow_verse.instantiate_flow
|
CF_PlanCritic.yaml
CHANGED
@@ -66,7 +66,7 @@ query_message_prompt_template:
|
|
66 |
- "plan"
|
67 |
template_format: jinja2
|
68 |
|
69 |
-
|
70 |
- "problem_description"
|
71 |
- "input_description"
|
72 |
- "output_description"
|
@@ -74,5 +74,5 @@ expected_inputs:
|
|
74 |
- "plan"
|
75 |
- "api_key"
|
76 |
|
77 |
-
|
78 |
- "query"
|
|
|
66 |
- "plan"
|
67 |
template_format: jinja2
|
68 |
|
69 |
+
input_keys:
|
70 |
- "problem_description"
|
71 |
- "input_description"
|
72 |
- "output_description"
|
|
|
74 |
- "plan"
|
75 |
- "api_key"
|
76 |
|
77 |
+
output_keys:
|
78 |
- "query"
|
CF_PlanReflect.yaml
CHANGED
@@ -7,14 +7,14 @@ reset_critic_every_round: True
|
|
7 |
max_rounds: 2 # To increase to 4
|
8 |
early_exit_key: "end_of_interaction"
|
9 |
|
10 |
-
|
11 |
- "problem_description"
|
12 |
- "input_description"
|
13 |
- "output_description"
|
14 |
- "io_examples_and_explanation"
|
15 |
- "api_key"
|
16 |
|
17 |
-
|
18 |
- "plan"
|
19 |
|
20 |
subflows_config:
|
@@ -31,14 +31,14 @@ subflows_config:
|
|
31 |
end_of_interaction_message: "Final answer"
|
32 |
key: "end_of_interaction"
|
33 |
verbose: True
|
34 |
-
|
35 |
- "plan"
|
36 |
- "end_of_interaction"
|
37 |
- _target_: flows.base_flows.FixedReplyAtomicFlow.instantiate_with_overrides
|
38 |
overrides:
|
39 |
name: "PlanCritic"
|
40 |
description: "ToDo: Add description"
|
41 |
-
|
42 |
- "query"
|
43 |
fixed_reply: |2-
|
44 |
Consider the problem statement and the last proposed solution. Are you sure that the solution is provided in the requested format, and crucially, solves the problem?
|
|
|
7 |
max_rounds: 2 # To increase to 4
|
8 |
early_exit_key: "end_of_interaction"
|
9 |
|
10 |
+
input_keys:
|
11 |
- "problem_description"
|
12 |
- "input_description"
|
13 |
- "output_description"
|
14 |
- "io_examples_and_explanation"
|
15 |
- "api_key"
|
16 |
|
17 |
+
output_keys:
|
18 |
- "plan"
|
19 |
|
20 |
subflows_config:
|
|
|
31 |
end_of_interaction_message: "Final answer"
|
32 |
key: "end_of_interaction"
|
33 |
verbose: True
|
34 |
+
output_keys:
|
35 |
- "plan"
|
36 |
- "end_of_interaction"
|
37 |
- _target_: flows.base_flows.FixedReplyAtomicFlow.instantiate_with_overrides
|
38 |
overrides:
|
39 |
name: "PlanCritic"
|
40 |
description: "ToDo: Add description"
|
41 |
+
output_keys:
|
42 |
- "query"
|
43 |
fixed_reply: |2-
|
44 |
Consider the problem statement and the last proposed solution. Are you sure that the solution is provided in the requested format, and crucially, solves the problem?
|