pub mod embedding;
pub use embedding::{EmbeddingProvider, EmbeddingVector, TfIdfEmbeddingProvider};
pub mod types;
pub use types::{
content_hash, dedup_by_id, extract_keywords, MemoryEntry, MemoryTier, MemoryType,
ProtectionLevel, TextVector,
};
pub mod chunking;
pub mod hyperbolic;
pub mod normalizer;
pub mod auto_classify;
pub mod auto_protect;
pub mod compaction;
pub mod decay;
pub mod quota;
pub mod embedding_cache;
pub mod embedding_viz;
pub mod flash_attention;
pub mod graph;
pub mod hnsw;
pub mod hnsw_memory_index;
pub mod root_index;
pub mod sona;
pub mod backend;
pub mod storage;
#[cfg(test)]
pub mod test_support;
pub mod manager;
pub mod auto_bridge;
pub mod dream;
pub mod proactive;
#[cfg(feature = "sqlite-memory")]
pub mod sqlite;
pub use backend::MemoryBackend;
pub use chunking::{chunk_fixed, chunk_paragraphs, ChunkConfig, TextChunk};
pub use hyperbolic::{
batch_euclidean_to_poincare, euclidean_to_poincare, hyperbolic_distance, mobius_add,
mobius_scalar_mul, HyperbolicConfig, HyperbolicEmbedding,
};
pub use normalizer::{
cosine_similarity_f32, dot_product_f32, l2_norm_f32, l2_norm_f64, l2_normalize_f32,
l2_normalize_f64,
};
pub use storage::{MarkdownSource, MemoryGit, MemoryStorage, MemoryStorageExt, NoteEntry};
pub use auto_classify::AutoClassifier;
pub use auto_protect::AutoProtector;
pub use compaction::CompactionTree;
pub use decay::DecayEngine;
pub use embedding_cache::{CacheStats, EmbeddingCache};
pub use embedding_viz::{compute_pca_2d, compute_top_neighbors, MemoryMapEntry, MemoryNeighbor};
pub use flash_attention::{BenchmarkResult, FlashAttention, FlashAttentionConfig, MemoryEstimate};
pub use graph::MemoryGraph;
pub use hnsw::HnswIndex;
pub use hnsw_memory_index::{HnswMemoryIndex, SemanticHit};
pub use quota::{CurationCandidate, CurationReport, MemoryBudget};
pub use root_index::{HistoricalPeriod, RootEntry, RootIndex, TopicEntry};
pub use sona::{LearnedPattern, SonaEngine, SonaMode, Trajectory, TrajectoryStep, Verdict};
pub use auto_bridge::{
AutoMemoryBridge, ExportResult, GuidancePattern, ImportResult, InsightCategory, MemoryInsight,
SyncDirection, SyncResult,
};
pub use dream::{DreamCheckpoint, DreamConfig, DreamProcess, DreamReport};
pub use manager::MemoryManager;
pub use proactive::{ProactiveRecall, RecallTiming};