Skip to content

Commit

Permalink
add memory view (#5)
Browse files Browse the repository at this point in the history
* add memory view

* Update installation_zh.md

* Update installation.md

* additional explain

---------

Co-authored-by: binary-husky <[email protected]>
Co-authored-by: 青轩 <[email protected]>
  • Loading branch information
3 people authored Oct 14, 2024
1 parent 9a0cf44 commit 982c82e
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
sudo docker run -it --rm --net=host memoryscope
```

> [!Important]
> To inspect memory shift during the conversation, modify command in step 3 to `sudo docker run -it --name=memoryscope_container --rm --net=host memoryscope`;<br/>
> Then start a new terminal window and execute `sudo docker exec -it memoryscope_container python quick-start-demo.py --config_path=memoryscope/core/config/demo_config_zh.yaml`;<br/>
> In the second window, input `/list_memory refresh_time=5` to inspect memory

## II. Install with docker compose [Recommended] [x86_64]

Expand Down
4 changes: 4 additions & 0 deletions docs/installation_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
```


> [!Important]
> 如果需要观察Memory的变化请调整第3步的运行命令。首先执行 `sudo docker run -it --name=memoryscope_container --rm --net=host memoryscope`启动memoryscope;<br/>
> 然后新建命令行窗口,运行`sudo docker exec -it memoryscope_container python quick-start-demo.py --config_path=memoryscope/core/config/demo_config_zh.yaml`<br/>
> 在第二个窗口,继续输入`/list_memory refresh_time=5`来检查实时的memory

## 二、使用 Docker Compose 安装 [推荐] [x86_64]

Expand Down
9 changes: 9 additions & 0 deletions examples/cli/CLI_README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,12 @@ Here are the available options that can be set through either method:
- `--enable_ranker`: A boolean indicating whether to use a dummy ranker (default is `False`).
- `--rank_backend`: The backend used for ranking responses.
- `--rank_model`: The model used for ranking responses.

### 3. View Memory
You can open two command line windows following the method in the second step.
In one command line window, you can have a conversation with the AI, while in the other, you can check the AI's long-term memory about the user.
Use /help to open the command line help, and find the command /list_memory along with the corresponding auto-refresh instruction.
```
/list_memory refresh_time=5
```
Then you can enjoy a pleasant conversation with the AI!
9 changes: 9 additions & 0 deletions examples/cli/CLI_README_ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,12 @@ memoryscope --language="en" \
- `--enable_ranker`: 一个布尔值,指示是否使用排名器(默认为 False)。
- `--rank_backend`: 用于排名回复的后端。
- `--rank_model`: 用于排名回复的模型。

### 3. 查看记忆
按照第二步的方式可以打开两个命令行的窗口。
其中一个命令行窗口可以和AI进行对话,另一个命令行窗口可以查看AI关于用户的长期记忆
使用/help打开命令行帮助,找到/list_memory的命令和对应自动刷新的指令。
```
/list_memory refresh_time=5
```
接下来就可以和AI进行愉快地交流啦。

0 comments on commit 982c82e

Please sign in to comment.