Create consistent format for all chapaters and align the title of each chapter with readme

This commit is contained in:
joyenjoye
2023-07-01 16:04:49 +08:00
parent aec843c887
commit c6a3d0dfd3
11 changed files with 397 additions and 283 deletions

View File

@ -5,20 +5,29 @@
"id": "2caa79ba-45e3-437c-9cb6-e433f443f0bf",
"metadata": {},
"source": [
"# 代理\n",
"# 7. 代理\n",
"\n",
"<div class=\"toc\">\n",
" <ul class=\"toc-item\">\n",
" <li><span><a href=\"#7.1-LangChain内置工具\" data-toc-modified-id=\"7.1-LangChain内置工具-1\">7.1 LangChain内置工具</a></span>\n",
" <ul class=\"toc-item\">\n",
" <li><span><a href=\"#7.1.1-使用llm-math和wikipedia工具\" data-toc-modified-id=\"7.1.1-使用llm-math和wikipedia工具-1.1\">7.1.1 使用llm-math和wikipedia工具</a></span>\n",
" <li><span><a href=\"#7.1.2-使用PythonREPLTool工具\" data-toc-modified-id=\"7.1.2-使用PythonREPLTool工具-1.2\">7.1.2 使用PythonREPLTool工具</a></span>\n",
" </ul> \n",
" <li><span><a href=\"#7.2-定义自己的工具并在代理中使用\" data-toc-modified-id=\"7.2-定义自己的工具并在代理中使用-2\">7.2 定义自己的工具并在代理中使用</a></span>\n",
" <ul class=\"toc-item\">\n",
" <li><span><a href=\"#7.2.1-创建和使用自定义时间工具\" data-toc-modified-id=\"7.2.1-创建和使用自定义时间工具-2.1\">7.2.1 创建和使用自定义时间工具</a></span></li>\n",
" </ul>\n",
" </li>\n",
" </ul>\n",
"</div>\n",
"\n",
"\n",
"大语言模型学习并记住许多的网络公开信息,大语言模型最常见的应用场景是,将它当作知识库,让它对给定的问题做出回答。\n",
"\n",
"另一种思路是将大语言模型当作推理引擎让它基于已有的知识库并利用新的信息新的大段文本或者其他信息来帮助回答问题或者进行推理LongChain的内置代理工具便是适用该场景。\n",
"\n",
"本节我们将会了解什么是代理,如何创建代理, 如何使用代理,以及如何与不同类型的工具集成,例如搜索引擎。\n",
"\n",
"**目录**\n",
"* 使用LangChain内置工具\n",
" * 使用llm-math和wikipedia工具\n",
" * 使用PythonREPLTool工具\n",
"* 定义自己的工具并在代理中使用\n",
" * 创建和使用自定义时间工具"
"本节我们将会了解什么是代理,如何创建代理, 如何使用代理,以及如何与不同类型的工具集成,例如搜索引擎。"
]
},
{
@ -42,7 +51,7 @@
"id": "631c764b-68fa-483a-80a5-9a322cd1117c",
"metadata": {},
"source": [
"## LangChain内置工具"
"## 7.1 LangChain内置工具"
]
},
{
@ -76,7 +85,7 @@
"id": "d5a3655c-4d5e-4a86-8bf4-a11bd1525059",
"metadata": {},
"source": [
"### 📚 使用llm-math和wikipedia工具"
"### 7.1.1 使用llm-math和wikipedia工具"
]
},
{
@ -332,7 +341,7 @@
"id": "5901cab6-a7c9-4590-b35d-d41c29e39a39",
"metadata": {},
"source": [
"### 📚 使用PythonREPLTool工具"
"### 7.1.2 使用PythonREPLTool工具"
]
},
{
@ -656,7 +665,7 @@
"tags": []
},
"source": [
"## 定义自己的工具并在代理中使用"
"## 7.2 定义自己的工具并在代理中使用"
]
},
{
@ -675,7 +684,7 @@
"id": "fb92f6e4-21ab-494d-9c22-d0678050fd37",
"metadata": {},
"source": [
"### 📚 创建和使用自定义时间工具"
"### 7.2.1 创建和使用自定义时间工具"
]
},
{
@ -852,6 +861,19 @@
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.12"
},
"toc": {
"base_numbering": 1,
"nav_menu": {},
"number_sections": false,
"sideBar": true,
"skip_h1_title": false,
"title_cell": "Table of Contents",
"title_sidebar": "Contents",
"toc_cell": false,
"toc_position": {},
"toc_section_display": true,
"toc_window_display": true
}
},
"nbformat": 4,