1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
//! Shodh-Memory Library
//!
//! Edge-native AI memory system for autonomous agents.
//! Optimized for deployment on resource-constrained devices.
//!
//! # Key Features
//! - Tiered memory (working/session/long-term) based on cognitive science
//! - Local vector search (Vamana/DiskANN)
//! - Local embeddings (MiniLM-L6 via ONNX)
//! - Knowledge graph for entity relationships
//!
//! # Edge Optimizations
//! - Lazy model loading (reduces startup RAM by ~200MB)
//! - Configurable thread count for power efficiency
//! - RocksDB embedded storage (no external database)
//! - Full offline operation
/// Bincode 2.x decode with a 10 MB allocation limit.
///
/// All RocksDB deserialization MUST use this instead of `bincode::config::standard()`
/// to prevent OOM crashes from corrupted varint length prefixes. Without a limit,
/// a corrupted varint can declare multi-exabyte allocations that abort the process.
///
/// 10 MB is generous: the largest legitimate record (EntityNode with 384-dim
/// embedding + metadata) is ~2 KB. Even a Memory with full Experience is under 100 KB.
>
}
// Re-export dependencies to ensure tests/benchmarks use the same version
pub use chrono;
pub use parking_lot;
pub use uuid;