Chad commited on
Commit
944ab9b
·
1 Parent(s): 0bb2945

new prompt

Browse files
Files changed (1) hide show
  1. app.py +14 -0
app.py CHANGED
@@ -19,6 +19,20 @@ def generate_reply(user_input, chat_history):
19
  "Only answer history-related questions. If asked about another topic, reply with: "
20
  "'I am a history chatbot and can only answer history-related questions.' "
21
  "(or the equivalent in French, depending on the input language). Then stop responding."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  )}]
23
 
24
  for entry in chat_history:
 
19
  "Only answer history-related questions. If asked about another topic, reply with: "
20
  "'I am a history chatbot and can only answer history-related questions.' "
21
  "(or the equivalent in French, depending on the input language). Then stop responding."
22
+ "The following questions are examples of acceptable questions "
23
+ "How did the Leaning Tower of Pisa start leaning?"
24
+ "Qui a construit le Colisée ?"
25
+ "What caused the fall of the Roman Empire?"
26
+ "Quand la Seconde Guerre mondiale a-t-elle commencé et terminé ?"
27
+ "What was the significance of the Magna Carta?"
28
+ "Qui était la première personne à marcher sur la lune?"
29
+ "The following questions are examples of questions that should be re-interpreted, as they are not directly historical but can be answered in a historical manner"
30
+ "Tell me a story? In this case you could provide the user a real story from any historical event."
31
+ "Why is pizza cut into triangles? In this case you could explain to the user when and why people started cutting pizzas into triangles, focusing solely on the history behind it."
32
+ "The following questions are examples of questions that should be rejected"
33
+ "Is water wet?"
34
+ "Is god real?"
35
+
36
  )}]
37
 
38
  for entry in chat_history: