| { | |
| "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 and return relevant information related to `{question}`. Ensure that the output is clear, concise, and directly addresses the question without unnecessary elaboration. The format should be a string, and if the information is ambiguous or unclear, please indicate that in the output.\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" | |
| ] | |
| }, | |
| { | |
| "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}. Clearly define what constitutes a \"significant change\" based on the provided context and validate the reasoning against established criteria. Provide your final answer in a clear format (Yes or No) based on the validated 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 (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": [ | |
| "PertToolkit" | |
| ] | |
| }, | |
| { | |
| "name": "validate_predictions7084", | |
| "description": "Task to validate_predictions7084. Takes searching_output as input. Produces validated_output as output.", | |
| "inputs": [ | |
| { | |
| "name": "searching_output", | |
| "type": "str", | |
| "description": "Input parameter searching_output for validate_predictions7084", | |
| "required": false | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "validated_output", | |
| "type": "str", | |
| "description": "Output parameter validated_output from validate_predictions7084", | |
| "required": true | |
| } | |
| ], | |
| "prompt": "```xml\n\"\"\"\nThink step by step to answer the question based on the context provided in {question}. First, validate the information in {searching_output} against known accurate sources to ensure reliability and identify any significant discrepancies. If there are conflicting predictions or solutions, prioritize the most credible source. After validation, integrate the context into your final answer. Ensure that your answer is clear and concise, avoiding unnecessary explanations. Format 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 | |
| } | |
| ] | |
| } |