anna1au commited on
Commit
18d69a1
·
verified ·
1 Parent(s): 75041b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -83,7 +83,7 @@ client = InferenceClient("mistralai/Mistral-7B-Instruct-v0.1")
83
 
84
  def respond(message, history):
85
  information = get_top_chunks(message,chunk_embeddings,cleaned_chunks)
86
- messages = [{"role":"system", "content": f"You are a friendly and informative chatbot. You answer in full sentences and do not repeat yourself. Be concise and limit your responses to 4 sentences. You base your response on the following information: {information}"}]
87
  if history:
88
  messages.extend(history)
89
  messages.append({"role": "user", "content": message})
 
83
 
84
  def respond(message, history):
85
  information = get_top_chunks(message,chunk_embeddings,cleaned_chunks)
86
+ messages = [{"role":"system", "content": f"You are a friendly and informative chatbot. You answer in full sentences and do not repeat yourself. Be concise and limit your responses to 4 sentences. You base your response on the following information: {information}"}]
87
  if history:
88
  messages.extend(history)
89
  messages.append({"role": "user", "content": message})