Repository-level augmentation of prompts for code completion
AssigneeMicrosoft Technology Licensing, LLC
InventorsShengyu FU, Xiaoyu LIU, Neelakantan SUNDARESAN, Alexey SVYATKOVSKIY
Life of this patent
Estimating the term…
Loading patent…
AssigneeMicrosoft Technology Licensing, LLC
InventorsShengyu FU, Xiaoyu LIU, Neelakantan SUNDARESAN, Alexey SVYATKOVSKIY
Estimating the term…
A code completion system utilizes a large language model to complete a partially-formed source code snippet of a source code program given a prompt that includes a repository-level context, an extended context and a local context. The repository-level extended context includes a few-shot examples and a focal context. The few-shot examples are code fragments from the repository having a close similarity to the partially-formed source code snippet. The focal context includes method signatures and namespace information of methods of custom classes defined in the repository. The augmentation of the prompt with the various context data enables the model to predict more relevant code completion candidates for custom data without training the model on the custom data.
A system comprising:
A computer-implemented method, comprising:
A computer-implemented method, comprising:
Dependencies are inferred from the claim text.