File size: 12,667 Bytes
5374a2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
{
    "class_name": "SequentialWorkFlowGraph",
    "goal": "Provide a direct answer to the question based on the context, without including explanations or reasoning.",
    "tasks": [
        {
            "name": "answer_generate",
            "description": "Generate a direct answer to the question based on the context.",
            "inputs": [
                {
                    "name": "question",
                    "type": "str",
                    "description": "The question to answer directly.",
                    "required": true
                }
            ],
            "outputs": [
                {
                    "name": "answer",
                    "type": "str",
                    "description": "The direct answer to the question.",
                    "required": true
                }
            ],
            "prompt": "```xml\n\"\"\"\nTo answer the question, first assess the context provided: {context}. Determine if the question: {question} is clear and unambiguous. If the question is ambiguous, respond with <answer>Ambiguous</answer>. If it is clear, generate a direct answer that can only be 'Yes' or 'No' based on the context. Format your output in XML, using <thought> to describe your reasoning process and <answer> to provide the final answer. Ensure that the answer aligns with the context and is validated for significance. If the answer is uncertain, indicate this in the <thought> field.\n\"\"\"\n```",
            "prompt_template": {
                "class_name": "StringTemplate",
                "instruction": "Think step by step to answer the question. You should explain your thinking process in the 'thought' field, and provide the final answer in the 'answer' field. You answer could be only Yes or NO.\nFormat your output in xml format, such as <thought>xxx</thought> and <answer>xxx</answer>."
            },
            "system_prompt": "You are a helpful and highly intelligent assistant.",
            "parse_mode": "xml",
            "parse_func": null,
            "parse_title": null,
            "tool_names": null
        },
        {
            "name": "validation_step5476",
            "description": "Task to validation_step5476. Takes answer as input. Produces validated_answer as output.",
            "inputs": [
                {
                    "name": "answer",
                    "type": "str",
                    "description": "Input parameter answer for validation_step5476",
                    "required": false
                }
            ],
            "outputs": [
                {
                    "name": "validated_answer",
                    "type": "str",
                    "description": "Output parameter validated_answer from validation_step5476",
                    "required": true
                }
            ],
            "prompt": "``` \nINSTRUCTION for the 2-th task:\n\"\"\"\nTo answer the question based on the provided context, follow these steps: \n1. Carefully read and integrate the context to formulate your answer.\n2. Generate a direct response to the question `{question}` in the 'answer' field.\n3. In the 'thought' field, briefly describe how the context influenced your answer, ensuring clarity and relevance.\n4. Validate the generated answer `{answer}` for accuracy before proceeding to the next step.\n5. Conduct a consistency check to ensure the answer aligns with the context and any relevant information.\n6. Assess the significance of the final answer to determine its relevance and correctness.\n7. Handle any errors or conflicting information appropriately to ensure the final output is reliable.\n\nFormat your output in XML format, using <thought>{thought}</thought> and <answer>{answer}</answer>.\n\"\"\" \n```",
            "prompt_template": {
                "class_name": "StringTemplate",
                "instruction": "Think step by step to answer the question based on the question context. You should integrate context for answering. You should explain your thinking process in the 'thought' field, and provide the final answer in the 'answer' field.\nFormat your output in xml format, such as <thought>xxx</thought> and <answer>xxx</answer>."
            },
            "system_prompt": "You are a helpful and highly intelligent assistant.",
            "parse_mode": "xml",
            "parse_func": null,
            "parse_title": null,
            "tool_names": null
        },
        {
            "name": "consistency_check7297",
            "description": "Task to consistency_check7297. Takes validated_answer as input. Produces final_answer as output.",
            "inputs": [
                {
                    "name": "validated_answer",
                    "type": "str",
                    "description": "Input parameter validated_answer for consistency_check7297",
                    "required": false
                }
            ],
            "outputs": [
                {
                    "name": "final_answer",
                    "type": "str",
                    "description": "Output parameter final_answer from consistency_check7297",
                    "required": true
                }
            ],
            "prompt": "```xml\n\"\"\"\nFor the task of answering the question, follow these steps carefully. First, analyze the context provided to formulate a direct answer to the question `{question}`. Validate your generated answer `{answer}` to ensure it aligns with the expected ground-truth solution. If your answer differs from the expected solution, note this discrepancy. Proceed to check the consistency of your validated answer before finalizing it. Assess the significance of your final answer based on the context and criteria provided. Ensure that your final answer is clear and unambiguous. Format your output in XML as follows: <thought>{your_thought_process}</thought> and <answer>{your_final_answer}</answer>.\n\"\"\"\n```",
            "prompt_template": {
                "class_name": "StringTemplate",
                "instruction": "Think step by step to answer the question based on the question context. You should integrate context for answering. You should explain your thinking process in the 'thought' field, and provide the final answer in the 'answer' field.\nFormat your output in xml format, such as <thought>xxx</thought> and <answer>xxx</answer>."
            },
            "system_prompt": "You are a helpful and highly intelligent assistant.",
            "parse_mode": "xml",
            "parse_func": null,
            "parse_title": null,
            "tool_names": null
        },
        {
            "name": "significance_assessment6324",
            "description": "Task to significance_assessment6324. Takes final_answer as input. Produces assessed_answer as output.",
            "inputs": [
                {
                    "name": "final_answer",
                    "type": "str",
                    "description": "Input parameter final_answer for significance_assessment6324",
                    "required": false
                }
            ],
            "outputs": [
                {
                    "name": "assessed_answer",
                    "type": "str",
                    "description": "Output parameter assessed_answer from significance_assessment6324",
                    "required": true
                }
            ],
            "prompt": "``` \nINSTRUCTION for the 4-th task:\n\"\"\"\nAnalyze the context provided in {question} to formulate your answer directly from it. If the context contains any ambiguities or conflicting information, clearly indicate this in your response. Format your output in XML format, using <thought>{your_thought_process}</thought> to describe your thought process and <answer>{final_answer}</answer> to present your direct answer derived from the context. Ensure that your answer is concise, strictly based on the information given, and does not include additional explanations or reasoning.\n\"\"\"\n```",
            "prompt_template": {
                "class_name": "StringTemplate",
                "instruction": "Think step by step to answer the question based on the question context. You should integrate context for answering. You should explain your thinking process in the 'thought' field, and provide the final answer in the 'answer' field.\nFormat your output in xml format, such as <thought>xxx</thought> and <answer>xxx</answer>."
            },
            "system_prompt": "You are a helpful and highly intelligent assistant.",
            "parse_mode": "xml",
            "parse_func": null,
            "parse_title": null,
            "tool_names": null
        },
        {
            "name": "error_logging97",
            "description": "Task to error_logging97. Takes validated_answer as input. ",
            "inputs": [
                {
                    "name": "validated_answer",
                    "type": "str",
                    "description": "Input parameter validated_answer for error_logging97",
                    "required": false
                }
            ],
            "outputs": [],
            "prompt": "```plaintext\n\"\"\"\nFor the 5-th task, provide a structured approach to answer the question based on the context. You should integrate the context effectively to derive the answer. In the 'thought' field, explain your reasoning process clearly, ensuring it aligns with the context provided. The final answer should be presented in the 'answer' field. Format your output in XML format, using the following structure: <thought>{thought}</thought> and <answer>{answer}</answer>. Ensure that your reasoning is concise and directly related to the context and question.\n\"\"\"\n```",
            "prompt_template": {
                "class_name": "StringTemplate",
                "instruction": "Think step by step to answer the question based on the question context. You should integrate context for answering. You should explain your thinking process in the 'thought' field, and provide the final answer in the 'answer' field.\nFormat your output in xml format, such as <thought>xxx</thought> and <answer>xxx</answer>."
            },
            "system_prompt": "You are a helpful and highly intelligent assistant.",
            "parse_mode": "xml",
            "parse_func": null,
            "parse_title": null,
            "tool_names": null
        },
        {
            "name": "feedback_loop8842",
            "description": "Task to feedback_loop8842. Takes validated_answer, final_answer as input. Produces assessed_answer as output.",
            "inputs": [
                {
                    "name": "validated_answer",
                    "type": "str",
                    "description": "Input parameter validated_answer for feedback_loop8842",
                    "required": false
                },
                {
                    "name": "final_answer",
                    "type": "str",
                    "description": "Input parameter final_answer for feedback_loop8842",
                    "required": false
                }
            ],
            "outputs": [
                {
                    "name": "assessed_answer",
                    "type": "str",
                    "description": "Output parameter assessed_answer from feedback_loop8842",
                    "required": true
                }
            ],
            "prompt": "``` \nINSTRUCTION for the 6-th task:\n\"\"\"\nCarefully analyze the context and the question to formulate a well-reasoned answer. Ensure that your response directly addresses the question based on the provided context. In the 'thought' field, describe your reasoning process, integrating relevant context to support your answer. Provide the final answer in the 'answer' field. Format your output in XML format, such as <thought>{thought}</thought> and <answer>{answer}</answer>.\n\"\"\" \n```",
            "prompt_template": {
                "class_name": "StringTemplate",
                "instruction": "Think step by step to answer the question based on the question context. You should integrate context for answering. You should explain your thinking process in the 'thought' field, and provide the final answer in the 'answer' field.\nFormat your output in xml format, such as <thought>xxx</thought> and <answer>xxx</answer>."
            },
            "system_prompt": "You are a helpful and highly intelligent assistant.",
            "parse_mode": "xml",
            "parse_func": null,
            "parse_title": null,
            "tool_names": null
        }
    ]
}