Skip to content

Utilitron/VectorMemory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VectorMemory 🧠

A resource-aware Java library for LLM agent memory. It implements a cognitive-inspired dual-tier system: a fast, volatile, Short-Term Memory (STM) and a persistent, distilled, Long-Term Memory (LTM).

Unlike standard vector databases, VectorMemory is built to be resource-aware, automatically triggering memory consolidation and distillation when system pressure (RAM/VRAM) is detected.

This project is currently in active development and is not yet available on Maven Central. Follow the instructions below to build it from source.

🚀 Key Features Dual-Tier Architecture: Manage transient "working" context (STM) and permanent "learned" knowledge (LTM).

Saliency-Based Retention: Memories are scored based on a weighted formula of Recency, Importance, and Frequency.

Pluggable STM Vector Indexing: Easily plug in JVector, FAISS, etc. for concurrent similarity searches via the VectorIndex interface.

Provider-Agnostic LLM Integration: Easily plug in LlamaFFM, Ollama, or cloud APIs for embedding and distillation.

Zero-Dependency Core: The core logic remains decoupled from specific storage backends or LLM implementations.

About

A resource-aware Java library that provides AI agents with a memory architecture by distilling short-term interactions into a permanent, searchable long-term memory.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages