Update main.py
Browse files
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,
|
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")
|