Please explain how to update Yjs document from the backend with streaming AND keeping the formatting. #1590
Labels
documentation
Related to the public documentation
enhancement
New feature or request
triage needed
The issue needs to be reviewed by the team
What is the improvement or update you wish to see?
I'm creating a collaborative editor that's also assisted by a LLM.
My backend is calling the LLM and pushing the results to the Yjs document.
So far so good.
The only issue is that Markdown doesn't get translated correctly. Instead I just see the markdown symbols.
Is there any context that might help us understand?
I'm currently doing the following. Which returns a function that I can call with each new piece of text the my LLM outputs.
which I KNOW it's wrong (I'm always doing
Y.XmlText(textChunk)
when I should be doing ... another thing?Using a LLM in the backend seems in my opinion to be the table stakes in 2024 and most products will start adopting it I believe.
So I really wish we can figure out a way to do stream + formatting
Does the docs page already exist? Please link to it.
https://liveblocks.io/docs/guides/modifying-yjs-document-data-with-the-rest-api
The text was updated successfully, but these errors were encountered: