The norms guard was the tautology `n.len() == n.len()`, so a norms dataset of any length was trusted and corrupted every cosine score; other per-record datasets were not length-checked at all, so a truncated file loaded and then panicked on the first index. Mismatches are now MemoryError::Schema, stored norms are used only when they match the record count, and embedding_dim == 0 with records present is rejected instead of panicking in chunks(0). Co-Authored-By: Claude Fable 5.1 <[email protected]>
clawhdf5-agent
HDF5-backed persistent memory store for on-device AI agents.
Built on clawhdf5, clawhdf5-agent provides a vector-searchable memory backend optimized for edge AI workloads. Store embeddings, text chunks, and metadata in a single HDF5 file with SIMD-accelerated similarity search.
Features
- Persistent vector store in HDF5 format
- Cosine similarity and L2 distance search
- SIMD-accelerated via clawhdf5-accel (AVX2, NEON)
- Optional GPU acceleration via clawhdf5-gpu
- Memory-mapped access for large stores
- f16 storage support for compact embeddings
Usage
[dependencies]
clawhdf5-agent = "2.1.0"
License
MIT