datacipen commited on
Commit
484d702
1 Parent(s): 0e96436

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -198,7 +198,7 @@ async def on_message(message: cl.Message):
198
  await cl.Message(content=GoogleTranslator(source='auto', target='fr').translate(answer)).send()
199
 
200
  #search = vectorstore.similarity_search(message.content,k=50, filter={"categorie": {"$eq": "bibliographie-OPP-DGDIN"}})
201
- search = Search(message.content, res.get("name"))
202
 
203
  sources = [
204
  cl.Text(name="Sources", content=search[0], display="inline")
 
198
  await cl.Message(content=GoogleTranslator(source='auto', target='fr').translate(answer)).send()
199
 
200
  #search = vectorstore.similarity_search(message.content,k=50, filter={"categorie": {"$eq": "bibliographie-OPP-DGDIN"}})
201
+ search = Search(message.content, cl.user_session.get("selectRequest"))
202
 
203
  sources = [
204
  cl.Text(name="Sources", content=search[0], display="inline")