From 900efa4a660d1e7484f239447c32405d2914bbd1 Mon Sep 17 00:00:00 2001 From: liuminhui Date: Wed, 30 Oct 2024 15:52:19 +0800 Subject: [PATCH] In-Depth Guides Optimize --- src/en/guide/in_depth_guides/breakpoint_recovery.md | 6 +++++- src/en/guide/in_depth_guides/rag_module.md | 2 +- src/zh/guide/in_depth_guides/breakpoint_recovery.md | 6 +++++- src/zh/guide/in_depth_guides/rag_module.md | 2 +- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/en/guide/in_depth_guides/breakpoint_recovery.md b/src/en/guide/in_depth_guides/breakpoint_recovery.md index f64b6fcf..b94cc7f4 100644 --- a/src/en/guide/in_depth_guides/breakpoint_recovery.md +++ b/src/en/guide/in_depth_guides/breakpoint_recovery.md @@ -29,7 +29,9 @@ When the program is interrupted or terminated, the file structure in the storage team.json # Contains information such as team, environment, roles, actions, etc. ``` -Example of data summary corresponding to `team.json`. +
+ +Example of data summary corresponding to team.json ```json { @@ -140,6 +142,8 @@ Example of data summary corresponding to `team.json`. } ``` +
+ ### Execution order during recovery Since MetaGPT is an asynchronous execution framework, there are several typical interception points and recovery sequences as follows. diff --git a/src/en/guide/in_depth_guides/rag_module.md b/src/en/guide/in_depth_guides/rag_module.md index aeddca0a..612f3ef8 100644 --- a/src/en/guide/in_depth_guides/rag_module.md +++ b/src/en/guide/in_depth_guides/rag_module.md @@ -10,7 +10,7 @@ This article focuses on the RAG functions provided by the current MetaGPT: 4. Data update, addition of text and Python objects. 5. Data storage and recovery, vectorization is not required each time. -For more examples, please see [rag_pipeline](https://github.com/geekan/MetaGPT/blob/main/examples/rag_pipeline.py) and [rag_search](https://github.com/geekan/MetaGPT/blob/main/examples/rag_search.py) +For more examples, please see [rag_pipeline](https://github.com/geekan/MetaGPT/blob/main/examples/rag/rag_pipeline.py) and [rag_search](https://github.com/geekan/MetaGPT/blob/main/examples/rag/rag_search.py) ## Prepare diff --git a/src/zh/guide/in_depth_guides/breakpoint_recovery.md b/src/zh/guide/in_depth_guides/breakpoint_recovery.md index 7a6245d6..7cd33e5c 100644 --- a/src/zh/guide/in_depth_guides/breakpoint_recovery.md +++ b/src/zh/guide/in_depth_guides/breakpoint_recovery.md @@ -29,7 +29,9 @@ team.json # 包含团队、环境、角色、动作等信息 ``` -`team.json`对应内容的数据概要示例。 +
+ +team.json 对应内容的数据概要示例。 ```json { @@ -140,6 +142,8 @@ } ``` +
+ ### 恢复时的执行顺序 由于MetaGPT是异步执行框架,对于下述几种典型的中断截点和恢复顺序。 diff --git a/src/zh/guide/in_depth_guides/rag_module.md b/src/zh/guide/in_depth_guides/rag_module.md index 4fb476b7..1f21b253 100644 --- a/src/zh/guide/in_depth_guides/rag_module.md +++ b/src/zh/guide/in_depth_guides/rag_module.md @@ -10,7 +10,7 @@ RAG(Retrieval-Augmented Generation)通过引用外部权威知识库来优 4. 数据更新,增加文本与python对象 5. 数据保存及恢复,不用每次都进行向量化 -更多的例子请查看 [rag_pipeline](https://github.com/geekan/MetaGPT/blob/main/examples/rag_pipeline.py) 和 [rag_search](https://github.com/geekan/MetaGPT/blob/main/examples/rag_search.py) +更多的例子请查看 [rag_pipeline](https://github.com/geekan/MetaGPT/blob/main/examples/rag/rag_pipeline.py) 和 [rag_search](https://github.com/geekan/MetaGPT/blob/main/examples/rag/rag_search.py) ## 前置准备