revise typo

This commit is contained in:
青轩 2024-08-21 15:05:25 +08:00
parent de3b56b594
commit 5b4125de3b
3 changed files with 10 additions and 10 deletions

View file

@ -1,6 +1,6 @@
# Installing MemoryScope
## I. Install with docker [Recommanded]
## I. Install with docker [Recommended]
1. Clone the repository and edit settings
```bash
# clone project
@ -22,7 +22,7 @@
```
## II. Install with docker compose [Recommanded]
## II. Install with docker compose [Recommended]
1. Clone the repository and edit settings

View file

@ -75,7 +75,7 @@ def chat_example5():
def chat_example6():
with MemoryScope(arguments=arguments) as ms:
memory_chat = ms.default_memory_chat
memory_chat.run_service_operation("delete_all", "锦鲤")
memory_chat.run_service_operation("delete_all", "用户")
memory_chat.run_service_operation("delete_all", "浩然")
print("浩然=========================")
@ -88,12 +88,12 @@ def chat_example6():
print("回答2:\n" + response.message.content)
print("记忆2:\n" + response.meta_data["memories"])
print("锦鲤=========================")
response = memory_chat.chat_with_memory(query="我的爱好是打羽毛球。", role_name="锦鲤")
print("用户=========================")
response = memory_chat.chat_with_memory(query="我的爱好是打羽毛球。", role_name="用户")
print("回答1:\n" + response.message.content)
result = memory_chat.run_service_operation("consolidate_memory", role_name="锦鲤")
result = memory_chat.run_service_operation("consolidate_memory", role_name="用户")
print(result)
response = memory_chat.chat_with_memory(query="你知道我的运动爱好是什么?", role_name="锦鲤",
response = memory_chat.chat_with_memory(query="你知道我的运动爱好是什么?", role_name="用户",
history_message_strategy=None)
print("回答2:\n" + response.message.content)
print("记忆2:\n" + response.meta_data["memories"])

View file

@ -18,13 +18,13 @@ Alternatively, you can specify all the parameters directly on the command line:
```bash
memoryscope --language="cn" \
--memory_chat_class="cli_memory_chat" \
--human_name="锦鲤" \
--human_name="用户" \
--assistant_name="AI" \
--generation_backend="dashscope_generation" \
--generation_model="qwen-max" \
--embedding_backend="dashscope_embedding" \
--embedding_model="text-embedding-v2" \
--use_dummy_ranker=False \
--enable_ranker=False \
--rank_backend="dashscope_rank" \
--rank_model="gte-rerank"
```
@ -39,6 +39,6 @@ Here are the available options that can be set through either method:
- `--generation_model`: The model used for generating responses.
- `--embedding_backend`: The backend used for text embeddings.
- `--embedding_model`: The model used for creating text embeddings.
- `--use_dummy_ranker`: A boolean indicating whether to use a dummy ranker (default is `False`).
- `--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.