{
"class_name": "SequentialWorkFlowGraph",
"goal": "Provide a concise answer to the question using relevant context. The answer must be straightforward and avoid unnecessary explanations.",
"tasks": [
{
"name": "generate_answer",
"description": "Extract and formulate an answer from the given context.",
"inputs": [
{
"name": "question",
"type": "str",
"description": "The question that needs to be answered.",
"required": true
}
],
"outputs": [
{
"name": "answer",
"type": "str",
"description": "The direct answer to the question.",
"required": true
}
],
"prompt": "\"\"\"\nUse the context provided in `{question}` to determine the best answer. Ensure that your response is clear and concise, directly addressing the question without any additional commentary or reasoning. If the answer is uncertain or ambiguous, indicate this clearly. Validate your answer against known correct solutions before finalizing it, documenting any discrepancies with the ground truth.\n\"\"\"",
"prompt_template": {
"class_name": "StringTemplate",
"instruction": "Use the context to determine the best answer to the question. Provide your final answer in a clear format, without extra commentary or reasoning."
},
"system_prompt": "You are a helpful and highly intelligent assistant.",
"parse_mode": "xml",
"parse_func": null,
"parse_title": null,
"tool_names": null,
"tools": null
},
{
"name": "validate_predictions7073",
"description": "Task to validate_predictions7073. Takes question as input. Produces validated_answer as output.",
"inputs": [
{
"name": "question",
"type": "str",
"description": "Input parameter question for validate_predictions7073",
"required": false
}
],
"outputs": [
{
"name": "validated_answer",
"type": "str",
"description": "Output parameter validated_answer from validate_predictions7073",
"required": true
}
],
"prompt": "```xml\nINSTRUCTION for the 2-th task:\n\"\"\"\nTo validate the predictions, first assess the provided {question} against established ground-truth solutions. Determine if the predictions reflect significant changes based on explicit criteria, such as a predefined threshold for accuracy or relevance. If discrepancies arise between the predictions and ground-truth, clarify the nature of these discrepancies and their implications for the assessment. Document your reasoning in the 'thought' field, explaining how the predictions align or diverge from the expected outcomes, and whether the perturbation led to significant changes or had no effect. Provide the validated answer in the 'answer' field, ensuring clarity and conciseness. If the answer is uncertain or ambiguous, indicate this clearly in the 'answer' field.\nFormat your output in xml format, such as xxx and xxx.\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 xxx and xxx."
},
"system_prompt": "You are a helpful and highly intelligent assistant.",
"parse_mode": "xml",
"parse_func": null,
"parse_title": null,
"tool_names": null,
"tools": null
}
]
}