How GitHub Copilot improves contextual understanding with Fill-in-the-Middle and neighboring tabs
Transformer models fast enough to power GitHub Copilot can process only about 6,000 characters at a time, meaning not all of a developer's code can be used as context, and selecting and ordering the right information for the model is the core challenge.
Prior to Fill-in-the-Middle, only code before the cursor was included in the prompt and the suffix was ignored; the first version also considered only the single file being worked on in the IDE.
Neighboring tabs increased user acceptance of suggestions by 5% relative, FIM gave a 10% relative boost in completion acceptance, and research shows developers code up to 55% faster with GitHub Copilot.
Frequently asked questions
What did this team achieve with this AI workflow?
Neighboring tabs increased user acceptance of suggestions by 5% relative, FIM gave a 10% relative boost in completion acceptance, and research shows developers code up to 55% faster with GitHub Copilot.
What tools did this team use?
GitHub Copilot, Codex, vector databases, Microsoft Azure AI-Platform.
What results were reported?
User acceptance increase from neighboring tabs: 5%; completion acceptance boost from FIM: 10%; Developer coding speed: up to 55% faster (source-reported, not independently verified).
What failed first in this deployment?
Prior to Fill-in-the-Middle, only code before the cursor was included in the prompt and the suffix was ignored; the first version also considered only the single file being worked on in the IDE.
How is this workflow AI workflow structured?
Developer triggers suggestion → Prompt assembly via algorithms → Neighboring tabs scan → Fill-in-the-Middle (FIM) → Semantic vector retrieval (experimental) → Real-time suggestion delivery.