4 ms·
It doesn't, because that's not how it works. Copilot doesn't recognize what you're trying to do and then paste a code sample from a repo it has in its index. J
by thamer 4y ago
It doesn't, because that's not how it works.
Copilot doesn't recognize what you're trying to do and then paste a code sample from a repo it has in its index. Just like DALL·E 2 doesn't produce images that say "I picked these pixels from this image and this part from this other one and these colors from this third one". When a model is trained, it's effectively a set of hundreds of millions of numbers that when combined in just the right way can produce a specific output. In my experience the vast majority of the time Copilot doesn't write code that already exists. It actually uses the variables you declared, the functions that already exist in your code base, etc.
It's not an index of best matches from GitHub for what you're trying to do.