Skip to main content

Crate brainos_storage

Crate brainos_storage 

Source
Expand description

§Brain Storage

Storage abstraction layer providing:

  • SQLite for episodic memory, semantic facts, procedures, and FTS5 index
  • RuVector for vector-based semantic memory (HNSW)
  • Encryption at rest (AES-256-GCM + Argon2id)
  • Schema migrations

Re-exports§

pub use dlq::SqliteDlq;
pub use encryption::Encryptor;
pub use ruvector::HnswConfig;
pub use ruvector::RuVectorStore;
pub use ruvector::VectorResult;
pub use sqlite::ExportedEpisode;
pub use sqlite::ExportedFact;
pub use sqlite::ScheduledIntent;
pub use sqlite::SqlitePool;

Modules§

dlq
SQLite-backed DeadLetterQueue impl. Pairs with the dlq_entries table from migration v19 and the brainos-resilience::DeadLetterQueue trait.
encryption
Encryption layer for data at rest.
ruvector
RuVector — backed by ruvector-core HNSW vector database.
sqlite
SQLite storage backend.