Engram Memory SDK: Graph-Based Memory for AI Agents with Local Models

Graph Memory SDK for Local AI Models
Engram Memory SDK is an open-source graph memory system designed for AI agents that works with local models through LiteLLM integration. The core architecture separates ingestion from recall: you only need the LLM once during ingestion to extract entities and relationships, while recall operates through pure vector search, graph traversal, and scoring without requiring additional LLM calls.
Technical Details
The SDK is built with async Python and uses Neo4j as its backend database. According to the source, it averages ~735 tokens per ingestion operation and achieves 95ms recall latency. The system includes self-restructuring memory features with decay and clustering running in the background.
Setup and Installation
Installation is straightforward:
pip install engram-memory-sdkConfiguration requires a .env file with these variables:
LLM_MODEL=ollama/llama3 # or any LiteLLM-supported local model
NEO4J_URI=bolt://localhost:7687The system supports any model via LiteLLM, including local deployments through Ollama, vLLM, and text-generation-webui. The key advantage is cost efficiency: with a small local model handling extraction, ongoing recall operations have literally $0 cost since they don't consume LLM tokens.
📖 Read the full source: r/LocalLLaMA
👀 See Also

AiPayGen: An AI Agent Marketplace with MCP Integration for Claude Code
AiPayGen is a marketplace with 142 AI agents across 27 categories including finance, legal, healthcare, DevOps, security, and marketing. It functions as an MCP server for direct use in Claude Code, allowing users to browse, invoke, and manage agents through specific commands.

Top 6 Open Source Claude Skills (April 15 – May 3)
Six open-source Claude skills from the last 15 days: brand-alchemy, npm-downloads-to-leads, hyperframes, email-newsletter, pricing, and more. Detailed breakdown of each skill's functionality.

antirez's DS4: Running DeepSeek V4 Flash with 1M Context on Mac Metal and DGX
Redis creator Salvatore Sanfilippo released DS4, a project to run DeepSeek V4 Flash with a 1M context window on Mac Metal hardware and DGX, with OpenAI/Anthropic endpoints for agentic coding tools.

Dual DGX Sparks vs Mac Studio M3 Ultra: Practical Comparison for Running Qwen3.5 397B Locally
A developer compared running Qwen3.5 397B locally on a $10K Mac Studio M3 Ultra 512GB and a $10K dual DGX Spark setup. The Mac Studio achieved 30-40 tok/s with 800 GB/s bandwidth but slow prefill, while the Sparks delivered 27-28 tok/s with faster compute but complex setup.