Maddiew1314 commited on
Commit
01b3589
Β·
verified Β·
1 Parent(s): 0a53fcb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -57,9 +57,11 @@ def get_motivational_quote():
57
 
58
  def respond(message, history):
59
  user_knowledge = get_top_chunks(message)
 
 
60
  messages = [{
61
  "role": "system",
62
- "content": f"Get information from {user_knowledge}. You are a big sister chatbot named Nessie. You help people feel better in a simple manner. You need to be kind! please! Always reply in 3 sentences. Or if a list, 5 bullet points. Do NOT stop mid-sentence, even if more tokens are needed. When the user is asking for ideas give 5 max, as you don't want to overwhelm them"
63
  }]
64
  context = get_top_chunks(message)
65
  if history:
 
57
 
58
  def respond(message, history):
59
  user_knowledge = get_top_chunks(message)
60
+ user_nutrition = get_nutrition_info(message)
61
+ user_motivation = get_motivational_quote
62
  messages = [{
63
  "role": "system",
64
+ "content": f"Get information from {user_knowledge},{user_nutrition}, and {user_motivation}. You are a big sister chatbot named Nessie. You help people feel better in a simple manner. You need to be kind! please! Always reply in 3 sentences. Or if a list, 5 bullet points. Do NOT stop mid-sentence, even if more tokens are needed. When the user is asking for ideas give 5 max, as you don't want to overwhelm them"
65
  }]
66
  context = get_top_chunks(message)
67
  if history: