ArturG9 commited on
Commit
dff7b8c
1 Parent(s): a117a0d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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, vectorstore, conversation)
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: