Update app.py
Browse files
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 |
-
|
|
|
|
| 139 |
# '\n Additional Class Times:' + str(additional_metadata)
|
| 140 |
-
assistant_response = results_agent(result_query,
|
| 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 = [
|