Skip to content

GitHub 文档加载器节点#

使用 GitHub 文档加载器节点可以从 GitHub 仓库加载数据,用于向量存储或摘要生成。

本页面将介绍 GitHub 文档加载器节点的参数配置,并提供更多资源链接。

凭证

您可以在此处找到该节点的认证信息。此节点不支持使用 OAuth 进行认证。

/// 注意 | 子节点中的参数解析 子节点在使用表达式处理多个项目时的行为与其他节点不同。

大多数节点(包括根节点)会接收任意数量的输入项,处理这些项目,然后输出结果。您可以使用表达式来引用输入项,节点会依次为每个项目解析表达式。例如,给定五个 name 值作为输入,表达式 {{ $json.name }} 会依次解析为每个名称。

而在子节点中,表达式总是解析为第一个项目。例如,给定五个 name 值作为输入,表达式 {{ $json.name }} 总是解析为第一个名称。 ///

节点参数#

  • 仓库链接:输入您的 GitHub 仓库 URL。
  • 分支:输入要使用的分支名称。

节点选项#

  • 递归:选择是否包含子文件夹和文件(开启)或不包含(关闭)。
  • 忽略路径:输入要忽略的目录。

模板和示例#

Back Up Your n8n Workflows To Github

by Jonathan

View template details
Building RAG Chatbot for Movie Recommendations with Qdrant and Open AI

by Jenny

View template details
Chat with GitHub API Documentation: RAG-Powered Chatbot with Pinecone & OpenAI

by Mihai Farcas

View template details
Browse GitHub 文档加载器 integration templates, or search all templates

相关资源#

请参考 LangChain 关于文档加载器的文档 获取有关该服务的更多信息。

查看 n8n 的高级 AI 文档。

AI glossary#

  • completion: Completions are the responses generated by a model like GPT.
  • hallucinations: Hallucination in AI is when an LLM (large language model) mistakenly perceives patterns or objects that don't exist.
  • vector database: A vector database stores mathematical representations of information. Use with embeddings and retrievers to create a database that your AI can access when answering questions.
  • vector store: A vector store, or vector database, stores mathematical representations of information. Use with embeddings and retrievers to create a database that your AI can access when answering questions.