mmargg commited on
Commit
942b1fe
·
verified ·
1 Parent(s): ee7a86b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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