shodh_memory/
lib.rs

1//! Shodh-Memory Library
2//!
3//! Edge-native AI memory system for autonomous agents.
4//! Optimized for deployment on resource-constrained devices.
5//!
6//! # Key Features
7//! - Tiered memory (working/session/long-term) based on cognitive science
8//! - Local vector search (Vamana/DiskANN)
9//! - Local embeddings (MiniLM-L6 via ONNX)
10//! - Knowledge graph for entity relationships
11//!
12//! # Edge Optimizations
13//! - Lazy model loading (reduces startup RAM by ~200MB)
14//! - Configurable thread count for power efficiency
15//! - RocksDB embedded storage (no external database)
16//! - Full offline operation
17
18pub mod auth;
19pub mod backup;
20pub mod constants;
21pub mod decay;
22pub mod embeddings;
23pub mod errors;
24pub mod graph_memory;
25pub mod integrations;
26pub mod memory;
27pub mod metrics;
28pub mod middleware;
29pub mod relevance;
30pub mod similarity;
31pub mod streaming;
32pub mod tracing_setup;
33pub mod validation;
34pub mod vector_db;
35
36// Re-export dependencies to ensure tests/benchmarks use the same version
37pub use chrono;
38pub use parking_lot;
39pub use uuid;
40
41#[cfg(feature = "python")]
42pub mod python;