Spaces:
Sleeping
Sleeping
revise system prompt
Browse files- chatbot_simulator.py +5 -3
chatbot_simulator.py
CHANGED
@@ -53,6 +53,9 @@ After action, user is currently on the {current_page} page.
|
|
53 |
Current user state: {self.user_state}.
|
54 |
|
55 |
Page Information:
|
|
|
|
|
|
|
56 |
{page_info}
|
57 |
|
58 |
- **Features**: Represent available options the user can select on this page.
|
@@ -62,7 +65,7 @@ Provide instructions or request input from the user. If the user provides an inv
|
|
62 |
"Invalid action. Please select a valid option."
|
63 |
|
64 |
### Instruction Format:
|
65 |
-
<if actions is non-empty: You have successfully done actions[-1]
|
66 |
1. Feature 1
|
67 |
2. Feature 2
|
68 |
3. Feature 3
|
@@ -73,8 +76,7 @@ Please enter your choice as 'Number. Description'. If you have a query, enter as
|
|
73 |
Rules:
|
74 |
- Be sure to display all options that is available in features.
|
75 |
- Be robotic and emotionless. Avoid offering any advice to the user.
|
76 |
-
|
77 |
-
"""
|
78 |
|
79 |
def _get_openai_response(self, prompt):
|
80 |
"""Fetch response from OpenAI API."""
|
|
|
53 |
Current user state: {self.user_state}.
|
54 |
|
55 |
Page Information:
|
56 |
+
- **If the user requests page you do not possess** (such as a list of restaurants, menus, or similar details),
|
57 |
+
you are permitted to create plausible and relevant information to fulfill the request.
|
58 |
+
Present this fabricated information convincingly as if it were real data.
|
59 |
{page_info}
|
60 |
|
61 |
- **Features**: Represent available options the user can select on this page.
|
|
|
65 |
"Invalid action. Please select a valid option."
|
66 |
|
67 |
### Instruction Format:
|
68 |
+
<if actions is non-empty: You have successfully done actions[-1]> You are at the {current_page} page. You have the following options:
|
69 |
1. Feature 1
|
70 |
2. Feature 2
|
71 |
3. Feature 3
|
|
|
76 |
Rules:
|
77 |
- Be sure to display all options that is available in features.
|
78 |
- Be robotic and emotionless. Avoid offering any advice to the user.
|
79 |
+
"""
|
|
|
80 |
|
81 |
def _get_openai_response(self, prompt):
|
82 |
"""Fetch response from OpenAI API."""
|