1
0
mirror of synced 2025-12-19 18:10:59 -05:00
Files
docs/content/copilot/how-tos/provide-context/use-knowledge-bases.md
2025-11-19 13:33:28 +00:00

2.5 KiB

title, shortTitle, intro, topics, versions, redirect_from, contentType, category
title shortTitle intro topics versions redirect_from contentType category
Using knowledge bases Use knowledge bases Learn how to provide predefined context for {% data variables.copilot.copilot_chat %} with knowledge bases.
Copilot
feature
copilot-enterprise
/copilot/how-tos/context/using-knowledge-bases
/copilot/how-tos/context/use-knowledge-bases
how-tos
Author and optimize with Copilot

{% data reusables.copilot.knowledge-bases-retirement %}

Introduction

Knowledge bases are collections of documentation that you can use to provide context for your questions in {% data variables.copilot.copilot_chat %}. Knowledge bases are useful when you want to ask questions about a specific topic or set of topics, and you want the answers to be informed by the relevant documentation.

Organization owners (with a {% data variables.copilot.copilot_enterprise_short %} subscription) can create knowledge bases, grouping together Markdown documentation across one or more repositories. You can use a knowledge base to ask questions with that context in mind.

When you enter a query, {% data variables.product.prodname_copilot_short %} searches for relevant documentation snippets, synthesizes a summary of the relevant snippets to answer your question, and provides links to the source documentation for additional context.

Asking {% data variables.copilot.copilot_chat_short %} questions about a knowledge base

{% data reusables.copilot.access-chat-instructions %}

  1. To select a knowledge base for context, click {% octicon "paperclip" aria-label="Add attachments" %} Attach at the bottom of the chat panel, then click Knowledge bases.

  2. In the "Select knowledge bases" dialog, type the name of the knowledge base you want to use as context, select the knowledge bases you want to use, and click Save.

  3. In the prompt box, type a question and press Enter.

    You can click the n references link at the top of the response to see the sources that {% data variables.product.prodname_copilot_short %} used to answer your question.

  4. Within a conversation thread, you can ask follow-up questions. Follow-up questions will continue to use the selected knowledge base as context until you explicitly detach the knowledge base or select a different one.

Further reading