Skip to main content

Crate microscope_memory

Crate microscope_memory 

Source
Expand description

Microscope Memory library interface. Re-exports core types and functions for integration tests and external use.

Re-exports§

pub use reader::read_append_log;
pub use reader::store_memory;
pub use reader::AppendEntry;
pub use reader::BlockHeader;
pub use reader::DataStore;
pub use reader::MicroscopeReader;
pub use reader::RadialResult;
pub use reader::ResultSet;
pub use cli::Cli;
pub use cli::Cmd;

Modules§

archetype
Archetype emergence layer for Microscope Memory.
attention
Attention Mechanism — dynamic weighting of consciousness layers.
build
Extracts text from RAW TEXT layer files, constructs a 9-depth block hierarchy (identity → layers → clusters → items → sentences → tokens → syllables → chars → bytes), and writes the binary output files (microscope.bin, data.bin, meta.bin, merkle.bin, embeddings.bin).
cache
Tiered LRU cache for Microscope Memory queries.
cli
CLI definitions for Microscope Memory.
config
dream
Dream Consolidation for Microscope Memory.
embedding_index
Embedding index: mmap-backed pre-computed embedding vectors.
embeddings
emotional
Emotional bias warp for Microscope Memory.
emotional_contagion
Emotional Contagion for Microscope Memory.
federation
Multi-index federation for Microscope Memory.
fingerprint
Structural fingerprinting for Microscope Memory.
hebbian
Hebbian learning layer for Microscope Memory.
merkle
Merkle tree for whole-index integrity verification.
mirror
Mirror neuron layer for Microscope Memory.
multimodal
Multi-Modal Memory for Microscope Memory.
predictive_cache
Predictive Cache — pre-fetches blocks based on ThoughtGraph patterns.
query
Microscope Query Language (MQL)
reader
MicroscopeReader — high-performance memory-mapped reader for the binary index.
resonance
Resonance protocol for Microscope Memory.
sequential_thinking
Sequential Thinking — Chain-of-Thought layer for Microscope Memory. This module organizes memory retrievals into logical sequences (Steps).
snapshot
Snapshot: .mscope archive format for backup/restore/diff.
temporal_archetype
Temporal Archetypes — time-windowed activation patterns.
thought_graph
ThoughtGraph — L6: Pattern Recognition for Microscope Memory.
viz
Visualization export for Microscope Memory.

Constants§

BLOCK_DATA_SIZE
DEFAULT_CONFIG_PATH
DEPTH_ENTRY_SIZE
HEADER_SIZE
LAYER_NAMES
META_HEADER_SIZE

Functions§

auto_depth
auto_zoom
content_coords
content_coords_blended
crc16_ccitt
CRC16-CCITT (poly=0x1021, init=0xFFFF) over arbitrary data.
hex_str
layer_to_id
safe_truncate
to_block