本文介绍如何将 YouTube 字幕加载到 LangChain 文档中。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.
安装设置
你需要安装 youtubei.js 来提取元数据:npm
使用方法
你需要在url 参数中指定视频链接。你还可以指定 ISO 639-1 标准的 language 参数以及 addVideoInfo 标志。
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

