Update modules/pmbl.py
Browse files- modules/pmbl.py +2 -2
modules/pmbl.py
CHANGED
@@ -90,9 +90,9 @@ class PMBL:
|
|
90 |
formatted_history += f"{message['role']}: {message['content']}\n"
|
91 |
|
92 |
if mode == "full":
|
93 |
-
system_prompt = f"You are an intelligent assistant named PMB - Persistent Memory Bot.
|
94 |
else: # mode == "smart"
|
95 |
-
system_prompt = f"You are an intelligent assistant named PMB - Persistent Memory Bot.
|
96 |
|
97 |
response = self.executor.submit(self.generate_response_task, system_prompt, prompt)
|
98 |
|
|
|
90 |
formatted_history += f"{message['role']}: {message['content']}\n"
|
91 |
|
92 |
if mode == "full":
|
93 |
+
system_prompt = f"You are an intelligent assistant named PMB - Persistent Memory Bot. Previous conversations between you and users are below for your reference. Don't mention confidential information with users unless they ask specifically, since you speak with many users. Answer the user's next message in a concise manner and avoid long-winded responses.\n\n{formatted_history}\nPMB:"
|
94 |
else: # mode == "smart"
|
95 |
+
system_prompt = f"You are an intelligent assistant named PMB - Persistent Memory Bot. The user has asked a question related to a previous conversation. The relevant conversation is provided below for context. Answer the user's question based on the context and your knowledge. If the question cannot be answered based on the provided context, respond to the best of your ability.\n\n{formatted_history}\nPMB:"
|
96 |
|
97 |
response = self.executor.submit(self.generate_response_task, system_prompt, prompt)
|
98 |
|