Towzai/dsh-memory ↗★ 2

@towzai/dsh-memory

DSH 跨会话记忆插件 | Cross-session memory plugin: YAML 存储、embedding 语义检索、标题优先注入、两级自动注入 适合需要让AI在不同会话间保持长期记忆、实现上下文关联的任务。

パッケージ
@towzai/dsh-memory
互換性
未検証
Harness ピア範囲
^0.1.0-rc.5
Cordis ピア範囲
^4.0.1
バージョン
0.2.0
ライセンス
MIT
最終更新
2026/09/08

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Towzai/dsh-memory

ドキュメント

README 全文を読む ↗

⚙️ 配置

- id: dsh-memory
  config:
    file: /path/to/memory.yaml   # 记忆文件位置
    injectLimit: 8               # 会话级注入条数上限
    embedProvider: ollama        # ollama(本地,默认)| nous(OpenAI 兼容云端)
    embedApiKeyFile: ''          # 从文件里读第一个 sk-… 当密钥(密钥不进配置/仓库)
    embedApiKey: ''              # 或直接给密钥(优先级最高)
    embedBaseUrl: ''             # 云端 base URL(默认 https://inference-api.nousresearch.com/v1)
    embedModel: ''               # 云端模型(默认 qwen/qwen3-embedding-8b,4096 维)
    minSimilarity: 0.65          # 语义召回相似度门槛

⚠️ 换嵌入模型或后端会让已存向量失效。维度不匹配会被检测并打 warn(不会静默返回空),需重新 embed 或把模型换回去。