Discover and explore top open-source AI tools and projects—updated daily.
caspianmoonPython library for AI memory layer in context-aware apps
Top 50.5% on SourcePulse
Memoripy is a Python library for AI applications that require sophisticated memory management, offering short-term and long-term storage with features like semantic clustering and memory decay. It's designed for developers building context-aware AI agents and chatbots, enabling more natural and persistent conversational experiences.
How It Works
Memoripy manages memory through a MemoryManager class, leveraging separate short-term and long-term storage mechanisms. It uses embedding models (like OpenAI or Ollama) to represent interactions semantically. Retrieval is enhanced by hierarchical clustering and graph-based associations, allowing for concept extraction and spreading activation to find relevant memories. Memory decay and reinforcement mechanisms dynamically adjust the relevance of past interactions over time.
Quick Start & Requirements
pip install memoripyopenai, faiss-cpu, numpy, networkx, scikit-learn, langchain, ollama.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The provided example requires manual API key setup. While faiss-cpu is listed, performance with large memory stores might benefit from a GPU-enabled FAISS installation, which is not explicitly detailed. The project appears to be actively maintained with contributions welcome, but specific community support channels are not highlighted.
9 months ago
Inactive
stanford-futuredata