selfevolveagent / examples /pubmedqa /debug /optimized_ourmethod_gpt4omini_5step_generate_new.json
iLOVE2D's picture
Upload 2846 files
5374a2d verified
{
"class_name": "SequentialWorkFlowGraph",
"goal": "Answer user questions accurately and concisely by decomposing the problem into analysis and generate.",
"tasks": [
{
"name": "generate_answer",
"description": "Draft an answer using the retrieved context.",
"inputs": [
{
"name": "question",
"type": "str",
"description": "The original question from the user.",
"required": true
}
],
"outputs": [
{
"name": "draft_answer",
"type": "str",
"description": "A concise, direct answer to the question.",
"required": true
}
],
"prompt": "\"\"\"\nYou should provide the final answer in the 'answer' field, formatted as <answer>{answer}</answer>. Ensure that the draft answer is consistent with the validated answer; if there is a contradiction, prioritize the validated answer. In cases where the draft answer requires significant refinement based on validation feedback, re-evaluate the context of the question and adjust the final answer accordingly. Consider the nuances of the question, weigh conflicting information, and ensure that the final answer reflects the most reliable and relevant information available.\n\"\"\"",
"prompt_template": {
"class_name": "StringTemplate",
"instruction": "You should provide the final answer (Yes or No) in the 'answer' field. Format your answer in <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": "validate_answer8213",
"description": "Task to validate_answer8213. Takes draft_answer, question as input. Produces validated_answer as output.",
"inputs": [
{
"name": "draft_answer",
"type": "str",
"description": "Input parameter draft_answer for validate_answer8213",
"required": false
},
{
"name": "question",
"type": "str",
"description": "Input parameter question for validate_answer8213",
"required": false
}
],
"outputs": [
{
"name": "validated_answer",
"type": "str",
"description": "Output parameter validated_answer from validate_answer8213",
"required": true
}
],
"prompt": "\"\"\"\nThink step by step to answer the question based on the context provided in {question}. You should integrate relevant context and clarify any ambiguities before generating your answer. In the 'thought' field, explain your reasoning process, including any assumptions made and how you addressed potential conflicting information or multiple interpretations. Provide the final answer in the 'answer' field, ensuring it is clear, concise, and directly addresses the user's question. Format your output in XML format, such as <thought>{thought}</thought> and <answer>{answer}</answer>.\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": "refine_answer8856",
"description": "Task to refine_answer8856. Takes validated_answer as input. Produces final_answer as output.",
"inputs": [
{
"name": "validated_answer",
"type": "str",
"description": "Input parameter validated_answer for refine_answer8856",
"required": false
}
],
"outputs": [
{
"name": "final_answer",
"type": "str",
"description": "Output parameter final_answer from refine_answer8856",
"required": true
}
],
"prompt": "```xml\n\"\"\"\nThink step by step to answer the question based on the context provided in {question}. Begin by analyzing the key components of the question to identify any ambiguities or complexities. If the question is poorly defined, clarify the assumptions made in your analysis. After generating a draft answer, validate it against the original {question} to ensure accuracy and relevance. Finally, refine the validated answer by integrating any additional context or insights that enhance clarity and completeness. Document your thought 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>.\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
}
]
}