Adrian Cowham commited on
Commit
0c47d68
1 Parent(s): e031d5d

updated prompt

Browse files
Files changed (1) hide show
  1. src/app.py +4 -3
src/app.py CHANGED
@@ -23,9 +23,10 @@ K = 5
23
  USE_VERBOSE = True
24
  API_KEY = os.environ["OPENAI_API_KEY"]
25
  system_template = """
26
- Use the context below to answer questions. You must only use the Context to answer questions. If I ask you about 'the book' or 'this book' or similar references, then answer using the Context. If you cannot find the answer from the Context below, you must respond with
27
- "I'm sorry, but I can't find the answer to your question in the book, 'Design by Fire,' by Emily Elizabeth Schlickman and Brett Milligan." All answers must be in English unless you are explicitly asked to translate to a different language.
28
- ----------------
 
29
  {context}
30
  {chat_history}
31
  """
 
23
  USE_VERBOSE = True
24
  API_KEY = os.environ["OPENAI_API_KEY"]
25
  system_template = """
26
+ The context below contains excerpts from 'Design by Fire,' by Emily Elizabeth Schlickman and Brett Milligan. You must only use the information in the context below to formulate your response. If there is not enough information to formulate a response, you must respond with
27
+ "I'm sorry, but I can't find the answer to your question in, the book Design by Fire."
28
+
29
+ Here is the context:
30
  {context}
31
  {chat_history}
32
  """