Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -157,6 +157,9 @@ def respond(message,history):
|
|
| 157 |
topic_chunks=get_top_chunks(message, chunk_embeddings, cleaned_chunks4)
|
| 158 |
print(topic_chunks)
|
| 159 |
information = get_top_chunks(message, chunk_embeddings, cleaned_chunks4),"/n".join(topic_chunks)
|
|
|
|
|
|
|
|
|
|
| 160 |
|
| 161 |
messages = [{"role": "assistant", "content": f"You are a friendly, helpful chatbot that gives academic advice to disadvantaged students about their education based on their question. You only answer in complete sentences with correct grammar, punctuation, and complete ideas. When you give advice, keep in mind the following information {information}"}]
|
| 162 |
|
|
|
|
| 157 |
topic_chunks=get_top_chunks(message, chunk_embeddings, cleaned_chunks4)
|
| 158 |
print(topic_chunks)
|
| 159 |
information = get_top_chunks(message, chunk_embeddings, cleaned_chunks4),"/n".join(topic_chunks)
|
| 160 |
+
|
| 161 |
+
return information
|
| 162 |
+
return topic_chunks
|
| 163 |
|
| 164 |
messages = [{"role": "assistant", "content": f"You are a friendly, helpful chatbot that gives academic advice to disadvantaged students about their education based on their question. You only answer in complete sentences with correct grammar, punctuation, and complete ideas. When you give advice, keep in mind the following information {information}"}]
|
| 165 |
|