You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm facing an issue where the cl.Message().update() method is not updating the message content asynchronously as expected in my file processing application.
Here's the relevant part of my code:
@cl.on_chat_start
async def start():
# ...
msg = cl.Message(content=f"Processing `{file.name}`...", disable_feedback=True)
await msg.send()
# Process the file and split into chunks
chunks = split_into_chunks(file)
msg.content = f"Creating chunks for `{file.name}`..."
await msg.update()
# Store the data in form of embeddings
vectordb = store_embeddings(chunks)
msg.content = f"Creating embeddings for `{file.name}`. . ."
await msg.update()
# ...
msg.content = f"`{file.name}` processed. You can now ask questions!"
await msg.update()
The text was updated successfully, but these errors were encountered:
I'm facing an issue where the
cl.Message().update()
method is not updating the message content asynchronously as expected in my file processing application.Here's the relevant part of my code:
The text was updated successfully, but these errors were encountered: