ReMe (Remember Me, Refine Me) is a Python library designed for managing and refining an AI agent's long-term memory. It provides functionalities for summarization, retrieval, and contextual awareness, enabling agents to learn and adapt over time. The library is actively maintained with frequent minor releases (multiple per month) to introduce new features, fix bugs, and refine existing memory mechanisms.
pip install reme-aiVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to initialize ReMe, add experiences, and then retrieve and summarize them. Ensure you have an LLM API key (e.g., OPENAI_API_KEY) set as an environment variable, as summarization and retrieval functionalities depend on it. If the key is missing, LLM-dependent operations will fail.
Install `chromadb` explicitly if using ChromaDB features: `pip install reme-ai[chroma]` or `pip install chromadb`.
Set necessary API keys as environment variables (e.g., `export OPENAI_API_KEY='your_key'`) or ensure they are loaded via `python-dotenv`.
Review any custom logic that interacts with ReMe's internal text truncation. Prefer using public APIs for truncation or context management.
Implement proper error handling (try-except blocks) around `summarize_memories` and `retrieve` calls to gracefully manage potential failures.
Always install `reme-ai` via `pip install reme-ai` to ensure all required dependencies, including `litellm`, are correctly managed.