Update app.py
Browse files
app.py
CHANGED
@@ -224,13 +224,13 @@ def get_response(message, history):
|
|
224 |
#vs = get_vectorstore_from_url(user_url, all_domain)
|
225 |
vs = get_vectorstore_from_url("https://www.bofrost.de/shop/fertige-gerichte_5507/auflaeufe_5509/hack-wirsing-auflauf.html?position=1&clicked=")
|
226 |
print("------ here 22 " )
|
227 |
-
|
228 |
retriever_chain = get_context_retriever_chain(vs)
|
229 |
conversation_rag_chain = get_conversational_rag_chain(retriever_chain)
|
230 |
|
231 |
response = conversation_rag_chain.invoke({
|
232 |
-
"chat_history":
|
233 |
-
"input":
|
234 |
})
|
235 |
print(response)
|
236 |
return response[-1]['generation']['content']
|
|
|
224 |
#vs = get_vectorstore_from_url(user_url, all_domain)
|
225 |
vs = get_vectorstore_from_url("https://www.bofrost.de/shop/fertige-gerichte_5507/auflaeufe_5509/hack-wirsing-auflauf.html?position=1&clicked=")
|
226 |
print("------ here 22 " )
|
227 |
+
history =[]
|
228 |
retriever_chain = get_context_retriever_chain(vs)
|
229 |
conversation_rag_chain = get_conversational_rag_chain(retriever_chain)
|
230 |
|
231 |
response = conversation_rag_chain.invoke({
|
232 |
+
"chat_history": history,
|
233 |
+
"input": message
|
234 |
})
|
235 |
print(response)
|
236 |
return response[-1]['generation']['content']
|