gpt4all icon indicating copy to clipboard operation
gpt4all copied to clipboard

gpt4ALL v2.4.4 doesn't save the chat history

Open Kedaranatha opened this issue 1 year ago • 4 comments

System Info

v2.4.4 windows 11 Python 3.11.3 gpt4all-l13b-snoozy Screenshot 2023-05-26 110246

Information

  • [X] The official example notebooks/scripts
  • [ ] My own modified scripts

Related Components

  • [ ] backend
  • [ ] bindings
  • [ ] python-bindings
  • [ ] chat-ui
  • [ ] models
  • [ ] circleci
  • [ ] docker
  • [ ] api

Reproduction

  1. open app
  2. start chat "1+1="
  3. ai: 1+1=2
  4. go to chats menu
  5. see excising chat name: "correct"
  6. new chat
  7. start chat "5+5="
  8. ai: 5+5=10
  9. go to chats menu i see 2 chats and conversation history (1+1 and 5+5)
  10. close the app
  11. reopen the app
  12. open chats menu
  13. no previous chats history , only the blank one

Expected behavior

Chats history should remember all not deleted chats

Kedaranatha avatar May 26 '23 18:05 Kedaranatha

Peek 2023-05-26 14-45

Works here. Sometimes when you close the application and then reopen it too quick it might behave wonky. I suspect that is what is happening for you. After you close give it up to35 seconds to save your chats to disk and then reopen. I can think about how to make this more intuitive in the future... maybe i get rid of the main window but keep something saying that it is saving the files or something.

manyoso avatar May 26 '23 18:05 manyoso

maybe i get rid of the main window but keep something saying that it is saving the files or something.

Does QML have an overlay? Could you just put a gray overlay over the window with a message about saving chats and then when it gets the chatSaved() signal that's when it actually calls exit? This way users with quick computers will barely see it and users that are affected can't click stuff on the UI to introduce anything odd there.

jstayco avatar Jun 01 '23 05:06 jstayco

GPT4All needs to persist each chat as soon as it's sent. I just lost hours of chats because my computer completely locked up after setting the batch size too high, so I had to do a hard restart. All the chats were gone after rebooting. I can't believe that this isn't the case by default.

DawsonMyers avatar Jun 01 '23 23:06 DawsonMyers

:( This is an amazing app and idea, but it's for demo purposes only at the moment. I was working with Vicuna-13b for 6 hours today, opened a video file, and my PC suddenly got rebooted, and all history just disappeared//// heh

Kedaranatha avatar Jun 05 '23 02:06 Kedaranatha

image

windows binary, hermes model, works for hours with 32 gig of RAM (when i closed dozens of chrome tabs)) can confirm the bug with a detail - each session drops zero bytes file, where i think chats ought to be saved. log file has a message upon startup that said files cannot be parsed (because empty, duh!)

(db file is virtually empty)

zoigo avatar Jun 09 '23 15:06 zoigo

Peek 2023-05-26 14-45

Works here. Sometimes when you close the application and then reopen it too quick it might behave wonky. I suspect that is what is happening for you. After you close give it up to35 seconds to save your chats to disk and then reopen. I can think about how to make this more intuitive in the future... maybe i get rid of the main window but keep something saying that it is saving the files or something.

I can confirm it. When the main window is closed, the application is still running and is saving chat files. I needed to wait until the application process really ends. Reopening the application too fast leads to such data loss.

Maybe some prevention to start multiple processes could help. A popup at application close to show saving progress would be helpful, too.

Avatair avatar Jun 18 '23 11:06 Avatair

Please fix and introduce this in your documentation. For me, this directly relates to export/backup a chat: Add ability to export/backup or save chat. #572

robertgro avatar Jul 29 '23 17:07 robertgro

Seems solved.

Please always feel free to open more issues as needed.

niansa avatar Aug 14 '23 11:08 niansa

I see this issue was closed but it's not clear what the fix was. I have lost many chats because even after weeks of being open and having dozens of chats, one crash and I find that all my chats for the last month are gone.

michael-ts avatar Jul 06 '24 19:07 michael-ts