LibreChat
LibreChat copied to clipboard
Enhancement: Add a clear context button
First of all, thank you for creating such an amazing piece of software...
What features would you like to see added?
It would be great if it was possible to clear the context without starting a new chat.
I like to organize my chats by topic or task, but frequently the previous messages are not necessary anymore. It would be great if I could just clear the context to save on cost, but retain the ability to scroll up and refer to older messages manually without needing to switch between chats.
Another UI I have been using supports this too. They just have another button above the chat input field.
In Librechat it could be added to the right sidebar.
I know ChatGPT itself doesn't offer this feature, but I think this is a useful addition for power users.
More details
None
Which components are impacted by your request?
UI
Pictures
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
Great idea, maybe we can pinpoint exactly where to "start" the new context from, to offer more flexibility
Along the same lines, some sort of automatic "running summary" feature could be interesting, as I think about clearing and using context. I know a lot of people do this manually by asking for a summary of the conversation thus far, then starting a new chat, with the intent being saving on tokens while maintaining some degree of context.
Along the same lines, some sort of automatic "running summary" feature could be interesting, as I think about clearing and using context. I know a lot of people do this manually by asking for a summary of the conversation thus far, then starting a new chat, with the intent being saving on tokens while maintaining some degree of context.
there is a running summary feature already, just not that great because it can't be configured very well. However, this will change in the coming week as part of a larger update for more configuration options.
I also need this feature, but my purpose is to reduce the conversation on the sidebar, then clear the current conversation's content and context to reuse it
While more context management tools may yet be implemented, I wanted to showcase that the new forking feature addresses the request here in a different way.
You can now "fork" the context, from a specific message including all messages prior (with different options as to what messages are included):
https://github.com/danny-avila/LibreChat/assets/110412045/1eadbca9-01e0-425f-bc9e-a22178a87625
Similar to the request here, you can also fork "forwards", starting from the message you select:
https://github.com/danny-avila/LibreChat/assets/110412045/24df2112-198d-4ec1-900c-349ffa12b9c4