Skip to main content

Crate edgehdf5_memory

Crate edgehdf5_memory 

Source
Expand description

ZeroClaw agent memory HDF5 backend.

Provides persistent memory storage for AI agents using HDF5 files. All data is cached in-memory for fast access and flushed to disk on mutations.

Modules§

agents_md
AGENTS.md generation from live HDF5Memory state.
bm25
BM25 keyword search engine.
cache
In-memory cache for memory entries, sessions, and knowledge graph.
decision_gate
Lightweight pre-check gate that skips trivial messages before save/search.
gpu_search
GPU search backend for accelerated vector similarity.
hybrid
Hybrid search combining vector similarity and BM25 keyword scores.
ivf
Inverted File Index (IVF) for approximate nearest neighbor search.
knowledge
Knowledge graph data structures and cache.
memory_strategy
MemoryStrategy trait and built-in strategies for controlling how exchanges are persisted to agent memory.
pq
Product Quantization (PQ) for approximate nearest neighbor search.
schema
HDF5 schema creation and validation.
search
Search and agents_md methods for HDF5Memory.
session
Session tracking cache and data structures.
storage
Disk I/O operations for HDF5 memory files.
strategy
Adaptive search strategy selection and timing metrics.
vector_search
Vector search using cosine similarity.
wal
Write-Ahead Log (WAL) for edgehdf5 agent memory.

Structs§

HDF5Memory
MemoryConfig
MemoryEntry
SearchResult

Enums§

MemoryError

Traits§

AgentMemory

Functions§

cosine_similarity_prenorm
Cosine similarity with pre-computed norms using rustyhdf5_accel primitives.

Type Aliases§

Result