diff --git a/blog/2023-10-18-RetrieveChat/index.mdx b/blog/2023-10-18-RetrieveChat/index.mdx index a6a9a8b..435ce40 100644 --- a/blog/2023-10-18-RetrieveChat/index.mdx +++ b/blog/2023-10-18-RetrieveChat/index.mdx @@ -23,9 +23,9 @@ tags: [LLM, RAG] ## RAG 代理的基本用法 0. 安装依赖 -请在使用 RAG 代理之前安装 pyautogen 和 [retrievechat] 选项。 +请在使用 RAG 代理之前安装 ag2 和 [retrievechat] 选项。 ```bash -pip install "pyautogen[retrievechat]" +pip install "ag2[retrievechat]" ``` 1. 导入代理 diff --git a/docs/Getting-Started.md b/docs/Getting-Started.md index e38bc11..45d45ff 100644 --- a/docs/Getting-Started.md +++ b/docs/Getting-Started.md @@ -21,7 +21,7 @@ AutoGen 由 Microsoft, 比尔法尼亚州立大学和华盛顿大学的合作 [ ### 快速入门 -通过 pip 安装:`pip install pyautogen`。 在 [安装](/docs/Installation) 中找到更多选项。 +通过 pip 安装:`pip install ag2`。 在 [安装](/docs/Installation) 中找到更多选项。 对于 [代码执行](/docs/FAQ#code-execution), 我们强烈建议安装 python docker 包, 并使用 docker。 #### 多代理对话框架$AutoGen 通过通用的多代理对话框架实现下一代 LLM 应用。 它提供了可定制和对话的代理,这些代理集成了 LLM 工具和人类。 @@ -71,7 +71,7 @@ response = autogen.Completion.create(context=test_instance, **config) * 了解围绕AutoGen的[研究](/docs/Research)。 * [discord](https://github.com/orgs/microsoft/projects/989/views/3) * 在[Discord](https://discord.gg/pAbnFJrkgZ)上交流。 -* 在[Twitter](https://twitter.com/pyautogen)上关注。 +* 在[Twitter](https://twitter.com/ag2)上关注。 diff --git a/docs/Installation.md b/docs/Installation.md index 800f5a5..62ab66c 100644 --- a/docs/Installation.md +++ b/docs/Installation.md @@ -10,8 +10,8 @@ ```bash -python3 -m venv pyautogen -source pyautogen/bin/activate +python3 -m venv ag2 +source ag2/bin/activate ``` 以下命令将停用当前的 venv 环境: @@ -26,8 +26,8 @@ deactivate ```bash -conda create -n pyautogen python=3.10 # 推荐使用Python 3.10,因为它稳定且不太旧 -conda activate pyautogen +conda create -n ag2 python=3.10 # 推荐使用Python 3.10,因为它稳定且不太旧 +conda activate ag2 ``` @@ -44,18 +44,18 @@ conda deactivate AutoGen 要求**Python 版本 >= 3.8 且 < 3.12**。可以通过 pip 安装它: ```bash -pip install pyautogen +pip install ag2 ``` -`pyautogen<0.2` 需要 `openai<1`。从 pyautogen v0.2 开始,需要 `openai>=1`。 +`ag2<0.2` 需要 `openai<1`。从 ag2 v0.2 开始,需要 `openai>=1`。 or conda: ``` -conda install pyautogen -c conda-forge +conda install ag2 -c conda-forge ``` ### 迁移指南至 v0.2 -openai v1 是该库的一次全面重写,有许多重大变化。例如,处理需要实例化一个客户端,而不是使用全局类方法。因此,`pyautogen<0.2` 的用户需要进行一些更改。 +openai v1 是该库的一次全面重写,有许多重大变化。例如,处理需要实例化一个客户端,而不是使用全局类方法。因此,`ag2<0.2` 的用户需要进行一些更改。 - `api_base` -> `base_url`,`request_timeout` -> `timeout` 在 `llm_config` 和 `config_list` 中。`max_retry_period` 和 `retry_wait_time` 已弃用。每个客户端可以设置 `max_retries`。 - MathChat 和 TeachableAgent 在未来的版本中将不再支持,直到经过测试。 @@ -75,11 +75,11 @@ pip install docker * blendsearch -`pyautogen<0.2` 提供了一种经济高效的超参数优化技术 [EcoOptiGen](https://arxiv.org/abs/2303.04673) 用于调整大型语言模型。请使用 [blendsearch] 选项进行安装。 +`ag2<0.2` 提供了一种经济高效的超参数优化技术 [EcoOptiGen](https://arxiv.org/abs/2303.04673) 用于调整大型语言模型。请使用 [blendsearch] 选项进行安装。 ```bash -pip install "pyautogen[blendsearch]<0.2" +pip install "ag2[blendsearch]<0.2" ``` 示例笔记本:$[为代码生成进行优化](https://github.com/microsoft/autogen/blob/main/notebook/oai_completion.ipynb), @@ -87,11 +87,11 @@ pip install "pyautogen[blendsearch]<0.2" * retrievechat -`pyautogen<0.2` 支持检索增强生成任务,例如问答和代码生成。请使用 [retrievechat] 选项进行安装。 +`ag2<0.2` 支持检索增强生成任务,例如问答和代码生成。请使用 [retrievechat] 选项进行安装。 ```bash -pip install "pyautogen[retrievechat]<0.2" +pip install "ag2[retrievechat]<0.2" ``` 示例笔记本:[使用检索增强代码生成和问答](https://github.com/microsoft/autogen/blob/main/notebook/agentchat_RetrieveChat.ipynb), @@ -99,10 +99,10 @@ pip install "pyautogen[retrievechat]<0.2" * mathchat -`pyautogen<0.2` 提供了一个用于解决数学问题的可扩展性实现。请使用 [mathchat] 选项进行安装。 +`ag2<0.2` 提供了一个用于解决数学问题的可扩展性实现。请使用 [mathchat] 选项进行安装。 ```bash -pip install "pyautogen[mathchat]<0.2"``` +pip install "ag2[mathchat]<0.2"``` 示例笔记本:$[使用 MathChat 解决数学问题](https://github.com/microsoft/autogen/blob/main/notebook/agentchat_MathChat.ipynb) diff --git a/docs/intro.md b/docs/intro.md index 5fd9412..36e2017 100644 --- a/docs/intro.md +++ b/docs/intro.md @@ -21,7 +21,7 @@ AutoGen 由 Microsoft, 比尔法尼亚州立大学和华盛顿大学的合作 [ ### 快速入门 -通过 pip 安装:`pip install pyautogen`。 在 [安装](/docs/Installation) 中找到更多选项。 +通过 pip 安装:`pip install ag2`。 在 [安装](/docs/Installation) 中找到更多选项。 对于 [代码执行](/docs/FAQ#code-execution), 我们强烈建议安装 python docker 包, 并使用 docker。 #### 多代理对话框架$AutoGen 通过通用的多代理对话框架实现下一代 LLM 应用。 它提供了可定制和对话的代理,这些代理集成了 LLM 工具和人类。 @@ -72,7 +72,7 @@ response = autogen.Completion.create(context=test_instance, **config) * 了解围绕AutoGen的[研究](/docs/Research)。 * [discord](https://github.com/orgs/microsoft/projects/989/views/3) * 在[Discord](https://discord.gg/pAbnFJrkgZ)上交流。 -* 在[Twitter](https://twitter.com/pyautogen)上关注。 +* 在[Twitter](https://twitter.com/ag2)上关注。