Skip to content

How to maximise the Copilot's context awareness? #51323

Discussion options

You must be logged in to vote

Hi @nikitakunevich ,

Copilot draws context from the code editor. It does not need access to your repositories. The code context sent to the model is commonly called a "prompt". We're constantly experimenting with new ways to create prompts that will tease even higher-quality suggestions out of the model.

As one proof point, Copilot had a suggestion acceptance rate of ~20% when we first launched the technical preview 18 months ago. Today, we're at 35% based largely on improvements to our prompts. We've simply gotten better at telling the model what kind of code the developer likely wants.

By way of example, one technique we use today is to look for relevant code in neighbouring files (i.e.…

Replies: 4 comments 8 replies

Comment options

You must be logged in to vote
8 replies
@mfp22
Comment options

@oxygenecore
Comment options

@Ficik
Comment options

@happyhardik
Comment options

@umapriyadarsi-j-3266
Comment options

Answer selected by nikitakunevich
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Copilot Code accurately and faster with your AI powered pair-programmer. Question Ask and answer questions about GitHub features and usage