caspianmoon/memoripy

An AI memory layer with short- and long-term storage, semantic clustering, and optional memory decay for context-aware applications.

56
/ 100
Established

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.

Stale 6m
Maintenance 0 / 25
Adoption 15 / 25
Maturity 25 / 25
Community 16 / 25

How are scores calculated?

Stars

682

Forks

60

Language

Python

License

Apache-2.0

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.