captain-awesome
commited on
Commit
•
8a6e9d6
1
Parent(s):
668e7ef
Update app.py
Browse files
app.py
CHANGED
@@ -81,9 +81,9 @@ def get_conversational_rag_chain(retriever_chain):
|
|
81 |
|
82 |
return create_retrieval_chain(retriever_chain, stuff_documents_chain)
|
83 |
|
84 |
-
def get_response(user_input
|
85 |
retriever_chain = get_context_retriever_chain(st.session_state.vector_store)
|
86 |
-
conversation_rag_chain = get_conversational_rag_chain(retriever_chain
|
87 |
|
88 |
response = conversation_rag_chain.invoke({
|
89 |
"chat_history": st.session_state.chat_history,
|
|
|
81 |
|
82 |
return create_retrieval_chain(retriever_chain, stuff_documents_chain)
|
83 |
|
84 |
+
def get_response(user_input):
|
85 |
retriever_chain = get_context_retriever_chain(st.session_state.vector_store)
|
86 |
+
conversation_rag_chain = get_conversational_rag_chain(retriever_chain)
|
87 |
|
88 |
response = conversation_rag_chain.invoke({
|
89 |
"chat_history": st.session_state.chat_history,
|