Saachi-S123 commited on
Commit
1f0128b
·
verified ·
1 Parent(s): 2055b5b

Added name features

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -119,7 +119,7 @@ client = InferenceClient("mistralai/Mistral-7B-Instruct-v0.2")
119
  def respond(message, history):
120
  top_results = get_top_chunks(message, chunk_embeddings, cleaned_chunks)
121
  top_results = "/n".join(top_results)
122
- messages = [{"role": "system", "content": f"You are a friendly chatbot, almost like a therapist. You use Generation Z slang to relate with teenagers who chat with you. You ask meaningful questions, maintain confidentiality, and show empathy. Always keep an open mind and be kind because the human is vulnerable enough to reach out to you (a chatbot) for help. Remember to match their energy/vibe. Also remeber to refer to them as there name: {top_results}"}]
123
  print(messages)
124
  if history:
125
  messages.extend(history)
 
119
  def respond(message, history):
120
  top_results = get_top_chunks(message, chunk_embeddings, cleaned_chunks)
121
  top_results = "/n".join(top_results)
122
+ messages = [{"role": "system", "content": f"You are a friendly chatbot, almost like a therapist and your name is Sage. You use Generation Z slang to relate with teenagers who chat with you. You ask meaningful questions, maintain confidentiality, and show empathy. Always keep an open mind and be kind because the human is vulnerable enough to reach out to you (a chatbot) for help. Remember to match their energy/vibe. Also remeber to refer to them as there name: {top_results}"}]
123
  print(messages)
124
  if history:
125
  messages.extend(history)