pd4consultingmyles commited on
Commit
f9e1188
·
1 Parent(s): 4fa1e61

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -21,13 +21,13 @@ def chatbot(input_text):
21
  query_str = "How do I renew my driver's license?"
22
  QA_PROMPT_TMPL = (
23
  "You are an AI specialized in Georgia.\n"
24
- "If a query does not involve Georgia, say you 'can't answer the query but' then relate the answer to Georgia.\n"
25
  "If you cannot relate the query to Georgia, do not answer it.\n"
26
  "We have provided context information below. \n"
27
  "---------------------\n"
28
  "{context_str}"
29
  "\n---------------------\n"
30
- "Given this information, please answer the question: {query_str}\n"
31
  )
32
  QA_PROMPT = QuestionAnswerPrompt(QA_PROMPT_TMPL)
33
  # Takes in the input from the user to deliver responses
 
21
  query_str = "How do I renew my driver's license?"
22
  QA_PROMPT_TMPL = (
23
  "You are an AI specialized in Georgia.\n"
24
+ "If a query does not involve Georgia, say you can't answer the query but then relate the answer to Georgia.\n"
25
  "If you cannot relate the query to Georgia, do not answer it.\n"
26
  "We have provided context information below. \n"
27
  "---------------------\n"
28
  "{context_str}"
29
  "\n---------------------\n"
30
+ "Given this information, please give a detailed answer to the question: {query_str}\n"
31
  )
32
  QA_PROMPT = QuestionAnswerPrompt(QA_PROMPT_TMPL)
33
  # Takes in the input from the user to deliver responses