Context injection for artificial intelligence (ai) coding assistants

US2026072655A1 · US · A1

Patent metadata
FieldValue
Publication numberUS-2026072655-A1
Application numberUS-202519265860-A
CountryUS
Kind codeA1
Filing dateJul 10, 2025
Priority dateSep 6, 2024
Publication dateMar 12, 2026
Grant date

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

A method includes obtaining a user input for an artificial intelligence (AI) coding assistant, where the user input requests generation, modification, or analysis of code. The method also includes generating a prompt for the AI coding assistant using the user input and additional data relevant to the user input. The method further includes providing the prompt to the AI coding assistant. The additional data is included in the prompt and informs the AI coding assistant of a context associated with the user input. The additional data customizes the AI coding assistant to generate code in a coding language on which the AI coding assistant is not trained by providing curated examples of coding language syntax designed for consumption by the AI coding assistant.

First claim

Opening claim text (preview).

1 . A method comprising: obtaining, using at least one processor of an electronic device, a user input for an artificial intelligence (AI) coding assistant, the user input requesting generation, modification, or analysis of code; generating, using the at least one processor, a prompt for the AI coding assistant using the user input and additional data comprising multiple guide files that are relevant to the user input; and providing, using the at least one processor, the prompt to the AI coding assistant; wherein the additional data is included in the prompt and informs the AI coding assistant of a context associated with the user input, the additional data customizing the AI coding assistant to generate code in a coding language on which the AI coding assistant is not trained by providing curated examples of coding language syntax designed for consumption by the AI coding assistant; and wherein the multiple guide files are associated with a hierarchy in which (i) at least one primary guide file introduces more general concepts of a specified coding language and (ii) one or more in-depth guide files introduce more complex concepts of the specified coding language. 2 . The method of claim 1 , further comprising: generating the additional data relevant to the user input using a trained machine learning model, the additional data comprising code examples that fit within a context length of the AI coding assistant. 3 . (canceled) 4 . The method of claim 1 , wherein the additional data comprises text and code snippets. 5 . The method of claim 1 , wherein the additional data explicitly instructs the AI coding assistant to override a concept supported by one or more other coding languages in order to implement the concept in a specified coding language in a different manner. 6 . The method of claim 1 , wherein: the AI coding assistant has a semantic understanding of a specified concept; and the additional data allows the AI coding assistant to use the semantic understanding with the coding language on which the AI coding assistant is not trained to produce code relevant to the specified concept. 7 . The method of claim 6 , wherein the additional data allows the AI coding assistant to use a semantic understanding of a class associated with a coding language on which the AI coding assistant is trained with the coding language on which the AI coding assistant is not trained. 8 . The method of claim 2 , wherein generating the additional data relevant to the user input comprises: identifying an intent associated with the user input; identifying one or more data sources based on the intent; obtaining data relevant to the user input from the one or more data sources; ranking and filtering the data obtained from the one or more data sources; and limiting a length of the ranked and filtered data based on a context length limit of the AI coding assistant. 9 . An apparatus comprising: at least one processor configured to: obtain a user input for an artificial intelligence (AI) coding assistant, the user input requesting generation, modification, or analysis of code; generate a prompt for the AI coding assistant using the user input and additional data comprising multiple guide files relevant to the user input; and provide the prompt to the AI coding assistant; wherein the additional data is included in the prompt and is configured to inform the AI coding assistant of a context associated with the user input, the additional data configured to customize the AI coding assistant to generate code in a coding language on which the AI coding assistant is not trained by providing curated examples of coding language syntax designed for consumption by the AI coding assistant; and wherein the multiple guide files are associated with a hierarchy in which (i) at least one primary guide file introduces more general concepts of a specified coding language and (ii) one or more in-depth guide files introduce more complex concepts of the specified coding language. 10 . The apparatus of claim 9 , wherein the at least one processor is further configured to generate the additional data relevant to the user input using a trained machine learning model, the additional data comprising code examples that fit within a context length of the AI coding assistant. 11 . (canceled) 12 . The apparatus of claim 9 , wherein the additional data explicitly instructs the AI coding assistant to override a concept supported by one or more other coding languages in order to implement the concept in a specified coding language in a different manner. 13 . The apparatus of claim 9 , wherein: the AI coding assistant has a semantic understanding of a specified concept; and the additional data allows the AI coding assistant to use the semantic understanding with the coding language on which the AI coding assistant is not trained to produce code relevant to the specified concept. 14 . The apparatus of claim 13 , wherein the additional data allows the AI coding assistant to use a semantic understanding of a class associated with a coding language on which the AI coding assistant is trained with the coding language on which the AI coding assistant is not trained. 15 . The apparatus of claim 10 , wherein, to generate the additional data relevant to the user input, the at least one processor is configured to: identify an intent associated with the user input; identify one or more data sources based on the intent; obtain data relevant to the user input from the one or more data sources; rank and filter the data obtained from the one or more data sources; and limit a length of the ranked and filtered data based on a context length limit of the AI coding assistant. 16 . A non-transitory computer readable medium containing instructions that when executed cause at least one processor to: obtain a user input for an artificial intelligence (AI) coding assistant, the user input requesting generation, modification, or analysis of code; generate a prompt for the AI coding assistant using the user input and additional data comprising multiple guide files relevant to the user input; and provide the prompt to the AI coding assistant; wherein the additional data is included in the prompt and is configured to inform the AI coding assistant of a context associated with the user input, the additional data configured to customize the AI coding assistant to generate code in a coding language on which the AI coding assistant is not trained by providing curated examples of coding language syntax designed for consumption by the AI coding assistant; and wherein the multiple guide files are associated with a hierarchy in which (i) at least one primary guide file introduces more general concepts of a specified coding language and (ii) one or more in-depth guide files introduce more complex concepts of the specified coding language. 17 . The non-transitory computer readable medium of claim 16 , wherein the instructions when executed further cause the at least one processor to generate the additional data relevant to the user input using a trained machine learning model, the additional data comprising code examples that fit within a context length of the AI coding assistant. 18 . (canceled) 19 . The non-transitory computer readable medium of claim 16 , wherein: the AI coding assistant has a semantic understanding of a specified concept; and the additional data allows the AI coding assistant to use the semantic understanding with the coding language on which the AI codin

Assignees

Inventors

Classifications

  • Intelligent editors · CPC title

  • G06F8/35Primary

    model driven · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US2026072655A1 cover?
A method includes obtaining a user input for an artificial intelligence (AI) coding assistant, where the user input requests generation, modification, or analysis of code. The method also includes generating a prompt for the AI coding assistant using the user input and additional data relevant to the user input. The method further includes providing the prompt to the AI coding assistant. The ad…
Who is the assignee on this patent?
Goldman Sachs & Co Llc
What technology area does this patent fall under?
Primary CPC classification G06F8/35. Mapped technology areas include Physics.
When was this patent published?
Publication date Thu Mar 12 2026 00:00:00 GMT+0000 (Coordinated Universal Time) (A1). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 8 related publications on this page (citations in our corpus or others sharing the same primary CPC).