Chainlit / chainlit

Build Conversational AI in minutes ⚡️
https://docs.chainlit.io
Apache License 2.0
7.24k stars 955 forks source link

any example related to on_chat_resume through custom-frontend #1504

Open deepakjyadav01 opened 2 weeks ago

deepakjyadav01 commented 2 weeks ago

Hi,

  1. I was creating a RAG application using chainlit+langchain backend and custom react frontend. I used examples available within the codebook and understood fair amount of chainlit/react-client. There is no example on direct implementation of on_chat_resume hook through custom frontend.
  2. I am able to make it work but the while connecting it takes the old threadId to make connection i.e state management issue. By any chance, could there be an example showing on how to set up the on_chat_resume with any one of the data layer for better understanding of how to manage and set IdtoResume hook before initiating on_chat_resume hook?
  3. The implementation available is only specific to chainlit backend but no example in terms of custom frontend