Skip to main content

GitHub Copilot knowledge bases

Knowledge bases allow you to bring together Markdown documentation across one or more repositories, which can then be used as context for 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 组织和共享上下文.

About knowledge bases

Organization owners can create knowledge bases, bringing together Markdown documentation across one or more repositories. Organization members can then specify that knowledge base as the context for GitHub 中的 Copilot Chat, Copilot 对话助手 in Visual Studio Code, and Copilot 对话助手 in Visual Studio.

When you ask a question in Copilot 对话助手 with a knowledge base selected, Copilot will search the knowledge base for relevant information and synthesize a response.

Next steps