nomic-ai / gpt4all

GPT4All: Run Local LLMs on Any Device. Open-source and available for commercial use.
https://nomic.ai/gpt4all
MIT License
69.61k stars 7.62k forks source link

Add ability to export/backup or save chat. #572

Open BoQsc opened 1 year ago

BoQsc commented 1 year ago

Manual chat content export

Currently .chat chats in the C:\Users\Windows10\AppData\Local\nomic.ai\GPT4All are somewhat cryptic and each chat might take on average around 500mb which is a lot for personal computing; in comparison to the actual chat content that might be less than 1mb most of the time. Please add ability to save the chat in a lightweight form (.txt files?) for backup and maybe even simple parsing that most people might do using python or other ways to analyse content, extract relevant things and manage their chats.

Automatic chat content sync

Nomic could also provide automatic chat content backup if internet is available on the device.

AndriyMulyar commented 1 year ago

Chats are currently saved with pre-cached k/v neural network activations to ensure they can be quickly resumed.

It shouldn't be difficult to additionally save the chat state to disk (probably in the same json format as sent to the datalake on opt-in).

@manyoso can give some pointers to anyone who wants to help with this!

redthing1 commented 1 year ago

Any thoughts on a mode switch to choose between pre-cached activations and just text transcript saving (which of course has a warm up time)

robertgro commented 1 year ago

I'm not trying to cross/circular reference here, but there is already an option to save chats to disk. But by the time writing it isn't working properly and also not included in the documentation. Reference: gpt4ALL v2.4.4 doesn't save the chat history #727

p-servus commented 8 months ago

i would love to have such features:

.. only as inpiration .. and because i realy realy would love this feature .. btw: I love your Project .. just running it since some days, on Linux/Manjaro with 32GB RAM and "AMD Ryzen 7 5700G with Radeon Graphics"-CPU (8 real cores / 16 virtual cores) .. and works all fine and fast .. THX for it = D