Skip to main content

GitHub Copilot 知识库

借助知识库,可以将一个或多个存储库中的 Markdown 文档汇集在一起,然后将其用作 Copilot 对话助手 的上下文。

谁可以使用此功能?

拥有 Copilot Enterprise 计划的组织

重要

Beginning November 1, 2025, knowledge bases will be 已停用 and fully replaced by Copilot Spaces. 空格 let you combine code and free-text content—like transcripts or specs—and can be created by any Copilot user, not just organization owners. They're a good option for more focused or task-specific use cases. See 关于使用 GitHub Copilot Spaces 组织和共享上下文.

关于知识库

组织所有者可以创建一个知识库,汇集一个或多个存储库中的 Markdown 文档 然后,组织成员可以将该知识库指定为 GitHub 中的 Copilot Chat、Visual Studio Code 中的 Copilot 对话助手 以及 Visual Studio 中的 Copilot 对话助手 的背景信息。

当你在 Copilot 对话助手 中提出问题并选择知识库时,Copilot 将在知识库中搜索相关信息并合成响应。

后续步骤