GH-300 · Question #67
What are two techniques that can be used to improve prompts to GitHub Copilot? (Select two.)
The correct answer is A. Provide specific success criteria D. Provide links to supporting documentation. Two effective prompt engineering techniques for GitHub Copilot are: (A) Providing specific success criteria - clearly defining what a correct or acceptable output looks like helps Copilot generate more targeted and useful responses; and (D) Providing links to supporting…
Question
What are two techniques that can be used to improve prompts to GitHub Copilot? (Select two.)
Options
- AProvide specific success criteria
- BProvide all information about the utilized files
- CProvide insight on where to get the content from to get a response
- DProvide links to supporting documentation
How the community answered
(21 responses)- A90% (19)
- B5% (1)
- C5% (1)
Explanation
Two effective prompt engineering techniques for GitHub Copilot are: (A) Providing specific success criteria - clearly defining what a correct or acceptable output looks like helps Copilot generate more targeted and useful responses; and (D) Providing links to supporting documentation - referencing relevant docs, specs, or examples gives Copilot additional context to ground its suggestions. Providing all information about utilized files (B) is impractical and can introduce noise rather than improve relevance. Telling Copilot where to source content (C) is vague and not a recognized prompt engineering best practice - Copilot draws on its training data and provided context, not external retrieval.
Topics
Community Discussion
No community discussion yet for this question.