IP Library Granted Patent US 12681702
Granted Patent B1
US 12681702 · App. 19/346,412 · Granted Jul 14, 2026

Overcoming language model token limits when converting executable code

Inventors: Aveek Misra (Bangalore, IN); Amit Tripathy (Bangalore, IN); Akash Rai (Bangalore, IN)
Assignee: Intuit Inc.
G06F8/41G06F40/40
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12681702
App. No.
19/346,412
Granted
Jul 14, 2026
Kind
B1
Abstract

A method of overcoming a token limit of a language model when converting an existing computer executable code to a modified computer executable code. The method includes generating a code segment from the existing computer executable code. The code segment is generated to be within the token limit. The method also includes identifying a prompt that instructs the language model to generate the modified computer executable code. The prompt includes a system command instructing the language model to convert the code segment to the modified computer executable code. The prompt also includes the code segment. The prompt also includes a map defining a mapping between the code segment and the modified computer executable code. The method also includes processing the language model on the prompt to output the modified computer executable code. The method also includes returning the modified computer executable code.

Claims (73)

1 . A method of overcoming a token limit of a language model when converting an existing computer executable code to a modified computer executable code, the method comprising:

generating a code segment from the existing computer executable code, wherein the code segment is generated to be within the token limit, wherein the existing computer executable code comprises an existing extract, transform, and load (ETL) code;

identifying a prompt that instructs the language model to generate the modified computer executable code, the prompt comprising:

a system command instructing the language model to convert the code segment to the modified computer executable code, wherein the modified computer executable code comprises a modified ETL code,

the code segment,

a map defining a mapping between the code segment and the modified computer executable code, and

an updated data source upon which the modified ETL code is to execute, and upon which the existing ETL cannot execute to generate a desired output;

processing the language model on the prompt to output the modified computer executable code; and

returning the modified computer executable code.

2 . The method of claim 1 , wherein generating the code segment comprises:

subdividing the existing computer executable code into a plurality of logical segments of the existing computer executable code, wherein the plurality of logical statements each is within the token limit; and

identifying one of the plurality of logical segments as the code segment.

3 . The method of claim 1 , wherein the map causes the prompt to exceed the token limit, and wherein the method further comprises:

hashing, prior to processing the language model, at least one of the code segment and a data source upon which the code segment executes such that the prompt is within the token limit, wherein hashing generates hashed information; and

replacing, after processing the language model and prior to returning the modified computer executable code, the hashed information with the at least one of the code segment and the data source.

4 . The method of claim 1 , wherein adding an overall updated data source causes the prompt to exceed the token limit, wherein the updated data source comprises a portion of the overall updated data source, and wherein the method further comprises:

extracting the portion of the overall updated data source to generate the updated data source, wherein the portion of the overall updated data source causes the prompt to be within the token limit.

5 . The method of claim 4 , wherein the portion of the overall updated data source is limited to a data call command contained in the code segment.

6 . The method of claim 1 , wherein identifying the prompt includes one of generating the prompt and retrieving the prompt from a data repository.

7 . The method of claim 1 , further comprising:

identifying a second prompt for a second language model, wherein the second prompt instructs the second language model to perform a syntactical verification on the modified computer executable code;

processing the second language model on the modified computer executable code to output a rectified modified computer executable code; and

returning the rectified modified computer executable code.

8 . The method of claim 7 , wherein the second language model is different than the language model.

9 . The method of claim 1 , wherein returning the modified computer executable code comprises at least one of:

storing the modified computer executable code in a data repository;

displaying the modified computer executable code on a display device; and

transmitting the modified computer executable code to an enterprise system programmed to convert instances of an updated data source.

10 . A system comprising:

a computer processor;

a data repository in communication with the computer processor and storing:

an existing computer executable code, wherein the existing computer executable code comprises an existing extract, transform, and load (ETL) code,

a code segment from the existing computer executable code,

a modified computer executable code, wherein the modified computer executable code comprises a modified ETL code,

a map defining a mapping between the code segment and the modified computer executable code,

a prompt that instructs a language model to generate the modified computer executable code, the prompt comprising:

a system command instructing the language model to convert the code segment to the modified computer executable code,

the code segment,

an updated data source upon which the modified ETL code is to execute, and upon which the existing ETL cannot execute to generate a desired output, and

the map;

the language model, executable by the computer processor and comprising a token limit, wherein the code segment is within the token limit; and

a server controller executable by the computer processor to:

generate the code segment,

process the language model on the prompt to output the modified computer executable code, and

return the modified computer executable code.

11 . The system of claim 10 , wherein the server controller is programmed to generate the code segment by:

subdividing the existing computer executable code into a plurality of logical segments of the existing computer executable code, wherein the plurality of logical statements each is within the token limit; and

identifying one of the plurality of logical segments as the code segment.

12 . The system of claim 10 , wherein the map causes the prompt to exceed the token limit, and wherein the server controller is further executable by the computer processor to:

hash, prior to processing the language model, at least one of the code segment and a data source upon which the code segment executes data source such that the prompt is within the token limit, wherein hashing generates hashed information from original information; and

replace, after processing the language model and prior to returning the modified computer executable code, the hashed information with the original information.

13 . The system of claim 10 , wherein adding an overall updated data source causes the prompt to exceed the token limit, wherein the updated data source comprises a portion of the overall updated data source, and wherein the server controller is further executable by the computer processor to:

extract the portion of the overall updated data source to generate the updated data source, wherein the portion of the overall updated data source causes the prompt to be within the token limit.

14 . The system of claim 13 , wherein the portion of the overall updated data source is limited to a data call command contained in the code segment.

15 . The system of claim 10 , wherein the server controller is further executable by the computer processor to identify the prompt by performing one of generating the prompt and retrieving the prompt from the data repository.

16 . The system of claim 10 , further comprising:

a second language model executable by the computer processor,

wherein the server controller is further executable by the computer processor to:

identify a second prompt for a second language model, wherein the second prompt instructs the second language model to perform a syntactical verification on the modified computer executable code;

process the second language model on the modified computer executable code to output a rectified modified computer executable code; and

return the rectified modified computer executable code.

17 . The system of claim 16 , wherein the second language model is different than the language model.

18 . A method of overcoming a token limit of a language model when converting an existing computer executable code to a modified computer executable code, the method comprising:

generating a code segment from the existing computer executable code, wherein the code segment is generated to be within the token;

extracting a portion of an updated data source upon which the modified computer executable code is to execute, and upon which the existing computer executable code cannot execute to generate a desired output, wherein the portion is within the token limit;

hashing at least one of the code segment and the updated data source, wherein hashing generates a hashed data structure, wherein the hashed data structure is within the token limit;

identifying a prompt that instructs the language model to generate the modified computer executable code, the prompt comprising:

a system command instructing the language model to convert the code segment to the modified computer executable code,

the hashed data structure,

wherein a combination of the system command and the hashed data structure is within the token limit;

processing the language model on the prompt to output a provisional computer executable code;

replacing the hashed data structure in the provisional computer executable code with the at least one of the code segment and the updated data source to generate the modified computer executable code; and

returning the modified computer executable code.