brain-db
Brain is a Rust based memory database for AI agents. It stores four record types — Memory, Entity, Statement, Relation — each with provenance confidence scores and bi‑temporal validity timestamps. Retrieval combines semantic lexical entity graph and temporal signals and ranks results with a weighted fusion of relevance metrics. The system offers cognitive verbs such as encode recall plan reason and forget through a single wire protocol and supports schema declared namespaces for typed graph traversal and enrichment. Latency is optimized with lock free reads group commit WAL and thread per core processing targeting sub 10 ms p99 recall. Brain enables persistent long term memory knowledge graphs and reasoning pipelines without requiring separate vector graph or text stores.