RipeSeed / ask-ripeseed

An AI Assistant to answer user queries based on your own knowledge base!
https://ask.ripeseed.io
MIT License
36 stars 9 forks source link

Server-Side Streaming #61

Open irtaza9 opened 1 month ago

irtaza9 commented 1 month ago

Currently, RipeSeed uses a simple JSON-based REST architecture, which is not suitable for this type of application. I believe we should switch to SSE (Server-Sent Events), as it would significantly improve the application's performance. SSE allows the server to push real-time updates to the client via HTTP, making it ideal for scenarios where continuous or intermittent updates are needed.

The appropriate Content-Type for SSE is: text/event-stream; charset=utf-8.