dvcrn / chatgpt-ui

ChatGPT UI with auth, OpenAI, Claude, Gemini support, written in Elixir + LiveView
MIT License
91 stars 18 forks source link

Allow chaining and persistence #15

Open cpursley opened 6 months ago

cpursley commented 6 months ago

Thanks for the awesome project!

Any thoughts on allow chaining similar to langchain as well as persistence?

There's a demo here that includes what I think is a pretty good approach to persistence: https://github.com/brainlid/langchain_demo

Maybe Scenarios here could pull it's settings from a scenarios database table and "conversations" saved under a "History" section?

Also related: https://github.com/dvcrn/chatgpt-ui/issues/6

dvcrn commented 6 months ago

Persistence is definitely needed, just wondering what the best way would be. We can store history into the session (GenServer) or localStorage but that's not very persistent