← 返回
未分类

EdgeHDF5 Memory

HDF5-backed persistent cognitive memory for AI agents. Use when: (1) saving conversation exchanges to long-term memory, (2) searching/recalling past conversa...
基于HDF5的持久认知记忆,用于AI代理。适用场景:① 将对话记录保存为长期记忆;② 搜索/回忆过去的对话。
osobh osobh 来源
未分类 clawhub v1.93.0 1 版本 99481.9 Key: 无需
★ 0
Stars
📥 192
下载
💾 0
安装
1
版本
#latest

概述

EdgeHDF5 Memory

Persistent HDF5-backed memory with vector search, BM25 hybrid retrieval, Hebbian learning, and temporal decay.

Setup

# Install the CLI (one-time)
cargo install edgehdf5-cli
# Or from source:
cargo install --path crates/edgehdf5-cli

Set EDGEHDF5_PATH env var or pass --path to every command.

Commands

All output is JSON for easy parsing.

Create a memory file

edgehdf5 --path agent.h5 create --agent-id myagent --dim 384 --wal

Save an entry

Pass JSON via --json or stdin:

edgehdf5 --path agent.h5 save --json '{"chunk":"User asked about weather","embedding":[0.1,0.2,...],"source_channel":"discord","timestamp":1700000000.0,"session_id":"s1","tags":"weather"}'

Embedding must match the dimension specified at creation.

Search memory

edgehdf5 --path agent.h5 search --embedding '[0.1,0.2,...]' --query 'weather forecast' -k 5

Optional: --vector-weight 0.7 --keyword-weight 0.3 (defaults).

Recall a specific entry

edgehdf5 --path agent.h5 recall 42

Stats

edgehdf5 --path agent.h5 stats

Returns: count, active entries, WAL pending, config details.

Flush WAL

edgehdf5 --path agent.h5 flush-wal

Generate AGENTS.md

edgehdf5 --path agent.h5 agents-md
# Or write to file:
edgehdf5 --path agent.h5 agents-md --output AGENTS.md

Export all entries

edgehdf5 --path agent.h5 export

Outputs one JSON object per line (JSONL).

Snapshot

edgehdf5 --path agent.h5 snapshot backup.h5

Workflow: Saving Conversations

  1. After each exchange, construct a MemoryEntry JSON with the conversation chunk and its embedding vector
  2. Pipe to edgehdf5 save
  3. The WAL (if enabled) ensures low-latency writes — flush periodically with flush-wal

Workflow: Recalling Context

  1. Embed the current query using your embedding model
  2. Run edgehdf5 search --embedding '[...]' --query 'user text' -k 10
  3. Use returned chunks as context for the response

Notes

  • Embeddings must be generated externally (e.g., via an embedding API or local model)
  • The .h5 file is a standard HDF5 file readable by any HDF5 library
  • WAL files are stored alongside the .h5 file as .h5.wal

版本历史

共 1 个版本

  • v1.93.0 当前
    2026-05-12 06:09 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 676 📥 325,419
ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,082 📥 810,026
ai-agent

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,227 📥 267,819