Skip to content

GitHub 文档加载器节点#

¥GitHub Document Loader node

Deprecated

此节点已弃用,将在未来的版本中移除。

¥This node is deprecated, and will be removed in a future version.

使用“GitHub 文档加载器”节点从 GitHub 存储库加载数据以进行 矢量商店 或摘要。

¥Use the GitHub Document Loader node to load data from a GitHub repository for vector stores or summarization.

本页提供 GitHub Document Loader 节点的参数以及更多资源的链接。

¥On this page, you'll find the node parameters for the GitHub Document Loader node, and links to more resources.

Credentials

你可以在 此处 中找到此节点的身份验证信息。此节点不支持 OAuth 身份验证。

¥You can find authentication information for this node here. This node doesn't support OAuth for authentication.

Parameter resolution in sub-nodes

Sub-nodes behave differently to other nodes when processing multiple items using an expression.

Most nodes, including root nodes, take any number of items as input, process these items, and output the results. You can use expressions to refer to input items, and the node resolves the expression for each item in turn. For example, given an input of five name values, the expression {{ $json.name }} resolves to each name in turn.

In sub-nodes, the expression always resolves to the first item. For example, given an input of five name values, the expression {{ $json.name }} always resolves to the first name.

节点参数#

¥Node parameters

  • 文本分割:选择以下选项:

¥Text Splitting: Choose from:

  • 简单:使用 递归字符文本分割器,块大小为 1000,重叠为 200。

    ¥Simple: Uses the Recursive Character Text Splitter with a chunk size of 1000 and an overlap of 200.

  • 自定义:允许你连接你选择的文本分割器。

    ¥Custom: Allows you to connect a text splitter of your choice.

  • 存储库链接:输入你的 GitHub 代码库 URL。

¥Repository Link: Enter the URL of your GitHub repository.

  • 分支:输入要使用的分支名称。

¥Branch: Enter the branch name to use.

节点选项#

¥Node options

  • 递归:选择是否包含子文件夹和文件(已启用)或不包含(已禁用)。

¥Recursive: Select whether to include sub-folders and files (turned on) or not (turned off).

  • 忽略路径:输入要忽略的目录。

¥Ignore Paths: Enter directories to ignore.

模板和示例#

¥Templates and examples

Template widget placeholder.

相关资源#

¥Related resources

Refer to LangChain's documentation on document loaders for more information about the service.

View n8n's Advanced AI documentation.