Skip to content

Commit 852ae81

Browse files
committed
docs(ecosystem): update long-term memory plugin documentation
- Add new configuration options for long-term memory plugin - Integrate active memory features into long-term memory - Update related documentation to reflect new changes - Add tip for autoUpdateRoomMode configuration - Update index page to include Deepseek integration
1 parent bdc906b commit 852ae81

File tree

6 files changed

+47
-4
lines changed

6 files changed

+47
-4
lines changed

docs/ecosystem/plugin/long-term-memory.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,22 @@
5858
* 默认值: `0.5`
5959

6060
长期记忆的重复性检查阈值,取值范围在 0 到 1 之间。超过此阈值的记忆将被视为重复,不会被存储。
61+
62+
### longMemoryNewQuestionSearch
63+
64+
* 类型: `boolean`
65+
* 默认值: `false`
66+
67+
是否开启新问题搜索。开启后在对话时,会生成新的问题,并搜索相关的记忆。
68+
69+
### longMemoryLayer
70+
71+
* 类型: (`global` | `preset-user` | `preset` | `user`)[]
72+
* 默认值: `preset-user`
73+
74+
长期记忆的存储层级。
75+
76+
* global:全局层。此层记忆会被所有房间共享。
77+
* preset: 此层记忆会被相同预设的所有房间共享。
78+
* preset-user: 此层记忆会是长期记忆的主要检索层。用户聊天的记忆默认会被添加到此层。此层针对不同用户和预设都会区分。
79+
* user: 此层记忆会同一用户的所有对话间共享。

docs/guide/model-plugin-system/active-memory.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
相比被动的 [长期记忆](../session-related/long-term-memory.md),主动记忆工具更偏向于与人类交流般的主动记忆信息。
44

5+
> [!WARNING] 警告
6+
> 在最新版本 (v1.1.0) 的 ChatLuna 中,主动记忆工具已经被整合到了 [长期记忆](../../ecosystem/plugin/long-term-memory.md) 中。
7+
> 你只需要启用长期记忆插件即可。此教程仅作为旧版本的参考。
8+
59
## 配置
610

711
- 在开始之前,确保 [长期记忆](../session-related/long-term-memory.md) 的前置配置已完成。(可以不启用长期记忆)

docs/guide/session-related/long-term-memory.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
目前长期记忆具有以下特性:
77

88
- 基于模型和用户的对话历史,提取关键信息,并存储到向量数据库中。
9-
- 跨不同房间的记忆,基于预设和用户区分。
9+
- 多层次的长期记忆,包括:预设层、全局层、用户层。
10+
- 模拟人类的记忆分类和遗忘曲线。
1011
- 即使清除房间内的聊天记录,长期记忆依然存在。
1112

1213
## 配置

docs/guide/session-related/room.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ ChatLuna 会自动在群内创建一个模板克隆房间,并且所有人默
6868

6969
所有的模版克隆房间都会共享同一个模型,同一个预设,同一个聊天模式。
7070

71+
> [!TIP] 提示
72+
> 可能还需要设置 [autoUpdateRoomMode](../useful-configurations.md#autoupdateroommode) 选项为 `all`
73+
> 这样可以让所有房间都自动更新。
74+
7175
### 群内单独上下文,统一模型和预设
7276

7377
此方式适用于需要在群内每位群友独立上下文的用户。

docs/guide/useful-configurations.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@ Bot 回复时是否引用原消息回复。开启后 Bot 的回复都会引用
113113
- 默认值:`false`
114114

115115
在使用插件模式时,是否显示模型调用工具的过程。
116+
此选项同样作用于思考模型,当你接入的 API 返回了**标准**`reasoning_content` 字段时,会将其发送到群聊。
117+
118+
> [!TIP] 提示
119+
> 对于思考模型,此选项不支持非标准的 `<think></think>` 标签。
120+
> ChatLuna 不会对非标准的 `<think></think>` 内思考消息进行适配。
116121
117122
## 消息渲染选项
118123

@@ -187,7 +192,6 @@ Bot 回复时是否引用原消息回复。开启后 Bot 的回复都会引用
187192

188193
该列表为全局机制,进入该名单的用户或平台将无法使用 ChatLuna 的各项功能。(扩展插件除外)
189194

190-
191195
## 历史记录选项
192196

193197
### messageCount
@@ -278,6 +282,17 @@ ChatLuna 默认使用的向量数据库。
278282

279283
如需了解预设,可查看 [预设](../guide/preset-system/introduction.md)
280284

285+
### autoUpdateRoomMode
286+
287+
- 类型: `all` | `manual` | `disable`
288+
- 默认值: `manual`
289+
290+
房间跟随模版克隆房间的更新模式。
291+
292+
- all: 所有房间都跟随模版克隆房间的更新。
293+
- manual: 只有 ChatLuna 自动创建的房间跟随模版克隆房间的更新。
294+
- disable: 所有房间都不跟随模版克隆房间的更新,且不会自动更新。
295+
281296
## 杂项
282297

283298
### authSystem <Badge type="warning" text="实验性" />

docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ hero:
1919
features:
2020
- icon: 🚀
2121
title: 快速部署
22-
details: 无需编写复杂配置文件和部署其他服务,安装系列插件后,在 Koishi 控制面板上配置后即可使用
22+
details: 无需编写复杂配置文件或部署 Docker 服务,在 Koishi 平台安装相关插件后,即可配置使用
2323
- icon: 🌐
2424
title: 多模型集成
25-
details: 集成 OpenAI、Google Gemini、Anthropic Claude 等主流服务,持续扩展更多平台。
25+
details: 集成 Deepseek、OpenAI、Google Gemini、Anthropic Claude 等主流服务,持续扩展更多平台。
2626
- icon: 🎨
2727
title: 渲染输出
2828
details: 可渲染模型回复,支持文本、图片、语音等多种格式。

0 commit comments

Comments
 (0)