Discover and explore top open-source AI tools and projects—updated daily.
NirDiamantLLM agent memory techniques
New!
Top 92.1% on SourcePulse
Summary
This repository addresses the critical challenge of memory in Large Language Model (LLM) agents, which often forget context, hindering personalization and coherence. It offers a comprehensive collection of 30 runnable Jupyter notebooks demonstrating diverse agent memory techniques, from basic conversation buffers to advanced cognitive architectures and production patterns. Aimed at engineers, researchers, and power users, this resource provides practical, hands-on experience to build more capable and context-aware AI agents.
How It Works
The project's core approach is a structured, hands-on exploration of 30 distinct memory techniques, each presented in a dedicated Jupyter notebook. These techniques are systematically categorized into six families: Short-term context management, Long-term storage, Cognitive architectures, Retrieval and multi-agent patterns, Batteries-included frameworks, and Evaluation & production deployment patterns. This modular design allows users to learn foundational concepts before progressing to more complex systems, with runnable code enabling direct experimentation and implementation.
Quick Start & Requirements
pip install -r requirements.txt, and launch Jupyter notebooks (e.g., jupyter notebook all_techniques/01_conversation_buffer_memory/)..env file.Highlighted Details
Maintenance & Community
Contributions are welcomed, with clear guidelines provided in .github/CONTRIBUTING.md. The project is part of a larger ecosystem of related repositories by the author, including "RAG Techniques" and "GenAI Agents." Sponsorships are acknowledged.
Licensing & Compatibility
Licensed under the Apache License 2.0, this project is generally permissive for commercial use and integration into closed-source applications.
Limitations & Caveats
The repository explicitly states it is for educational purposes and the code is not production-ready. Users are cautioned against using it directly for high-stakes applications involving regulated data, medical decisions, or legal advice without thorough review.
6 days ago
Inactive