Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
| 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})
|