dsh-mem0-memory 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/LICENSE +21 -0
- package/README.en.md +270 -0
- package/README.md +272 -0
- package/bin/dsh-mem0-import.mjs +211 -0
- package/bin/dsh-mem0-search.mjs +124 -0
- package/cordis.patch.yml +4 -0
- package/excluded-workspaces.example.json +4 -0
- package/lib/index.js +299 -0
- package/package.json +38 -0
- package/scripts/.env.example +22 -0
- package/scripts/excluded-workspaces.json +4 -0
- package/scripts/g1-session-parser.mjs +816 -0
- package/scripts/mem0-server.py +743 -0
- package/scripts/setup.py +188 -0
- package/scripts/start-server.bat +47 -0
- package/scripts/start-server.sh +44 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# dsh-mem0-memory — mem0-server 配置模板
|
|
2
|
+
# 用法:复制为 .env(或运行 `python setup.py --init` 自动生成)后填写两个 API key。
|
|
3
|
+
# 优先级:环境变量 > .env > server 内置默认值。
|
|
4
|
+
|
|
5
|
+
# ── LLM(事实提取,记忆入库时调用)──────────────────────────────
|
|
6
|
+
# DeepSeek 或任意 OpenAI 兼容服务
|
|
7
|
+
MEM0_LLM_API_KEY=
|
|
8
|
+
# MEM0_LLM_MODEL=deepseek-v4-flash
|
|
9
|
+
# MEM0_LLM_BASE_URL=https://api.deepseek.com/v1
|
|
10
|
+
|
|
11
|
+
# ── Embedding(向量化,记忆检索时调用)──────────────────────────
|
|
12
|
+
# SiliconFlow 免费档即可(中文推荐 Qwen3-Embedding-8B);也可用任意 OpenAI 兼容服务
|
|
13
|
+
MEM0_EMBEDDING_API_KEY=
|
|
14
|
+
# MEM0_EMBEDDING_MODEL=Qwen/Qwen3-Embedding-8B
|
|
15
|
+
# MEM0_EMBEDDING_BASE_URL=https://api.siliconflow.cn/v1
|
|
16
|
+
# MEM0_EMBEDDING_DIMS=4096
|
|
17
|
+
|
|
18
|
+
# ── 数据与归属(可选)────────────────────────────────────────────
|
|
19
|
+
# 向量库数据目录(默认 ./mem0_store;首次建库后不可随意更改 embedding 模型/维度)
|
|
20
|
+
# MEM0_DATA_DIR=./mem0_store
|
|
21
|
+
# 记忆归属标识(多用户/多实例隔离用,默认 "default")
|
|
22
|
+
# MEM0_USER_ID=default
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
{
|
|
2
|
+
"note": "G1 工作区排除名单。【规则优先级】①前缀约定(写死于 g1-session-parser.mjs):工作区目录名以 0_ 开头 = 不入库(未来新建不入库的工作区按此命名,零维护);②本文件 excluded 数组:仅历史遗留区(名称无 0_ 前缀但必须排除)。匹配:excluded 每条按「子串」匹配「解码后的工作区路径」或「原始 projectKey」,任一命中即整体排除该工作区。配置文件缺失或损坏时 G1 直接报错退出(fail-closed,拒绝无保护运行)。默认随包发布为空名单。",
|
|
3
|
+
"excluded": []
|
|
4
|
+
}
|