Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -136,7 +136,7 @@ def respond_tutor(message, history, mom_type):
|
|
136 |
top_tutor_results = get_top_chunks(message, tutor_chunk_embeddings, cleaned_tutor_chunks)
|
137 |
#str_chunks = "\n".join(best_chunks)
|
138 |
|
139 |
-
|
140 |
{"role": "user",
|
141 |
"content": (
|
142 |
f"Context:\n{top_tutor_results}\n\n"
|
|
|
136 |
top_tutor_results = get_top_chunks(message, tutor_chunk_embeddings, cleaned_tutor_chunks)
|
137 |
#str_chunks = "\n".join(best_chunks)
|
138 |
|
139 |
+
messages = [{"role": "system", "content": f"You are chatbot that plays the role of the user's extremely studious, tutor-like mom. Respond in full sentences, don't cut yourself off. Base your response on the provided context: {mom_type}"},
|
140 |
{"role": "user",
|
141 |
"content": (
|
142 |
f"Context:\n{top_tutor_results}\n\n"
|