bhulston commited on
Commit
88ba472
1 Parent(s): 7751cbf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -135,9 +135,10 @@ if prompt := st.chat_input("What kind of class are you looking for?"):
135
 
136
  rag_response, additional_metadata = get_rag_results(prompt)
137
  st.session_state.rag_responses.append(rag_response)
138
- result_query = 'Original Query:' + prompt + '\nMessage History:' + str(message_history) + '\nQuery Results:' + str(st.session_state.rag_responses)
 
139
  # '\n Additional Class Times:' + str(additional_metadata)
140
- assistant_response = results_agent(result_query, OPENAI_API)
141
  # assistant_response = openai.ChatCompletion.create(
142
  # model = "gpt-4",
143
  # messages = [
 
135
 
136
  rag_response, additional_metadata = get_rag_results(prompt)
137
  st.session_state.rag_responses.append(rag_response)
138
+ rag_responses = " ".join([message["content"] for message in messages])
139
+ result_query = 'Original Query:' + prompt
140
  # '\n Additional Class Times:' + str(additional_metadata)
141
+ assistant_response = results_agent(result_query, "\n ".join([str(message_history)])
142
  # assistant_response = openai.ChatCompletion.create(
143
  # model = "gpt-4",
144
  # messages = [