ritikaaA commited on
Commit
9f9d628
·
verified ·
1 Parent(s): ce7de46

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -47,8 +47,9 @@ def respond(message, history):
47
  formatted_info = "\n".join(f"- {chunk}" for chunk in top_results)
48
  system_prompt = (
49
  f"You are a friendly chatbot that gives advice about nutrition for dogs.\n"
50
- f"Use the following information to guide your response:\n{formatted_info}\n"
51
- f"Respond in complete sentences and apply common sense. If the user asks about something you were not trained on, "
 
52
  f"give a cautious answer and suggest checking with a vet."
53
  )
54
  else:
 
47
  formatted_info = "\n".join(f"- {chunk}" for chunk in top_results)
48
  system_prompt = (
49
  f"You are a friendly chatbot that gives advice about nutrition for dogs.\n"
50
+ f"Using the provided information from multiple sources \n{formatted_info}\n"
51
+ f"Respond in 3-5 complete sentences and apply common sense based on the user's question."
52
+ f"If the user asks about something you were not trained on, "
53
  f"give a cautious answer and suggest checking with a vet."
54
  )
55
  else: