Practical approach for streaming UI from LLMs
timetler.com
Practical approach for streaming UI from LLMs
1–10 of 11 posts
Re: Practical approach for streaming UI from LLMs
#2Re: Practical approach for streaming UI from LLMs
#3I'd prefer taking a step back to see if this is the right approach or if this safety can be solved in a much simpler way. Looking at the title of the submission I don't consider it practical. I would welcome any other ideas, I'm thinking along the lines of a simple and boring bff which does the parsing and validation and sending strongly typed objects to the front end.
Re: Practical approach for streaming UI from LLMs
#4Re: Practical approach for streaming UI from LLMs
#5Re: Practical approach for streaming UI from LLMs
#6Obviously the next step and already happening but for some reason I doubt it'll be this exact technology. We're probably going to see a lot of competition here.
Re: Practical approach for streaming UI from LLMs
#7Re: Practical approach for streaming UI from LLMs
#8I've been thinking about this approach. How do you handle updates on this setup? For example, a status component that goes from "loading" to "success".
Does the LLM go back and modify the previous response, sending deltas to the client? Effectively changing the component from loading to success. Or is something else happening behind the scenes?
Re: Practical approach for streaming UI from LLMs
#9I use assistant-ui to handle my frontend rendering. It would make sense for them to adopt something like this
Re: Practical approach for streaming UI from LLMs
#10Really nice writeup! I've been thinking about this approach. How do you handle updates on this setup? For example, a status component that goes from "loading" to "success". Does the LLM go back and modify the previous response, sending deltas to the client? Effectively changing the component from loading to success. Or is something else happening behind the scenes?
I hope I understood your question correctly?