theubie / complex_memory

A KoboldAI-like memory extension for oobabooga's text-generation-webui
GNU Affero General Public License v3.0
107 stars 14 forks source link

Change from separate pickle file to storing memories in character json file #1

Closed theubie closed 1 year ago

theubie commented 1 year ago

To make memories more portable, I think I should store the memories inside the character json file instead of in its own pickle file.

  1. Removed pickle files, which are security holes.
  2. Allows users to create complex memory schemes and share them easily in a single file

Thoughts?

theubie commented 1 year ago

This has been implemented as of commit dead3dbbf8c39971260cc688dc56d40517c57091

remghoost commented 1 year ago

Damn, you beat me to it. Haha. I just got it working too.

edit - Nice, you implemented a catch for if the old pickle file existed and carried it over. Was thinking of doing that too.

theubie commented 1 year ago

I need to see if there is a way to make the file write spit out more human-readable formatting, but's more of a "would be nice".