caspianmoon/memoripy
An AI memory layer with short- and long-term storage, semantic clustering, and optional memory decay for context-aware applications.
Implements graph-based spreading activation and hierarchical clustering for semantic memory retrieval across OpenAI, Azure OpenAI, OpenRouter, and Ollama integrations. The architecture uses embeddings and concept extraction to build a concept graph, enabling decay/reinforcement mechanisms that age unused memories while strengthening frequently accessed ones. Provides pluggable storage backends (JSON or in-memory) and combines cosine similarity with graph traversal for multi-dimensional context retrieval.
682 stars and 110 monthly downloads. No commits in the last 6 months. Available on PyPI.
Stars
682
Forks
60
Language
Python
License
Apache-2.0
Category
Last pushed
Jan 16, 2025
Monthly downloads
110
Commits (30d)
0
Dependencies
51
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/embeddings/caspianmoon/memoripy"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.