Discover and explore top open-source AI tools and projects—updated daily.
divagr18LLM memory layer for contextual agents
Top 97.9% on SourcePulse
Memlayer provides a "plug-and-play" memory layer for Large Language Models (LLMs), enabling developers to add persistent, intelligent recall capabilities to AI agents with minimal code. It addresses the challenge of LLMs lacking inherent long-term memory, allowing them to maintain context across conversations, extract structured knowledge, and proactively surface relevant information. The target audience includes engineers building sophisticated, contextual AI applications, offering a quick integration path to enhance conversational AI.
How It Works
Memlayer employs a hybrid storage approach, combining a vector store (ChromaDB) for semantic similarity search with a knowledge graph (NetworkX) for entity relationships. It features "salience filtering" to intelligently determine which conversational data is important enough to store, using either ML models (LOCAL/ONLINE modes) or keyword-based methods (LIGHTWEIGHT mode). Retrieval is optimized across three tiers—Fast (<100ms), Balanced (<500ms), and Deep (<2s)—allowing developers to balance latency and depth of recall based on the specific use case. This multi-faceted approach ensures efficient and accurate memory management for LLM-powered agents.
Quick Start & Requirements
pip install memlayerHighlighted Details
Maintenance & Community
The project is maintained by Divyansh Agrawal. Support and feature requests are handled via GitHub Issues. Community engagement is encouraged via the getmemlayer Twitter handle.
Licensing & Compatibility
Memlayer is released under the MIT License, which is permissive for commercial use and integration into closed-source projects.
Limitations & Caveats
The LOCAL memory mode has a startup time of approximately 10 seconds due to model loading. The LIGHTWEIGHT mode offers faster startup (<1s) but sacrifices accuracy with keyword-based filtering and lacks vector storage. Deep search tier latencies can reach up to 2 seconds. Specific guidance may be needed for ChromaDB file locking on Windows.
3 weeks ago
Inactive
agentscope-ai