Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -97,7 +97,7 @@ def respond(message, history):
|
|
| 97 |
top_results = get_top_chunks(message, chunk_embeddings, cleaned_chunks)
|
| 98 |
print(top_results)
|
| 99 |
|
| 100 |
-
messages = [{"role": "system", "content": f"You are a friendly chatbot. You give people advice about mental
|
| 101 |
|
| 102 |
if history:
|
| 103 |
messages.extend(history)
|
|
|
|
| 97 |
top_results = get_top_chunks(message, chunk_embeddings, cleaned_chunks)
|
| 98 |
print(top_results)
|
| 99 |
|
| 100 |
+
messages = [{"role": "system", "content": f"You are a friendly chatbot. You give people advice about mental health. Base your response on the following information: {top_results}"}]
|
| 101 |
|
| 102 |
if history:
|
| 103 |
messages.extend(history)
|