wawawario2 / long_term_memory

A gradio web UI for running Large Language Models like GPT-J 6B, OPT, GALACTICA, LLaMA, and Pygmalion.
GNU Affero General Public License v3.0
308 stars 15 forks source link

Support separate memories for multiple characters #6

Closed wawawario2 closed 1 year ago

wawawario2 commented 1 year ago

One simple approach is to detect when the bot character name has changed and build/access the respective long term memory database for said name.

wawawario2 commented 1 year ago

Some key ideas/points:

digiwombat commented 1 year ago

Adding onto this concept, I'd really love to see a new greeting generation when loading a new character with no chat backlog. Pick a random recent memory and greet based off that.

For example: It picks a memory where you discussed a film you were planning on watching, character welcomes you back asks if you watched it yet. They could also comment on how long it's been since you last spoke or something to that effect based on timestamps.

Might be useful to add session counts in the db based on when it was last cleared so the character doesn't go back too far. A quick glance at the Extensions docs makes that seem like the hooks would need to be expanded a bit for the idea to be feasible, though.

wawawario2 commented 1 year ago

This is now supported, see https://github.com/wawawario2/long_term_memory/pull/33 As for @digiwombat's request, I'll open a new issue for this.