1
0
mirror of synced 2026-01-01 09:04:46 -05:00
Files
docs/content/copilot/github-copilot-chat/copilot-chat-in-github/managing-copilot-knowledge-bases.md
2024-05-21 14:52:21 +00:00

4.7 KiB

title, shortTitle, intro, versions, topics, redirect_from
title shortTitle intro versions topics redirect_from
Managing Copilot knowledge bases Manage knowledge bases Organization owners can create a knowledge base bringing together Markdown documentation across one or more repositories, and then organization members can use that knowledge base as context for {% data variables.product.prodname_copilot_chat_dotcom_short %}.
feature
copilot-private-docsets
Copilot
/copilot/github-copilot-enterprise/copilot-docset-management/creating-private-docsets
/copilot/github-copilot-enterprise/copilot-docset-management
/copilot/github-copilot-enterprise/copilot-chat-in-github/managing-copilot-knowledge-bases

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 {% data variables.product.prodname_copilot_chat_dotcom_short %}.

When you ask a question in {% data variables.product.prodname_copilot_chat_dotcom_short %}, {% data variables.product.prodname_copilot %} will search the knowledge base for relevant information and synthesize a response. For more information on how to use knowledge bases in {% data variables.product.prodname_copilot_chat_dotcom_short %}, see "Asking a question about a knowledge base."

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 {% data variables.product.prodname_copilot_enterprise %} subscription. When an organization member uses a knowledge base as context in {% data variables.product.prodname_copilot_chat_dotcom_short %}, the response will only use data from repositories that the organization member has read access to.

{% data reusables.profile.access_org %} {% data reusables.profile.org_settings %}

  1. In the left sidebar, click {% octicon "copilot" aria-hidden="true" %} {% data variables.product.prodname_copilot_short %} then click Customize.

  2. To the right of "Knowledge", click Add knowledge base.

  3. 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 "Add knowledge base" page.

  4. 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.

  5. 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.

  6. Optionally, you can define which paths within the selected repositories to index.

    • 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.
  7. Click Create knowledge base.

Updating a knowledge base

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

{% data reusables.profile.access_org %} {% data reusables.profile.org_settings %}

  1. In the left sidebar, click {% octicon "copilot" aria-hidden="true" %} {% data variables.product.prodname_copilot_short %} then click Customize.
  2. To the right of the knowledge base you want to edit, click {% octicon "pencil" aria-label="The pencil symbol" %}.
  3. Make your desired changes to your knowledge base.
  4. Click Update knowledge base.

Deleting a knowledge base

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

{% data reusables.profile.access_org %} {% data reusables.profile.org_settings %}

  1. In the left sidebar, click {% octicon "copilot" aria-hidden="true" %} {% data variables.product.prodname_copilot_short %} then click Customize.
  2. To the right of the knowledge base you want to delete, click {% octicon "trash" aria-label="The trash symbol" %}.
  3. In the "Confirm deletion" dialog box, review the information and click Delete.