writer-framework icon indicating copy to clipboard operation
writer-framework copied to clipboard

Question: How to clear the chat bot window?

Open thondeboer opened this issue 1 year ago • 2 comments

Great little addition, the chatbot. Just when I needed one. Quick question; How do you clear the chat window for a new chat?

thondeboer avatar May 07 '24 18:05 thondeboer

Hey, we faced some issues with the current design. We'll be reengineering it so that the conversation is in state. This will enable:

  • Streaming
  • Loading old conversations
  • Clearing conversations

As of now, it's not possible. We'll release the new version at the end of month.

ramedina86 avatar May 07 '24 18:05 ramedina86

Hey, we faced some issues with the current design. We'll be reengineering it so that the conversation is in state. This will enable:

  • Streaming
  • Loading old conversations
  • Clearing conversations

As of now, it's not possible. We'll release the new version at the end of month.

This is great news! I look forward to being able to regenerate responses as well as modify them when using LLM.

chew1976 avatar May 09 '24 02:05 chew1976

Since version 0.6, you can clear chat content. I think this improvement has been developped by @mmikita95.

def clear_conversation(state):
    # initializes a new conversation instead of existing one
    state["chatbot_conversation"] = Conversation() 

FabienArcellier avatar Aug 06 '24 07:08 FabienArcellier