Skip to main content

Custodian and live editor of your LLM's memory

Project description

Mnemosyne is the custodian and the live editor of your LLM's memory

This comes with a few consequences:

  • the LLM's next answer in your chat window will depend on what you make the LLM believe that it answered before
  • thus, you can time travel through the history of the chat, change what you have asked about and what was answered to you
  • if you are a fan of movies like Total Recall,Memento or Inception you can see how the LLM's view of reality is distorted by letting Mnemosyne play with its memory

Other features that simply manage your chat context:

  • if you asked the same question again, the answer will be retrieved from the short term or long term memory at no API cost to you
  • when you get close to the token limit, the oldest item in the short term memory is moved to the long-term memory
  • when changing the subject of your chat you can spill all the content of the short-term memory into the long-term memory
  • if you run an LLM using the same API as OpenAI (e.g., Vicuna) listening on a local port, Mnemosyne can also manage your interaction with it

Installation

First, you will need to acquire your OpenAI key from here.

If you have cloned this repo, you can install the package memesis from its folder with:

pip3 install -e .

and then run it with:

./run.sh

You can also install it from pypi with:

pip3 install memesis

and then run it with:

python -m memesis.run

Soon, you can also try out at: https://mnemosyne.streamlit.app/

Enjoy,

Paul Tarau

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

memesis-0.3.4.tar.gz (619.0 kB view details)

Uploaded Source

Built Distribution

memesis-0.3.4-py3-none-any.whl (617.3 kB view details)

Uploaded Python 3

File details

Details for the file memesis-0.3.4.tar.gz.

File metadata

  • Download URL: memesis-0.3.4.tar.gz
  • Upload date:
  • Size: 619.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for memesis-0.3.4.tar.gz
Algorithm Hash digest
SHA256 82e56f321bf0cc400e0f86704630b47eb2df70a1ee335b1cbde52104ce80f75f
MD5 6f926af0d52b86ff3c1b89f3fb90e55d
BLAKE2b-256 8f03c9027137d31450635ad34f52f0b0bcbe9258d6415fb0e171da12670aa755

See more details on using hashes here.

File details

Details for the file memesis-0.3.4-py3-none-any.whl.

File metadata

  • Download URL: memesis-0.3.4-py3-none-any.whl
  • Upload date:
  • Size: 617.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for memesis-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8bd314b1d181aa56c25bad8f766e89a0abd241f086ed7401174d296af358e826
MD5 d9c90dd9c6af097280ea9382a6904701
BLAKE2b-256 b40b0ad2a1bf6106fc910e309429e03018d982d1cad4fb21c63dd43e04f950f1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page