Skip to content

Commit b8ea533

Browse files
committed
feat(memory): add layer parameter to memory commands
- Add -v/--view parameter to memory search, add, delete, edit, and clear commands - Specify memory layer: preset-user, user, global, or preset - Update command formats and examples in the documentation
1 parent 852ae81 commit b8ea533

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

docs/guide/useful-commands.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -932,13 +932,14 @@ chatluna.vectorstore.set <vectorstore:string>
932932
以下为命令格式:
933933

934934
```powershell
935-
chatluna.memory.search -t <type:string> -l <limit:number> -p <page:number> <keyword:string>
935+
chatluna.memory.search -t <type:string> -l <limit:number> -p <page:number> <keyword:string> -v <layer:string>
936936
```
937937

938938
以下为参数说明:
939939

940940
- `-p,--preset`: 指定搜索的预设。
941941
- `keyword`: 指定搜索的关键词。
942+
- `-v,--view`: 指定记忆的具体层。目前支持: `preset-user`, `user`, `global`, `preset`
942943

943944
以下为例子:
944945

@@ -961,13 +962,14 @@ chatluna.memory.search -t <type:string> -l <limit:number> -p <page:number> <key
961962
以下为命令格式:
962963

963964
```powershell
964-
chatluna.memory.add -t <type:string> <content:string>
965+
chatluna.memory.add -t <type:string> -v <layer:string> <content:string>
965966
```
966967

967968
以下为参数说明:
968969

969970
- `-t,--type`: 指定添加记忆的预设。
970971
- `content`: 指定添加的记忆内容。
972+
- `-v,--view`: 指定记忆的具体层。目前支持: `preset-user`, `user`, `global`, `preset`
971973

972974
以下为例子:
973975

@@ -983,13 +985,14 @@ chatluna.memory.add -t <type:string> <content:string>
983985
以下为命令格式:
984986

985987
```powershell
986-
chatluna.memory.delete -t <type:string> <id:string>
988+
chatluna.memory.delete -t <type:string> -v <layer:string> <id:string>
987989
```
988990

989991
以下为参数说明:
990992

991993
- `-t,--type`: 指定删除记忆的预设。
992994
- `id`: 指定删除的记忆 ID。
995+
- `-v,--view`: 指定记忆的具体层。目前支持: `preset-user`, `user`, `global`, `preset`
993996

994997
以下为例子:
995998

@@ -1005,13 +1008,14 @@ chatluna.memory.delete -t <type:string> <id:string>
10051008
以下为命令格式:
10061009

10071010
```powershell
1008-
chatluna.memory.edit -t <type:string> <id:string>
1011+
chatluna.memory.edit -t <type:string> -v <layer:string> <id:string>
10091012
```
10101013

10111014
以下为参数说明:
10121015

10131016
- `-t,--type`: 指定修改记忆的预设。
10141017
- `id`: 指定修改的记忆 ID。
1018+
- `-v,--view`: 指定记忆的具体层。目前支持: `preset-user`, `user`, `global`, `preset`
10151019

10161020
以下为例子:
10171021

@@ -1033,12 +1037,13 @@ chatluna.memory.edit -t <type:string> <id:string>
10331037
以下为命令格式:
10341038

10351039
```powershell
1036-
chatluna.memory.clear -t <type:string>
1040+
chatluna.memory.clear -t <type:string> -v <layer:string>
10371041
```
10381042

10391043
以下为参数说明:
10401044

10411045
- `-t,--type`: 指定清除记忆的预设。
1046+
- `-v,--view`: 指定记忆的具体层。目前支持: `preset-user`, `user`, `global`, `preset`
10421047

10431048
以下为例子:
10441049

0 commit comments

Comments
 (0)