8000 GitHub - git4sun/gpt_memory
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

git4sun/gpt_memory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

  1. Fork the repository.
  2. Create a new branch for your feature or bugfix.
  3. Implement your changes.
  4. 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0