NeuroMem - Brain-inspired memory system for AI agents with multi-modal storage
Project description
neuromem
neuromem is a standalone memory management engine designed for RAG (Retrieval-Augmented Generation) applications. It provides flexible memory collection abstractions with support for vector databases, key-value stores, and graph structures.
Features
- Multiple Backend Support: VDB (Vector Database), KV (Key-Value), Graph
- Flexible Storage Engine: Pluggable storage backends for vectors, text, and metadata
- Powerful Search Engine: Multiple index types (FAISS, BM25s, etc.)
- Collection Management: Create, load, store, and manage memory collections
- Memory Manager: Centralized management of multiple collections
Architecture
neuromem/
├── memory_manager.py # Central manager for collections
├── memory_collection/ # Collection abstractions
│ ├── base_collection.py
│ ├── vdb_collection.py
│ ├── kv_collection.py
│ └── graph_collection.py
├── search_engine/ # Index implementations
│ ├── vdb_index/
│ ├── kv_index/
│ └── graph_index/
├── storage_engine/ # Storage backends
│ ├── vector_storage.py
│ ├── text_storage.py
│ └── metadata_storage.py
└── utils/ # Utility functions
Quick Start
from neuromem.memory_manager import MemoryManager
# Create manager
manager = MemoryManager()
# Create a VDB collection
config = {
"name": "my_collection",
"backend_type": "VDB",
"description": "My vector database collection"
}
collection = manager.create_collection(config)
# Insert data
collection.batch_insert_data(
texts=["Hello world", "Goodbye world"],
metadatas=[{"source": "doc1"}, {"source": "doc2"}]
)
# Create index
index_config = {
"name": "my_index",
"embedding_model": "mockembedder",
"dim": 128,
"backend_type": "FAISS"
}
collection.create_index(index_config)
# Retrieve
results = collection.retrieve(
"Hello",
index_name="my_index",
topk=5
)
Future Plans
This sub-project will eventually be separated into its own repository and may be rewritten in C++/Rust for better performance.
License
See LICENSE file in the SAGE project root.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file isage_neuromem-0.1.0-py3-none-any.whl.
File metadata
- Download URL: isage_neuromem-0.1.0-py3-none-any.whl
- Upload date:
- Size: 678.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15c73c2ec6e404cff0ac83ff9b647ae0e5053b3b555482396bfc146c1877e25c
|
|
| MD5 |
a561f9be65651cf14488bc0dfee8051f
|
|
| BLAKE2b-256 |
00dd71f9c1d999db498aad59469faa5bf3ee0aa73cb233fd2aeab89f13f7d971
|