Skip to main content

Creating and managing Copilot knowledge bases

Learn how to create and manage knowledge bases, which allow you to bring together Markdown documentation across one or more repositories, and then use that knowledge base as context for Copilot 채팅.

누가 이 기능을 사용할 수 있나요?

Copilot Enterprise 플랜이 있는 조직의 경우

Knowledge bases are a way to bring together Markdown documentation across one or more repositories. 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.

Creating a knowledge base

You can create a knowledge base from a single repository or a selection of repositories. You can create a knowledge base using public, private, and/or internal repositories.

Knowledge bases you create will be accessible by all organization members with a Copilot Enterprise plan. When an organization member uses a knowledge base as context in GitHub Copilot 채팅, the response will only use data from repositories that the organization member has read access to.

  1. GitHub의 오른쪽 위 모서리에서 프로필 사진을 선택한 다음, Your organizations를 클릭합니다.

  2. 조직 옆에 있는 설정을 클릭합니다.

  3. In the left sidebar, click Copilot then click Knowledge bases.

  4. To the right of "Knowledge bases", click New knowledge base.

  5. In the "Name" field, enter a unique name for the knowledge base. Optionally, in the "Description" field, you can add a description for the knowledge base.

    Screenshot of the "New knowledge base" page.

  6. Under "Content", to see a full list of available repositories, click Select repositories.

    Screenshot of the "Select repositories" page. The "Select repositories" page is highlighted with a dark orange outline.

  7. To select a repository or repositories, click the checkbox next to the repository name. When you're finished selecting repositories, click Apply.

    Screenshot of the "Select repositories" page.

  8. Optionally, you can specify particular paths within the selected repositories for searches. When a search is conducted using the knowledge base, only the files located in those designated paths will be included in the results. For more information on specifying repository paths, see GitHub 코드 검색 구문 이해

    • Click Edit file paths.

    Screenshot of the list of selected repositories. The "Edit file paths" link is highlighted with a dark orange outline.

    • List the paths you want to include in the knowledge base, one path per line. When you're finished, click Apply.
  9. Click Create knowledge base.

Updating a knowledge base

Organization owners can update a knowledge base created in their organization.

  1. GitHub의 오른쪽 위 모서리에서 프로필 사진을 선택한 다음, Your organizations를 클릭합니다.

  2. 조직 옆에 있는 설정을 클릭합니다.

  3. In the left sidebar, click Copilot then click Knowledge bases.

  4. To the right of the knowledge base you want to edit, click .

  5. Make your desired changes to your knowledge base.

  6. Click Update knowledge base.

Deleting a knowledge base

Organization owners can delete a knowledge base created in their organization.

  1. GitHub의 오른쪽 위 모서리에서 프로필 사진을 선택한 다음, Your organizations를 클릭합니다.

  2. 조직 옆에 있는 설정을 클릭합니다.

  3. In the left sidebar, click Copilot then click Knowledge bases.

  4. To the right of the knowledge base you want to delete, click .

  5. In the "Confirm deletion" dialog box, review the information and click Delete.

Next steps