Update app.py
Browse files
app.py
CHANGED
@@ -120,14 +120,8 @@ async def on_chat_start():
|
|
120 |
| RunnablePassthrough.assign(context=itemgetter("context"))
|
121 |
| chat_prompt | chat_model
|
122 |
)
|
123 |
-
|
124 |
-
|
125 |
-
vectorstore.add_documents(docs)
|
126 |
-
elapsed_time = time.time() - start_time
|
127 |
-
print(f"{str(docs)} took {elapsed_time:.2f} seconds")
|
128 |
-
|
129 |
-
# Let the user know that the system is ready
|
130 |
-
msg.content = measure_embedding_time(docs)
|
131 |
await msg.update()
|
132 |
|
133 |
cl.user_session.set("chain", retrieval_augmented_qa_chain)
|
|
|
120 |
| RunnablePassthrough.assign(context=itemgetter("context"))
|
121 |
| chat_prompt | chat_model
|
122 |
)
|
123 |
+
|
124 |
+
msg.content = f"Processing `{file.name}` done. You can now ask questions!"
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
await msg.update()
|
126 |
|
127 |
cl.user_session.set("chain", retrieval_augmented_qa_chain)
|