@johannes.latzel/llm-chat-memory
v0.3.0
Published
Memory tools for the llm-chat ecosystem
Readme
LLM Chat Memory
Persistent memory for LLM agents by active (tool call) and passive (inject) recall. Plugs into the llm-chat ecosystem.
Features
- tagged, linked, and scored memories with embedding support
- active recall via dedicated tool calls
- passive recall via automatic chat lifecycle hooks automatically injecting memories
- embedding-based semantic similarity search
- manual (constant) and automatic (semantic similarity) memory linking
- PageRank-based importance scoring over the link graph
- pluggable selection strategies: MMR (default) and weighted random
- JSON file persistence
- configurable via
MemoryConfigurationobjects and environment variables
Prerequisites
- Node.js >= 20.9.0
Installation
npm install @johannes.latzel/llm-chat-memoryDocumentation
Full documentation at johanneslatzel.github.io/llm-chat-memory/
License
MIT. See LICENSE.
Contributing
Issues and PRs welcome at github.com/johanneslatzel/llm-chat-memory.
