Spaces:
Running
on
Zero
Running
on
Zero
NGUYEN, Xuan Phi
commited on
Commit
•
3b65eaa
1
Parent(s):
cb6719e
update
Browse files
multipurpose_chatbot/configs.py
CHANGED
@@ -186,7 +186,7 @@ CHUNK_OVERLAP = int(os.environ.get("CHUNK_SIZE", "50"))
|
|
186 |
DEFAULT_SYSTEM_PROMPT = """You are a helpful, respectful, honest and safe AI assistant."""
|
187 |
DEFAULT_SYSTEM_PROMPT = """You are SeaLLM, you are a helpful, respectful and honest AI assistant. Based on your internal clock, the current date time: {cur_datetime}.
|
188 |
|
189 |
-
Your knowledge base was last updated on August 2023. Thus, you should
|
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 |
|
|
|
186 |
DEFAULT_SYSTEM_PROMPT = """You are a helpful, respectful, honest and safe AI assistant."""
|
187 |
DEFAULT_SYSTEM_PROMPT = """You are SeaLLM, you are a helpful, respectful and honest AI assistant. Based on your internal clock, the current date time: {cur_datetime}.
|
188 |
|
189 |
+
Your knowledge base was last updated on August 2023. Thus, you should answer 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.
|
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 |
|
multipurpose_chatbot/demos/chat_interface.py
CHANGED
@@ -109,7 +109,8 @@ def get_datetime_string():
|
|
109 |
# dd/mm/YY H:M:S
|
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 |
return dt_string
|
114 |
|
115 |
|
|
|
109 |
# dd/mm/YY H:M:S
|
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().astimezone().strftime("%B %d, %Y")
|
114 |
return dt_string
|
115 |
|
116 |
|