Skip to main content

somatize_memory/
lib.rs

1// The crate is fully documented and clippy runs with -D warnings in CI,
2// so this makes "public API without docs" a build error from here on.
3#![warn(missing_docs)]
4
5//! Knowledge base for experiment tracking and research memory.
6//!
7//! Stores experiment records, metrics, and trajectories. Supports
8//! research line detection, trend analysis, and promising direction queries.
9//! Backed by in-memory storage ([`MemoryKnowledgeBase`]) or optionally
10//! by ChronosVector for temporal vector search (`chronos` feature).
11
12#[cfg(feature = "chronos")]
13pub mod chronos_kb;
14pub mod derivation;
15pub mod file_kb;
16pub mod knowledge_base;
17pub mod record;
18pub mod retrieval;
19
20#[cfg(feature = "chronos")]
21pub use chronos_kb::ChronosKnowledgeBase;
22pub use derivation::{Change, DerivationMove, MetricDelta, derive};
23pub use file_kb::FileKnowledgeBase;
24pub use knowledge_base::{KnowledgeBase, Lineage, LineageNode, MemoryKnowledgeBase};
25pub use record::{
26    ChangePoint, Embedding, ExperimentRecord, RECORD_SCHEMA_VERSION, RecordKind, ResearchLine,
27    Trend, slugify,
28};
29pub use retrieval::{
30    Embedder, RetrievalQuery, ScoreComponents, ScoredRecord, importance, is_dead_end, rank,
31};