You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/copilot/github-copilot-enterprise/copilot-chat-in-github/using-github-copilot-chat-in-githubcom.md
+39-31
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,8 @@ topics:
23
23
On {% data variables.product.prodname_dotcom_the_website %}, you can use {% data variables.product.prodname_copilot_chat_short %} to ask:
24
24
25
25
- General software-related questions, without a particular context. For more information, see "[Asking a general question about software development](#asking-a-general-question-about-software-development)."
26
-
- Questions asked in the context of a specific repository, file or symbol. For more information, see "[Asking a question about a specific repository, file or symbol](#asking-a-question-about-a-specific-repository-file-or-symbol)."
26
+
- Exploratory questions asked in the context of a specific repository. For more information, see "[Asking exploratory questions about a repository](#asking-exploratory-questions-about-a-repository)."
27
+
- Questions asked in the context of a specific repository, file or symbol. For more information, see "[Asking a question about a specific file or symbol](#asking-a-question-about-a-specific-file-or-symbol)."
27
28
- Questions asked in the context of a knowledge base (that is, Markdown documentation across one or more repositories). For more information, see "[Asking a question about a knowledge base](#asking-a-question-about-a-knowledge-base)."
28
29
- Questions about a specific file or specified lines of code within a file. For more information, see "[Asking questions about specific pieces of code](#asking-questions-about-specific-pieces-of-code)."
29
30
- Questions about a pull request diff. For more information, see "[Finding out about the changes in a pull request](#finding-out-about-the-changes-in-a-pull-request)."
@@ -52,9 +53,13 @@ Depending on the question you ask, and your enterprise and organization settings
52
53
53
54
{% data reusables.copilot.go-to-copilot-page %}
54
55
56
+
1. If the panel is headed "Chatting about OWNER/REPOSITORY," click **All repositories**.
57
+
58
+

59
+
55
60
1. If the "Ask {% data variables.product.prodname_copilot_short %}" page is displayed in the panel, click **General purpose chat**.
56
61
57
-

62
+

58
63
59
64
1. At the bottom of the panel, in the "Ask {% data variables.product.prodname_copilot_short %}" box, type a question and press <kbd>Enter</kbd>.
60
65
@@ -72,61 +77,60 @@ Depending on the question you ask, and your enterprise and organization settings
72
77
73
78
{% data reusables.copilot.chat-conversation-buttons %}
74
79
75
-
## Asking a question about a specific repository, file or symbol
80
+
## Asking exploratory questions about a repository
76
81
77
-
You can choose a particular repository, file or symbol, and then ask a question with that context in mind.
78
-
79
-
{% note %}
80
-
81
-
**Note:** A "symbol" is a named entity in code. This could be a variable, function, class, module, or any other identifier that's part of a codebase.
82
-
83
-
{% endnote %}
82
+
{% data variables.product.prodname_copilot_short %} allows you to use natural language questions to explore repositories on {% data variables.product.prodname_dotcom %}. This can help you get a better understanding of where specific aspects of a codebase are implemented.
84
83
85
84
{% data reusables.copilot.go-to-copilot-page %}
86
-
1. If the "Ask {% data variables.product.prodname_copilot_short %}" page is not displayed in the panel, click **All topics**.
87
85
88
-

86
+
{% data reusables.copilot.ask-copilot-not-displayed %}
87
+
88
+
{% note %}
89
89
90
-
1. On the "Ask {% data variables.product.prodname_copilot_short %}" page, select a repository to provide a context for your question.
90
+
**Note**:
91
91
92
-
For example, you could choose a repository whose code you want to understand better.
92
+
{% data variables.product.prodname_copilot_short %}'s ability to answer natural language questions like these in a repository context is improved when the repository has been indexed for semantic code search. The indexing status of the repository is displayed when you start a conversation that has a repository context.
93
93
94
-
You can search for a repository if you don't see one you want to use.
94
+
If you get access to {% data variables.product.prodname_copilot_short %} from the organization that owns the repository, and the repository has not been indexed, an **Index REPOSITORY NAME** button is displayed. Click this button to start the indexing process.
95
95
96
-
1. Optionally, after selecting a repository, if you want to set particular files or symbols from the selected repository as your context, click the "Attach files or symbols" button (a paperclip icon) at the bottom of the chat panel, then search for and select one or more files and symbols.
96
+

97
97
98
-

98
+
{% endnote %}
99
99
100
100
1. In the "Ask {% data variables.product.prodname_copilot_short %}" box, type a question and press <kbd>Enter</kbd>.
101
101
102
102
For example, you could ask:
103
103
104
-
- What is the main purpose of this repo? What problem does it solve or what functionality does it provide?
105
-
- What web frameworks are used in this project?
106
104
- Where is rate limiting implemented in our API?
107
105
- How does the WidgetFactory class work?
108
-
-How is the code organized? Explain the project architecture.
109
-
-Are there any specific environment requirements for working on this project?
106
+
-Where is the code for converting an organization member to be an outside collaborator?
107
+
-Where are SAT tokens generated?
110
108
111
-
{% note %}
109
+
{% data variables.product.prodname_copilot_short %} replies in the chat panel.
112
110
113
-
**Note**:
111
+
{% data reusables.copilot.chat-conversation-buttons %}
114
112
115
-
{% data variables.product.prodname_copilot_short %}'s ability to answer natural language questions like these in a repository context is improved when the repository has been indexed for semantic code search. The indexing status of the repository is displayed when you start a conversation that has a repository context.
113
+
## Asking a question about a specific file or symbol
116
114
117
-
If you get access to {% data variables.product.prodname_copilot_short %} from the organization that owns the repository, and the repository has not been indexed, an **Index REPOSITORY NAME** button is displayed. Click this button to start the indexing process.
115
+
You can ask {% data variables.product.prodname_copilot_short %} about a specific file or symbol within a repository.
118
116
119
-

117
+
{% note %}
120
118
121
-
{% endnote %}
119
+
**Note:** A "symbol" is a named entity in code. This could be a variable, function, class, module, or any other identifier that's part of a codebase.
122
120
123
-
1. The response typically contains numbered references to files that {% data variables.product.prodname_copilot_short %} used to generate the answer, from the repository you selected. To list the sources that were used, click **NUMBER references**.
121
+
{% endnote %}
124
122
125
-

123
+
{% data reusables.copilot.go-to-copilot-page %}
126
124
127
-
1. To display a source reference in a popup, click its entry in the list.
125
+
{% data reusables.copilot.ask-copilot-not-displayed %}
128
126
129
-
Alternatively, to open the complete file, click the ellipsis (**...**), then select **Open**.
127
+
1. Click the "Attach files or symbols" button (a paperclip icon) at the bottom of the chat panel, then search for and select one or more files and symbols.
128
+
129
+

130
+
131
+
1. In the "Ask {% data variables.product.prodname_copilot_short %}" box, type a question and press <kbd>Enter</kbd>.
132
+
133
+
{% data variables.product.prodname_copilot_short %} replies in the chat panel.
130
134
131
135
{% data reusables.copilot.chat-conversation-buttons %}
132
136
@@ -138,6 +142,10 @@ When you enter a query, {% data variables.product.prodname_copilot_short %} sear
138
142
139
143
{% data reusables.copilot.go-to-copilot-page %}
140
144
145
+
1. If the "Ask {% data variables.product.prodname_copilot_short %}" page is not displayed in the panel, click **All repositories**.
146
+
147
+

148
+
141
149
1. Start a conversation with {% data variables.product.prodname_copilot_short %} by either selecting a repository or clicking **General purpose chat**.
142
150
1. Click the "Attach knowledge" button (a book icon) at the bottom of the chat panel, to view a list of the knowledge bases that you have access to.
1. If the "Ask {% data variables.product.prodname_copilot_short %}" page is not displayed in the panel, click **All repositories**.
2
+
3
+

4
+
5
+
1. On the "Ask {% data variables.product.prodname_copilot_short %}" page, select a repository to provide a context for your question.
6
+
7
+
For example, you could choose a repository whose code you want to understand better.
8
+
9
+
You can search for a repository if you don't see one you want to use.
0 commit comments