本示例演示如何使用 Cheerio 从任意 GitBook 加载数据。每个页面将创建一个文档。Documentation Index
Fetch the complete documentation index at: https://langchain-zh.cn/llms.txt
Use this file to discover all available pages before exploring further.
安装
npm
从单个 GitBook 页面加载
从指定 GitBook 的所有路径加载
要使此功能正常工作,GitbookLoader 需要使用根路径(本例中为 https://docs.gitbook.com)进行初始化,并将shouldLoadAllPaths 设置为 true。
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

