@towzai/dsh-memory
提供跨会话记忆存储、语义检索与自动注入功能。 适合需要让AI在不同会话间保持长期记忆、实现上下文关联的任务。
安裝
$
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 或把模型换回去。