chaotic_semantic_memory 0.3.2

AI memory systems with hyperdimensional vectors and chaotic reservoirs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Retrieval modules for hybrid search.
//!
//! This crate supports hybrid retrieval combining:
//! - **BM25**: Keyword/exact matching for short queries
//! - **HDC**: Semantic similarity for natural language queries
//!
//! The hybrid approach uses query-length-dependent weighting:
//! - Short queries (1-2 tokens): 90% keyword, 10% semantic
//! - Long queries (9+ tokens): 20% keyword, 80% semantic

pub mod bm25;
pub mod hybrid;

pub use bm25::{Bm25Config, Bm25Index};
pub use hybrid::{HybridConfig, HybridMode, compute_weights, merge_results, normalize_scores};