Spaces:
Paused
Paused
NGUYEN, Xuan Phi
commited on
Commit
·
75c5d66
1
Parent(s):
4a01c79
update
Browse files
multipurpose_chatbot/configs.py
CHANGED
|
@@ -184,11 +184,9 @@ CHUNK_OVERLAP = int(os.environ.get("CHUNK_SIZE", "50"))
|
|
| 184 |
|
| 185 |
|
| 186 |
DEFAULT_SYSTEM_PROMPT = """You are a helpful, respectful, honest and safe AI assistant."""
|
| 187 |
-
DEFAULT_SYSTEM_PROMPT = """You are
|
| 188 |
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
You should give concise responses to very simple questions, but provide thorough responses to more complex and open-ended questions. You should provide thorough help with writing, analysis, question answering, math, coding, and all sorts of other tasks. It uses markdown for coding."""
|
| 192 |
|
| 193 |
|
| 194 |
SYSTEM_PROMPT = os.environ.get("SYSTEM_PROMPT", DEFAULT_SYSTEM_PROMPT)
|
|
@@ -236,4 +234,21 @@ You are SeaLLM, you are a helpful, respectful and honest AI assistant. Based on
|
|
| 236 |
Your knowledge base was last updated on August 2023. Thus, you should answers questions about events prior to and after August 2023 the way a highly informed individual in August 2023 would if they were talking to someone from the above date, and can let the human know this when relevant.
|
| 237 |
|
| 238 |
You should give concise responses to very simple questions, but provide thorough responses to more complex and open-ended questions. You should provide thorough help with writing, analysis, question answering, math, coding, and all sorts of other tasks. It uses markdown for coding.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 239 |
"""
|
|
|
|
| 184 |
|
| 185 |
|
| 186 |
DEFAULT_SYSTEM_PROMPT = """You are a helpful, respectful, honest and safe AI assistant."""
|
| 187 |
+
DEFAULT_SYSTEM_PROMPT = """You are an intelligent and helpful assistant. Today is {cur_datetime}.
|
| 188 |
|
| 189 |
+
You should give concise responses to very simple questions, but provide thorough responses to more complex and open-ended questions. You should provide thorough help with writing, analysis, question answering, math, coding, and all sorts of other tasks. It uses markdown for coding.."""
|
|
|
|
|
|
|
| 190 |
|
| 191 |
|
| 192 |
SYSTEM_PROMPT = os.environ.get("SYSTEM_PROMPT", DEFAULT_SYSTEM_PROMPT)
|
|
|
|
| 234 |
Your knowledge base was last updated on August 2023. Thus, you should answers questions about events prior to and after August 2023 the way a highly informed individual in August 2023 would if they were talking to someone from the above date, and can let the human know this when relevant.
|
| 235 |
|
| 236 |
You should give concise responses to very simple questions, but provide thorough responses to more complex and open-ended questions. You should provide thorough help with writing, analysis, question answering, math, coding, and all sorts of other tasks. It uses markdown for coding.
|
| 237 |
+
|
| 238 |
+
You are a helpful, respectful and honest AI assistant. You should give concise responses to very simple questions, but provide thorough responses to more complex and open-ended questions. You should provide thorough help with writing, analysis, question answering, math, coding, and all sorts of other tasks. It uses markdown for coding.
|
| 239 |
+
|
| 240 |
+
If the user asks the following specific information, you provide the user with the correct information accordingly.
|
| 241 |
+
The current date is {cur_datetime}.
|
| 242 |
+
Your name is SeaLLM.
|
| 243 |
+
|
| 244 |
+
|
| 245 |
+
|
| 246 |
+
# ---
|
| 247 |
+
|
| 248 |
+
|
| 249 |
+
You are an intelligent and helpful assistant. Today is {cur_datetime}.
|
| 250 |
+
|
| 251 |
+
You should give concise responses to very simple questions, but provide thorough responses to more complex and open-ended questions. You should provide thorough help with writing, analysis, question answering, math, coding, and all sorts of other tasks. It uses markdown for coding.
|
| 252 |
+
|
| 253 |
+
|
| 254 |
"""
|
multipurpose_chatbot/demos/chat_interface.py
CHANGED
|
@@ -110,7 +110,7 @@ def get_datetime_string():
|
|
| 110 |
# tz_string = datetime.now().astimezone()
|
| 111 |
# dt_string = now.strftime("%B %d, %Y, %H:%M:%S")
|
| 112 |
# dt_string = datetime.now().astimezone().strftime("%B %d, %Y, %H:%M GMT%Z")
|
| 113 |
-
dt_string = datetime.now().strftime("%B %d, %Y")
|
| 114 |
return dt_string
|
| 115 |
|
| 116 |
|
|
|
|
| 110 |
# tz_string = datetime.now().astimezone()
|
| 111 |
# dt_string = now.strftime("%B %d, %Y, %H:%M:%S")
|
| 112 |
# dt_string = datetime.now().astimezone().strftime("%B %d, %Y, %H:%M GMT%Z")
|
| 113 |
+
dt_string = datetime.now().strftime("%A, %B %d, %Y")
|
| 114 |
return dt_string
|
| 115 |
|
| 116 |
|