Expand description
MicroscopeReader — high-performance memory-mapped reader for the binary index.
Structs§
- Microscope
Reader - High-performance memory-mapped reader for the Microscope index.
- Radial
Result - A single result from radial search.
- Result
Set - ResultSet from radial search: primary hit + distance-weighted neighbors.
Enums§
- Data
Store - Backing store for block data — either memory-mapped or decompressed in-memory.
Constants§
- EMOTION_
DIMS - Emotion dimension labels for the 21D emotion vector.
- EMOTION_
VECTOR_ SIZE
Functions§
- append_
emotion_ log - Append an emotion vector to the emotion log (emotion_log.bin). Format: [u64 timestamp_ms] [f32; 21 emotion] [u32 text_len] [bytes text]
- build_
emotions_ from_ log - Build emotions.bin from the emotion log and main index. Reads emotion_log.bin and maps each entry to the closest main-index block.
- contains_
ci - Allocation-free, case-insensitive substring test.
- emotional_
similarity - Cosine similarity between two 21D emotion vectors.
- format_
emotion - Format an emotion vector as a human-readable string.
- layer_
color - load_
emotion_ lookup - Load emotions.bin and return a lookup closure. emotions.bin format: flat array of [f32; 21] per block index.
- parse_
imp_ marker - Parse a leading
(imp=N)marker from a layer entry. - print_
append_ result - Display a single append-log result entry.
- read_
append_ log - relevance_
score - Score how well a block answers a text query.
- store_
memory - store_
memory_ temporary - Store memory to append log and timeline only (NOT to layer files). Used for temporary/internal thoughts that should not persist through rebuilds.
- store_
memory_ with_ embedding - Store a memory whose embedding the caller has already computed.
- store_
memory_ with_ emotion - Variant with emotion vector.
- store_
memory_ with_ status - write_
emotion - Write a single block’s emotion vector to emotions.bin. The file is grown to fit the block index if needed.
- write_
emotions_ batch - Write many block emotions with a single read-modify-write.