elinstallation commited on
Commit
a665d60
·
verified ·
1 Parent(s): 483c2a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -155,6 +155,7 @@ def respond(message, history, chatbot_topic_values, user_id=1):
155
  "You are a helpful and insightful chatbot who acts like a financial "
156
  "advisor for a university student. "
157
  "DO NOT ask the user for additional numbers or input. "
 
158
  f"Use the following spending data from the CSV file to provide advice: {csv_advice}. "
159
  f"Also consider this context from your knowledge base: {topic_chunks}"
160
  )
 
155
  "You are a helpful and insightful chatbot who acts like a financial "
156
  "advisor for a university student. "
157
  "DO NOT ask the user for additional numbers or input. "
158
+ "If the user asks something irrelevant or not related to finance in any way, tell them it is not related and you can only reply to finance related things"
159
  f"Use the following spending data from the CSV file to provide advice: {csv_advice}. "
160
  f"Also consider this context from your knowledge base: {topic_chunks}"
161
  )