READMESource: main@3eaff51e
dsh-shiguan-memory (史官记忆引擎)
Local C++ probabilistic long-term memory for DeepSeek Harness: forgetting-curve compression, semantic clustering, and a memory-trajectory panel. Replaces chat-history stuffing with a queryable memory store.
bundle/— DSH plugin package (host plugin + 「记忆轨迹」 web panel)engine/— C++ engine source (bge-small-zh-v1.5 ONNX embeddings on DirectML/CPU, SQLite index, JSONL stdio server)
Install
dsh plugin --profile <profile> add dsh-shiguan-memory
Build the engine
# 1) fetch ONNX Runtime (pip wheel) and the embedding model:
# - onnxruntime / onnxruntime-directml wheels (pip download, tsinghua mirror works)
# - https://hf-mirror.com/Xenova/bge-small-zh-v1.5/resolve/main/onnx/model_quantized.onnx
# - https://hf-mirror.com/Xenova/bge-small-zh-v1.5/resolve/main/tokenizer.json
# - https://cdn.jsdelivr.net/gh/nlohmann/json@v3.11.3/single_include/nlohmann/json.hpp
# - https://www.sqlite.org/2024/sqlite-amalgamation-3460100.zip
# 2) place artifacts per build.ps1, then:
powershell -File engine/build.ps1
License
MIT
No comments yet. Be the first to write one.