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 ab_testing;
19pub mod auth;
20pub mod backup;
21pub mod config;
22pub mod constants;
23pub mod decay;
24pub mod embeddings;
25pub mod errors;
26pub mod graph_memory;
27pub mod handlers;
28pub mod integrations;
29pub mod memory;
30pub mod metrics;
31pub mod middleware;
32pub mod query_parsing;
33pub mod relevance;
34pub mod similarity;
35pub mod streaming;
36pub mod tracing_setup;
37pub mod validation;
38pub mod vector_db;
39
40// Re-export dependencies to ensure tests/benchmarks use the same version
41pub use chrono;
42pub use parking_lot;
43pub use uuid;
44
45#[cfg(feature = "python")]
46pub mod python;