ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

[Feature Request]: /reset Command to Clear Conversation Context

Open Peterson047 opened this issue 10 months ago • 0 comments

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 /reset command, 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

Peterson047 avatar Feb 26 '25 14:02 Peterson047