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
//! Integration layer connecting nervous system components to RuVector
//!
//! This module provides the integration layer that maps nervous system concepts
//! to RuVector operations:
//!
//! - **Hopfield retrieval** → Additional index lane alongside HNSW
//! - **Pattern separation** → Sparse encoding before indexing
//! - **BTSP** → One-shot vector index updates
//! - **Predictive residual** → Writes only when prediction violated
//! - **Collection versioning** → Parameter versioning with EWC
//!
//! # Example
//!
//! ```rust,ignore
//! use ruvector_nervous_system::integration::{NervousVectorIndex, NervousConfig};
//!
//! // Create hybrid index with nervous system features
//! let config = NervousConfig::default();
//! let mut index = NervousVectorIndex::new(128, config);
//!
//! // Insert with pattern separation
//! let vector = vec![0.5; 128];
//! index.insert(&vector, Some("metadata"));
//!
//! // Hybrid search (Hopfield + HNSW)
//! let results = index.search_hybrid(&vector, 10);
//!
//! // One-shot learning
//! let key = vec![0.1; 128];
//! let value = vec![0.9; 128];
//! index.learn_one_shot(&key, &value);
//! ```
pub use ;
pub use ;
pub use ;