Spaces:
Sleeping
Sleeping
update prompt
Browse files
task_specific_data_population.py
CHANGED
@@ -64,9 +64,7 @@ class DataPopulation:
|
|
64 |
f"Given the task: '{task}' and the following task-relevant page details:\n{relevant_page_details}\n\n"
|
65 |
f"Update each page's 'user_data' value with essential information for task-completion."
|
66 |
f"For example, if a task ask us to retrieve previous order, then we will need to populate synthetic order history in user_data."
|
67 |
-
|
68 |
-
"Output should maintain the exact input structure, making changes only to 'user_data'."
|
69 |
-
"'user_data' must exists as a key in each page.\n"
|
70 |
)
|
71 |
})
|
72 |
response_content = self.gpt4_chat(self.conversation)
|
@@ -79,7 +77,7 @@ class DataPopulation:
|
|
79 |
"content": (
|
80 |
f"Given the task: '{task}', default user state:\n{user_state}, and user_data in chat history.\n\n"
|
81 |
"Initialize the user state values to reflect any initial status necessary for completing the task. "
|
82 |
-
"
|
83 |
)
|
84 |
})
|
85 |
response_content = self.gpt4_chat(self.conversation)
|
|
|
64 |
f"Given the task: '{task}' and the following task-relevant page details:\n{relevant_page_details}\n\n"
|
65 |
f"Update each page's 'user_data' value with essential information for task-completion."
|
66 |
f"For example, if a task ask us to retrieve previous order, then we will need to populate synthetic order history in user_data."
|
67 |
+
"Ensure output maintain the exact format and structure as input page details."
|
|
|
|
|
68 |
)
|
69 |
})
|
70 |
response_content = self.gpt4_chat(self.conversation)
|
|
|
77 |
"content": (
|
78 |
f"Given the task: '{task}', default user state:\n{user_state}, and user_data in chat history.\n\n"
|
79 |
"Initialize the user state values to reflect any initial status necessary for completing the task. "
|
80 |
+
"Ensure output maintain the exact format and structure as input page details."
|
81 |
)
|
82 |
})
|
83 |
response_content = self.gpt4_chat(self.conversation)
|