ragflow
ragflow copied to clipboard
[Feature Request]: /reset Command to Clear Conversation Context
Is there an existing issue for the same feature request?
- [x] I have checked the existing issues.
Is your feature request related to a problem?
Problems to clear context in Third Apps via API
Describe the feature you'd like
Description:
I would like to suggest adding a feature to clear the conversation context in a simple and effective way. The idea is to allow the user to send a command like /reset to delete the current conversation context, ensuring that the system starts with a fresh state, without relying on any previous information.
Expected Behavior:
- When the user sends the
/resetcommand, the system should clear the conversation context and restart the interaction, not using any previously stored data.
Example Usage:
- User:
/reset - Expected response: "Conversation context reset. How can I assist you today?"
Motivation:
- This provides the user with more control over the interaction, especially when the model starts to hallucinate or generate nonsensical responses. Additionally, it is especially useful for applications that feed data through APIs (like Telegram and WhatsApp), where the system does not have direct access to the user's session, making it difficult to manage the conversation state.
Describe implementation you've considered
No response
Documentation, adoption, use case
Additional information
No response