A LLM memory management library
Project description
GPT Memory
GPT Memory is a package that stores historical memory of your LLM conversations and uses these memories to improve subsequent interactions. The system automatically classifies the memories and generates abstracts to behave like how human making conversations.
Features
- Historical Memory Storage: Stores and manages historical chat data.
- Automatic Classification: Automatically classifies chat memories for better organization.
- Abstract Generation: Generates abstracts of past conversations to enhance GPT's context handling.
- Mood detection: Check user emotional status and store in history chat data.
- Context generation: Generates context for current message based on historical conversation.
Installation
To install GPT Memory, use pip:
pip install gpt_memory
Usage
Importing and Using the Memory Class
To start using GPT Memory, import the Memory class and process a user message:
from gpt_memory import Memory
m = Memory()
response = m.process_message('user_message')
Example
Here’s a simple example of how to use the Memory class:
from gpt_memory import Memory
# Initialize the memory system
memory_system = Memory()
# Process a user message
response = memory_system.process_message('Hello, how are you?')
# Print the status and response
print(f"Response: {response}")
Contributing
If you would like to contribute to GPT Memory, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bugfix.
- Implement your changes.
- Submit a pull request.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contact
For any questions or inquiries, please contact sun@raaslabs.com.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gpt_memory-0.0.10.tar.gz.
File metadata
- Download URL: gpt_memory-0.0.10.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76f1736c59d31becc1ee2b96b4b10d6bf26ff6ffa8b908abd167b25132813948
|
|
| MD5 |
f380054f3ce855de519675f8903a37cf
|
|
| BLAKE2b-256 |
e63f3219ae57afedfc82b9ad6e25153bb118261b156dda0c1242ab4dd395740d
|
File details
Details for the file gpt_memory-0.0.10-py3-none-any.whl.
File metadata
- Download URL: gpt_memory-0.0.10-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
194bbf31683e8e01f7857a570304d18edb1fa66d14e9cf74721e2768ac1a7652
|
|
| MD5 |
c406209f0d8ff75c861594fe0129b282
|
|
| BLAKE2b-256 |
3e951c9a47b7ee2dd67570cb7c67d5cbaf0dc49577232301033507c9c0ed17ec
|