Hi @Zexia - Retell AI ,
We are attempting to pass data dynamically through the Retell WebSocket during a web call. The process works as follows: When a user submits a query, it is sent to our RAG pipeline to retrieve relevant documents and provide the user with an answer.
Our goal is to display these RAG-retrieved documents in the UI concurrently with the LLM responses. This will allow users to see the documents that informed the LLM’s responses, enhancing the credibility of the answers provided.
However, we are encountering a challenge: The display of the documents in the UI needs to be synchronized with each LLM response. Currently, we are unable to dynamically update the UI with the corresponding RAG documents for each LLM response due to the dependencies between the LLM responses and the document retrieval process.
Could you advise on how we might overcome this issue to effectively display the documents alongside the LLM responses in real time?
Thank you for your assistance.