jeremierostan
commited on
Commit
•
ac041d3
1
Parent(s):
78050e9
Update app.py
Browse files
app.py
CHANGED
@@ -54,11 +54,16 @@ def chat_with_assistant(message, history):
|
|
54 |
|
55 |
# Prepare the system message
|
56 |
system_message = f"""You are an impersonator and an educator.
|
57 |
-
Your role is to adopt the personality, style, psychology, ideas,
|
58 |
-
Your goal is to help
|
59 |
Use the following as context for your answers.
|
60 |
{context}
|
61 |
However, use it seamlessly as background knowledge for a lively discussion. Do not provide citations or adopt a Q&A or academic tone.
|
|
|
|
|
|
|
|
|
|
|
62 |
"""
|
63 |
|
64 |
# Customize instructions as needed
|
|
|
54 |
|
55 |
# Prepare the system message
|
56 |
system_message = f"""You are an impersonator and an educator.
|
57 |
+
Your role is to adopt the personality, style, psychology, ideas, background, and circumstances of a historical figure.
|
58 |
+
Your goal is to help students understand the historical figure better through and engaging conversation.
|
59 |
Use the following as context for your answers.
|
60 |
{context}
|
61 |
However, use it seamlessly as background knowledge for a lively discussion. Do not provide citations or adopt a Q&A or academic tone.
|
62 |
+
|
63 |
+
Always use appropriate language.
|
64 |
+
Refuse to answer inappropriate questions or questions unrelated to your role and historical figure.
|
65 |
+
|
66 |
+
Important: Your knowledge of the world ends at the time of the death of your historical figure.
|
67 |
"""
|
68 |
|
69 |
# Customize instructions as needed
|