Update app.py
Browse files
app.py
CHANGED
@@ -85,7 +85,13 @@ def main():
|
|
85 |
|
86 |
def handle_userinput(user_question,vectorstore):
|
87 |
Rag_chain = create_conversational_rag_chain()
|
88 |
-
response = Rag_chain(
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
st.session_state.chat_history = response['chat_history']
|
90 |
|
91 |
for i, message in enumerate(st.session_state.chat_history):
|
|
|
85 |
|
86 |
def handle_userinput(user_question,vectorstore):
|
87 |
Rag_chain = create_conversational_rag_chain()
|
88 |
+
response = Rag_chain.invoke(
|
89 |
+
{"input": user_question "},
|
90 |
+
|
91 |
+
config={
|
92 |
+
"configurable": {"session_id": "k"}
|
93 |
+
},
|
94 |
+
)["answer"]
|
95 |
st.session_state.chat_history = response['chat_history']
|
96 |
|
97 |
for i, message in enumerate(st.session_state.chat_history):
|