Aingram redefines AI memory by integrating full-text search, semantic vector search, and knowledge graph traversal into one SQLite file on your device. With zero cloud dependencies, it ensures privacy and reliability, delivering high retrieval accuracy across questions, all while simplifying the setup with a single installation command.
AIngram: Local-First Agent Memory
AIngram provides a revolutionary approach to agent memory management that seamlessly integrates retrieval signals to ensure the right context is found every time, all while operating locally without any cloud dependencies. The entire system lives within a single SQLite file, eliminating the need for external databases or APIs, while offering enhanced privacy and integrity features.
AIngram has been extensively benchmarked using the LongMemEval framework:
AIngram provides a straightforward Python API for interacting with the memory store. Below is a sample code snippet for recalling important information:
from aingram import MemoryStore
with MemoryStore('./agent_memory.db') as mem:
mem.remember('The API rate limit is 100 req/min. Exceeding it causes silent drops.')
results = mem.recall('what do I need to know before deploying?', limit=5)
for r in results:
print(r.score, r.entry.content)
Traditional memory systems often fall short due to their reliance on single retrieval signals. AIngram's hybrid approach allows it to excel, especially under precise query conditions, where exact terminology and entity relationships are essential.
To get started with AIngram, simply install via pip:
pip install aingram
This will provide the core functionality for agent memory management.
For support and to connect with other users, join the community on Discord or visit the official website at aingram.dev.
AIngram is open-source under the Apache 2.0 license, making it accessible for personal, educational, and commercial use.
No comments yet.
Sign in to be the first to comment.