Update app.py
Browse files
app.py
CHANGED
@@ -96,7 +96,7 @@ def get_conversation_chain(vectorstore):
|
|
96 |
|
97 |
|
98 |
prompt = hub.pull("rlm/rag-prompt")
|
99 |
-
rag_chain = retriever | prompt | llm | StrOutputParser()
|
100 |
|
101 |
|
102 |
return rag_chain
|
@@ -123,7 +123,7 @@ def main():
|
|
123 |
|
124 |
|
125 |
if user_question := st.text_input("Ask a question about your documents:"):
|
126 |
-
handle_userinput(user_question
|
127 |
|
128 |
|
129 |
with st.sidebar:
|
|
|
96 |
|
97 |
|
98 |
prompt = hub.pull("rlm/rag-prompt")
|
99 |
+
rag_chain = ("context": retriever | prompt | llm | StrOutputParser())
|
100 |
|
101 |
|
102 |
return rag_chain
|
|
|
123 |
|
124 |
|
125 |
if user_question := st.text_input("Ask a question about your documents:"):
|
126 |
+
handle_userinput(user_question)
|
127 |
|
128 |
|
129 |
with st.sidebar:
|