selfevolveagent / examples /pertqa /debug /save_30_noreason.json
iLOVE2D's picture
Upload 2846 files
5374a2d verified
{
"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 from `{question}` to determine the best answer. If the answer is uncertain or conflicting, clearly indicate this. Ensure that the answer is validated against reliable sources for accuracy before proceeding. Provide your final answer in a clear format, without extra commentary or reasoning.\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
},
{
"name": "validate_answer2087",
"description": "Task to validate_answer2087. Takes answer as input. Produces validated_answer as output.",
"inputs": [
{
"name": "answer",
"type": "str",
"description": "Input parameter answer for validate_answer2087",
"required": false
}
],
"outputs": [
{
"name": "validated_answer",
"type": "str",
"description": "Output parameter validated_answer from validate_answer2087",
"required": true
}
],
"prompt": "\"\"\"\nThink step by step to answer the question based on the context provided in {question}. First, validate the context to ensure accuracy and relevance. If the answer is uncertain or ambiguous, clearly state that uncertainty. After validation, generate a straightforward answer that directly addresses {question}, considering any relevant nuances. Format your output in XML, using <thought> to explain your reasoning and <answer> for the final response. Ensure that the answer is concise and reflects any significant changes accurately, avoiding oversimplification.\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": "contextualize_answer4593",
"description": "Task to contextualize_answer4593. Takes validated_answer, question as input. Produces final_answer as output.",
"inputs": [
{
"name": "validated_answer",
"type": "str",
"description": "Input parameter validated_answer for contextualize_answer4593",
"required": false
},
{
"name": "question",
"type": "str",
"description": "Input parameter question for contextualize_answer4593",
"required": false
}
],
"outputs": [
{
"name": "final_answer",
"type": "str",
"description": "Output parameter final_answer from contextualize_answer4593",
"required": true
}
],
"prompt": "```xml\n\"\"\"\nTo answer the question accurately, first generate an answer based on the provided {question}. Validate the generated answer by ensuring it aligns with the context of the {question} and meets the criteria for a \"validated answer,\" which includes correctness and relevance. If the generated answer does not significantly change the context or is incorrect, indicate this in your validation. In your thought process, clarify any assumptions made and how the context relates to the answer. Ensure that the final answer is presented in the format 'Final Answer: Yes' or 'Final Answer: No'. Provide your reasoning in the <thought> field and the final validated answer in the <answer> field.\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
}
]
}