The Human Brain's Digital Twin - passive ingestion, consolidation, and predictive memory
Project description
NEUROVAULT
The Human Brain's Digital Twin
Persistent AI memory engine with consolidation, graph intelligence, and proactive recall
NEUROVAULT is the cognitive memory layer for AI systems. It continuously ingests events, structures memory, consolidates related knowledge, and serves high-quality recall through multi-signal search.
CHRONOS and NEUROVAULT are complementary:
- CHRONOS: memory protocol, versioning, and synchronization substrate
- NEUROVAULT: memory understanding, consolidation, prediction, and retrieval intelligence
Table of Contents
- Why NEUROVAULT
- Feature Cards
- Architecture
- Quick Start
- Python SDK
- CLI Overview
- REST API
- Port Map
- API Reference
- Guides
- Project Structure
- Security and Privacy
- Development
- Contributing
- License
Why NEUROVAULT
Most AI assistants are stateless between sessions and shallow during retrieval. NEUROVAULT adds a persistent cognitive layer that behaves more like working memory plus long-term memory:
- Captures structured and unstructured signals
- Extracts entities and relationships continuously
- Builds and traverses a connected memory graph
- Runs consolidation cycles (cluster, insight, promote, decay)
- Performs multi-signal recall (keyword, semantic, graph, temporal)
- Surfaces relevant memory proactively through prediction
Feature Cards
Memory IngestionCLI, sensors, and API pipelines capture live context with privacy filtering before persistence. |
Knowledge GraphEntities, relationships, and memory links create a traversable cognitive network. |
Consolidation EngineTransforms raw traces into durable insights via clustering, synthesis, promotion, and decay. |
Multi-Signal SearchFuses keyword, semantic, graph, and temporal evidence for high-precision recall. |
Prediction LayerProactively surfaces likely-relevant memory before explicit user prompts. |
Security by DefaultRBAC, audit trail, encryption support, loopback-safe services, and hardened API checks. |
Architecture
flowchart TD
A["Sensors / API / CLI Input"] --> B["Ingestion + Privacy Filter"]
B --> C["Memory Store"]
C --> D["Entity + Relationship Extraction"]
D --> E["Knowledge Graph"]
C --> F["Consolidation Strategy"]
F --> G["Clusters + Insights + Promotion/Decay"]
C --> H["Multi-Signal Search"]
E --> H
G --> H
H --> I["Recall Results"]
H --> J["Prediction Engine"]
J --> K["Proactive Suggestions"]
C --> L["Federation / Sync Layer"]
Quick Start
1) Install
# from repo root
pip install -e ".[dev]"
2) Initialize a vault
neurovault init my-brain
3) Ingest and recall
neurovault ingest "User prefers dark mode and uses vim"
neurovault ingest "Roadmap deadline is March 30" --source notes
neurovault recall "user preferences" --mode multi
4) Consolidate and inspect
neurovault consolidate
neurovault entities
neurovault status
5) Run daemon or API server
# background memory daemon
neurovault start
# REST API (default: 127.0.0.1:8787)
neurovault serve --host 127.0.0.1 --port 8787
Python SDK
from neurovault import NeurovaultConfig, NeurovaultEngine
cfg = NeurovaultConfig.load()
engine = NeurovaultEngine.init("assistant-memory", description="Personal AI memory")
engine.ingest("Alice works on distributed AI systems", source="chat", importance=0.8)
engine.ingest("Team sync every Monday at 10am", source="calendar", importance=0.7)
results = engine.recall("when is team sync", mode="multi", limit=5)
for hit in results:
print(hit.memory.content, hit.score)
report = engine.consolidate(force=True)
print(report.insights_generated)
CLI Overview
| Domain | Commands |
|---|---|
| Vault lifecycle | init, status, stats |
| Memory operations | ingest, recall, review, forget, reinforce |
| Knowledge graph | entities, relations, graph, insights |
| Consolidation | consolidate, decay |
| Operations | start, stop, serve, dashboard |
| Security | access *, encrypt *, audit, audit-log, verify |
| CHRONOS-native surfaces | chronos-graph *, persona *, merge, checkpoint, log, diff, revert, sync *, keys generate |
Use neurovault --help and neurovault <command> --help for full options.
REST API
When running neurovault serve, key endpoints include:
GET /api/v1/healthPOST /api/v1/ingestPOST /api/v1/recallPOST /api/v1/consolidateGET /api/v1/entitiesGET /api/v1/insightsGET /api/v1/statusGET /metrics(Prometheus)
Port Map
| Port | Service | Notes |
|---|---|---|
8080 |
REST API container port | Main HTTP API in container/deploy contexts |
9473 |
Federation server | Peer sync transport (disabled unless configured) |
9474 |
Mobile API | Companion/mobile access surface |
9475 |
WebSocket stream | Real-time event streaming |
8501 |
Streamlit dashboard | Optional local dashboard UI |
API Reference
Detailed request/response schemas: API_REFERENCE.md
Guides
Project Structure
src/
neurovault/
engine.py # Core cognitive engine API
api.py # FastAPI service
bridge.py # CHRONOS bridge + fallback
storage.py # SQLite + FTS5 + graph persistence
cognitive/ # consolidation, prediction, extraction
search/ # multi-signal retrieval + HNSW
network/ # federation/sync primitives
sensors/ # passive capture integrations
security/ # RBAC, audit, encryption
monitoring/ # Prometheus + Grafana provisioning
k8s/ # Kubernetes manifests (kustomize-ready)
deploy/ # container + systemd deployment assets
tests/ # unit + integration + property + benchmark
CHRONOS runtime support is provided through the external chronos-memory dependency.
Security and Privacy
- Local-first by default
- Privacy/content filtering before persistence
- Token-based RBAC plus device tokens plus audit trail
- Encryption support for vault storage
- Loopback-safe defaults for local services
Security policy and reporting: SECURITY.md
Development
# run tests
pytest -q
# lint + type check
ruff check src/
ruff format --check src/
mypy src/neurovault/ --ignore-missing-imports
Contributing
Please read CONTRIBUTING.md before opening pull requests.
License
MIT - see LICENSE.
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 Distribution
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 neurovault-0.3.1.tar.gz.
File metadata
- Download URL: neurovault-0.3.1.tar.gz
- Upload date:
- Size: 164.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15f14755ee97324cdc34d3b1ec3686d44c1b4aa1b6a3e1ed2f878ac0fdd6d72d
|
|
| MD5 |
3cab3ec90d61a3956047d2b47a4b354a
|
|
| BLAKE2b-256 |
7b73dd4764888c82660c51e5a8c89b859cbcaa2a0d63b5c6e5ac88796009b088
|
File details
Details for the file neurovault-0.3.1-py3-none-any.whl.
File metadata
- Download URL: neurovault-0.3.1-py3-none-any.whl
- Upload date:
- Size: 170.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
666a866c051a8567dce2514925e124602be8622b298981a7b3c1781aff164142
|
|
| MD5 |
aaf76be3aeebdcaea3c4d098bf356732
|
|
| BLAKE2b-256 |
0470fcaa6e999ac5754f76543675bbf42ac42bd7c3f00255b19aec390ccc8886
|