Pular para o conteúdo principal
C

dsh-shiguan-memory

chtchenhaitao/dsh-shiguan-memory

dsh memory plugin — local C++ probabilistic long-term memory for DeepSeek Harness (dsh-plugin): forgetting-curve compression, semantic clustering, and a memory-trajectory panel. 史官记忆引擎:本地长期记忆、遗忘曲线、语义聚类、可审计轨迹。

Instalar

dsh plugin --profile web add github:chtchenhaitao/dsh-shiguan-memory

README

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

Plugins relacionados