mmargg commited on
Commit
71e107d
·
verified ·
1 Parent(s): 9ffda34

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -159,12 +159,11 @@ def respond(message,history):
159
  print(topic_chunks)
160
  information = get_top_chunks(message, chunk_embeddings, cleaned_chunks4),"/n".join(topic_chunks)
161
 
162
- return information
163
- return topic_chunks
164
 
165
  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}"}]
166
 
167
-
168
  if history:
169
  messages.extend(history) #keep adding history
170
 
 
159
  print(topic_chunks)
160
  information = get_top_chunks(message, chunk_embeddings, cleaned_chunks4),"/n".join(topic_chunks)
161
 
162
+ #return information
163
+ #return topic_chunks
164
 
165
  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}"}]
166
 
 
167
  if history:
168
  messages.extend(history) #keep adding history
169