-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclarification_prompt.json
1 lines (1 loc) · 11.5 KB
/
clarification_prompt.json
1
"\nReferences for images used in the behavior tree history and variable details are below:\nThe 1st image URL is referenced by this: <Image-1-URL>, and its base64 encoded data is referenced like this: <Image-1-Base_Data>.\nThe images will be uploaded separately. Please analyze them thoroughly and utilize the knowledge for later.\n\nGiven this behavior tree history of the chatbot:\nNode Instance: https://www.w3id.org/iSeeOnto/BehaviourTreeExecution#bc721edc-dc5b-4afe-ae7e-36193e2657c5Node\n variable: initialise\n value: True\n Execution Properties:\n\nNode Instance: https://www.w3id.org/iSeeOnto/BehaviourTreeExecution#367cbcc6-2996-4b9a-882a-05904b42da5bNode\n question: None\n variable: proceed_response\n Execution Properties:\n question: {'id': '367cbcc6-2996-4b9a-882a-05904b42da5b', 'content': 'Good Afternoon Bruno Fleisch!<br>I am the iSee Chatbot for BT Telecom Notes, Would you like to proceed?', 'responseType': 'Radio', 'responseOptions': [{'id': 'yes', 'content': 'Yes'}, {'id': 'no', 'content': 'No'}], 'completed': '', 'dimension': '', 'intent': '', 'validators': {}, 'answer': [], 'required': True}\n variable: {'id': 'yes', 'content': 'Yes'}\n\nNode Instance: https://www.w3id.org/iSeeOnto/BehaviourTreeExecution#0c7482fc-7cc0-4ba5-96a1-6f9736335798Node\n variable: proceed\n value: True\n Execution Properties:\n\nNode Instance: https://www.w3id.org/iSeeOnto/BehaviourTreeExecution#b2b0a8e8-8f30-4d05-9148-6a40583630a3Node\n question: I would like to know a more about your knowledge of the system, can you select a user group from below that best describes you?\n variable: selected_persona\n Execution Properties:\n question: {'id': 'b2b0a8e8-8f30-4d05-9148-6a40583630a3', 'content': 'I would like to know a more about your knowledge of the system, can you select a user group from below that best describes you?', 'responseType': 'Radio', 'responseOptions': [{'id': 'http://www.w3id.org/iSeeOnto/explanationexperience/with_model/with_modelUserGroup_645e3dedcbf032384d5a551c', 'content': '<div class=\"persona\"><p class=\"persona-name\">ML Engineer</p><p class=\"persona-prop\">AI Knowledge Level: Expert</p> <p class=\"persona-prop\">Domain Knowledge Level: Proficient</p></div>'}, {'id': 'http://www.w3id.org/iSeeOnto/explanationexperience/with_model/with_modelUserGroup_657c478f50f18505bd91760f', 'content': '<div class=\"persona\"><p class=\"persona-name\">telecom planner</p><p class=\"persona-prop\">AI Knowledge Level: Novice</p> <p class=\"persona-prop\">Domain Knowledge Level: Expert</p></div>'}], 'completed': '', 'dimension': '', 'intent': '', 'validators': {}, 'answer': [], 'required': True}\n variable: {'id': 'http://www.w3id.org/iSeeOnto/explanationexperience/with_model/with_modelUserGroup_657c478f50f18505bd91760f', 'content': '<div class=\"persona\"><p class=\"persona-name\">telecom planner</p><p class=\"persona-prop\">AI Knowledge Level: Novice</p> <p class=\"persona-prop\">Domain Knowledge Level: Expert</p></div>'}\n\nNode Instance: https://www.w3id.org/iSeeOnto/BehaviourTreeExecution#282c5cea-967e-42c9-a7f7-b0a2a613b398Node\n variable: persona\n value: True\n Execution Properties:\n\nNode Instance: https://www.w3id.org/iSeeOnto/BehaviourTreeExecution#7b5facf8-4929-4be0-888e-c843ad5aed4cNode\n question: sample or upload?\n variable: selected_target_type\n Execution Properties:\n question: {'id': '7b5facf8-4929-4be0-888e-c843ad5aed4c', 'content': '<p>Would you like to upload a data instance?</p>', 'responseType': 'Radio', 'responseOptions': [{'id': 'UPLOAD', 'content': 'I would like to upload'}, {'id': 'SAMPLE', 'content': 'I will use sampling'}], 'completed': '', 'dimension': '', 'intent': '', 'validators': {}, 'answer': [], 'required': True}\n variable: {'id': 'SAMPLE', 'content': 'I will use sampling'}\n\nNode Instance: https://www.w3id.org/iSeeOnto/BehaviourTreeExecution#7510bb2a-b9d4-4381-81f9-4aa0219944f3Node\n question: Here is your loan application and the AI system outcome\n variable: selected_target\n Execution Properties:\n question: {'id': '7510bb2a-b9d4-4381-81f9-4aa0219944f3', 'content': '<p>Here is your test instance:</p>InCompleteReason:Pole not climable due to trees UpstreamSpeed:,DownstreamSpeed:,Tested:0,NotTestedReason:Failed Install,DoorColor:,Questions:notes:Install complete, No access to dp as trees need cutting <br><p>And here is the outcome from the AI system:</p><div class=\"target-prediction\"><table border=\"1\" class=\"dataframe\">\\n <thead>\\n <tr style=\"text-align: right;\">\\n <th>TMR</th>\\n </tr>\\n </thead>\\n <tbody>\\n <tr>\\n <td>0.713</td>\\n </tr>\\n </tbody>\\n</table></div>', 'responseType': 'Radio', 'responseOptions': [{'id': 'okay', 'content': 'Okay'}], 'completed': '', 'dimension': '', 'intent': '', 'validators': {}, 'answer': [], 'required': True}\n variable: {'instance': 'InCompleteReason:Pole not climable due to trees UpstreamSpeed:,DownstreamSpeed:,Tested:0,NotTestedReason:Failed Install,DoorColor:,Questions:notes:Install complete, No access to dp as trees need cutting ', 'size': 204, 'type': 'text'}\n\nNode Instance: https://www.w3id.org/iSeeOnto/BehaviourTreeExecution#53b8dd1b-cd1d-45c1-8a1c-29e63cfd734eNode\n variable: target\n value: True\n Execution Properties:\n\nNode Instance: https://www.w3id.org/iSeeOnto/BehaviourTreeExecution#cb985c59-1145-4ec1-83f9-d1eb92a19a65Node\n question: Please select a question below to indicate your explanation need\n variable: selected_need\n Execution Properties:\n question: {'id': 'cb985c59-1145-4ec1-83f9-d1eb92a19a65', 'content': 'Please select a question below to indicate your explanation need', 'responseType': 'Radio', 'responseOptions': [{'id': 'http://www.w3id.org/iSeeOnto/explanationexperience/BT_Telecom_Notes/BT_Telecom_NotesUserQuestion_iq-48011', 'content': 'Why does the AI system have given outcome A?'}, {'id': 'http://www.w3id.org/iSeeOnto/explanationexperience/BT_Telecom_Notes/BT_Telecom_NotesUserQuestion_iq-755991', 'content': 'What are the important features for the AI system?'}], 'completed': '', 'dimension': '', 'intent': '', 'validators': {}, 'answer': [], 'required': True}\n variable: {'id': 'http://www.w3id.org/iSeeOnto/explanationexperience/BT_Telecom_Notes/BT_Telecom_NotesUserQuestion_iq-755991', 'content': 'What are the important features for the AI system?'}\n\nNode Instance: https://www.w3id.org/iSeeOnto/BehaviourTreeExecution#6825f4fa-e397-45ef-a263-b6488802100fNode\n variable: need\n value: True\n Execution Properties:\n\nNode Instance: https://www.w3id.org/iSeeOnto/BehaviourTreeExecution#7cfbcc83-b329-4aac-940d-101f918aafbeNode\n question: None\n variable: None\n params: {'Question': {'key': 'Question', 'value': 'Why does the AI system have given outcome A?;'}}\n Execution Properties:\n variable: {'content': 'What are the important features for the AI system?', 'id': 'http://www.w3id.org/iSeeOnto/explanationexperience/BT_Telecom_Notes/BT_Telecom_NotesUserQuestion_iq-755991', 'match': False}\n\nNode Instance: https://www.w3id.org/iSeeOnto/BehaviourTreeExecution#b6de25fd-5e6e-40d4-a445-caa091a7c781Node\n question: None\n variable: None\n params: {'Question': {'key': 'Question', 'value': 'What are the important features for the AI system?;'}}\n Execution Properties:\n variable: {'content': 'What are the important features for the AI system?', 'id': 'http://www.w3id.org/iSeeOnto/explanationexperience/BT_Telecom_Notes/BT_Telecom_NotesUserQuestion_iq-755991', 'match': True}\n\nNode Instance: https://www.w3id.org/iSeeOnto/BehaviourTreeExecution#63fbafa5-e44e-4de5-b654-109174307f4fNode\n params: {'output_classes': {'key': 'output_classes', 'value': '[ ]', 'default': '[ ]', 'range': [None, None], 'required': 'false', 'description': 'Array of integers representing the classes to be explained. Defaults to class 1.', 'type': 'text'}, 'top_classes': {'key': 'top_classes', 'value': 1, 'default': 1, 'range': [None, None], 'required': 'false', 'description': \"Integer representing the number of classes with the highest prediction probability to be explained. Overrides 'output_classes' if provided.\", 'type': 'number'}, 'num_features': {'key': 'num_features', 'value': 10, 'default': 10, 'range': [None, None], 'required': 'false', 'description': 'Integer representing the maximum number of features to be included in the explanation.', 'type': 'number'}, 'png_width': {'key': 'png_width', 'value': 1000, 'default': 1000, 'range': [None, None], 'required': 'false', 'description': 'Width (in pixels) of the png image containing the explanation.', 'type': 'number'}, 'png_height': {'key': 'png_height', 'value': 400, 'default': 400, 'range': [None, None], 'required': 'false', 'description': 'Height (in pixels) of the png image containing the explanation.', 'type': 'number'}}\n endpoint: /Text/LIME\n variable: None\n Execution Properties:\n question: {'id': '63fbafa5-e44e-4de5-b654-109174307f4f', 'content': '<p>Here is an explanation from L I M E Technique</p><img src=\"<Image-1-URL>\"/><br><p><strong>Explanation Description:</strong> <br>An image contaning a plot with the most important words for the given instance. For regression models, the plot displays both positive and negative contributions of each word to the predicted outcome.The same applies to classification models, but there can be a plot for each possible class. The text instance with highlighted words is included in the explanation.</p>', 'responseType': 'Radio', 'responseOptions': [{'id': 'okay', 'content': 'Okay'}], 'completed': '', 'dimension': '', 'intent': '', 'validators': {}, 'answer': [], 'required': True}\n variable: {'id': 'okay', 'content': 'Okay'}\n\nNode Instance: https://www.w3id.org/iSeeOnto/BehaviourTreeExecution#clarification_63fbafa5-e44e-4de5-b654-109174307f4fNode\n question: Did you understand the previous explanation?\n variable: clarification_response\n Execution Properties:\n question: {'id': 'clarification_63fbafa5-e44e-4de5-b654-109174307f4f', 'content': 'Would you like a different explanation or an elaboration on the existing one?', 'responseType': 'Free-Text', 'responseOptions': [], 'completed': '', 'dimension': '', 'intent': '', 'validators': {}, 'answer': [], 'required': True}\n variable: {'id': 'temp', 'content': 'yes'}\n\n\nFocus on these areas of the node which are in order of execution:\n['I would like to know a more about your knowledge of the system, can you select a user group from below that best describes you?', 'sample or upload?', 'Here is your loan application and the AI system outcome', 'Please select a question below to indicate your explanation need', 'Did you understand the previous explanation?']\n\nFor the latest explanation given by the system:\nThe user chat history and your responses are below(you are referenced as the 'system'):\nUser: yes\n\nThe user's current question:\n\n<user>: elaboration on the existing one\n\nWhen answering the question, don\u2019t reference the behavior tree or the user chat history directly (dotn say sytem said this likeiwse it as to be natural) or dont mention yourself or yourself as the system. Just answer the user\u2019s question as it references the latest explanation we provided.\nIn your reference dont reoeat teh suer chat histroy ever. Dont say according to the chat history. Just answer the question as QA Assistant.\nUse the chat history for the explanation as guided context to understand what position the user is in in understanding the system.\nYou can use the history to elaborate on certain points or make references to improve your current answer.\nReturn Your output enclosed in Valid HTML tags. Enclose your output output with a <div> </div>. Start like this and I need to embed the output inside a html container\n"