selfevolveagent / examples /pertqa /debug /save_5_search_top10_norman.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": "search_info",
"description": "Extract the information and search.",
"inputs": [
{
"name": "question",
"type": "str",
"description": "The question that needs to be answered.",
"required": true
}
],
"outputs": [
{
"name": "searching_output",
"type": "str",
"description": "The direct output after searching.",
"required": true
}
],
"prompt": "\"\"\"\nPlease search for information related to {question} and return the relevant details in a clear and concise string format. Ensure that the information is accurate, directly addresses the question, and provides sufficient context for generating an answer. If the search output is ambiguous, contradictory, or irrelevant, clearly indicate that no valid information was found. Additionally, validate the accuracy of the information before proceeding to the next step.\n\"\"\"",
"prompt_template": {
"class_name": "StringTemplate",
"instruction": "Please search and return the related information in the question. The output format should be in string."
},
"system_prompt": "You are a helpful and highly intelligent assistant.",
"parse_mode": "str",
"parse_func": null,
"parse_title": null,
"tool_names": [
"PertToolkit"
],
"tools": null
},
{
"name": "validate_predictions9135",
"description": "Task to validate_predictions9135. Takes searching_output as input. Produces validation_output as output.",
"inputs": [
{
"name": "searching_output",
"type": "str",
"description": "Input parameter searching_output for validate_predictions9135",
"required": false
}
],
"outputs": [
{
"name": "validation_output",
"type": "str",
"description": "Output parameter validation_output from validate_predictions9135",
"required": true
}
],
"prompt": "```xml\n\"\"\"\nThink step by step to answer the question based on the context provided in {question}. Integrate relevant information from {searching_output} to form a well-reasoned response. In the 'thought' field, explain your reasoning process, addressing any ambiguities or nuances in gene expression data that may affect the interpretation of results. Ensure that you validate any predictions made against known biological outcomes before finalizing your response. Provide the final answer in the 'answer' field, ensuring clarity and conciseness.\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,
"tools": null
},
{
"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
},
{
"name": "searching_output",
"type": "str",
"description": "Search information",
"required": true
}
],
"outputs": [
{
"name": "answer",
"type": "str",
"description": "The direct answer to the question.",
"required": true
}
],
"prompt": "\"\"\"\nUse the context from {searching_output} to determine the best answer to {question}. Assess the significance of any expression changes and ensure that the information is accurate and consistent with validated sources. Provide your final answer in a clear format (Yes or No) after reasoning. If there are discrepancies between the information and the expected answer, clearly indicate those contradictions and explain how they affect the decision-making process.\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 (Yes or No) after 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
}
]
}