Programming language to interact with large language model
AssigneeSap SE
InventorDavid Kunz
Life of this patent
Estimating the term…
Abstract
In an example, a software package is provided that provides an interface such that when the software is executed, a user is able to provide a natural language prompt using a scripting language that directs the interface to interact with a Large Language Model (LLM), adding contextual information to prompts sent to the LLM. The interface is then also able to extract and evaluate programming code generated by the LLM, so that the generated code may be used immediately in a software package, without the need for user edits and/or copy/pasting.
Claims20
A system comprising:
- at least one hardware processor;
- and
- a computer-readable medium storing instructions that, when executed by the at least one hardware processor, cause the at least one hardware processor to perform operations comprising:
- identifying, by a scripting language interface, a command in software programming code, the command defined in a scripting language interface library;
- converting the command into a user portion of a natural language prompt;
- adding a predefined system portion to the natural language prompt;
- sending the natural language prompt to a Large Language Model (LLM) to generate a first piece of software code in a first programming language based on the natural language prompt;
- validating the first piece of software code using a validation function of the first programming language;
- and
- inserting the first piece of software code into the software programming code.
A method comprising:
- identifying, by a scripting language interface, a command in software programming code, the command defined in a scripting language interface library;
- converting the command into a user portion of a natural language prompt;
- adding a predefined system portion to the natural language prompt;
- sending the natural language prompt to a Large Language Model (LLM) to generate a first piece of software code in a first programming language based on the natural language prompt;
- validating the first piece of software code using a validation function of the first programming language;
- and
- inserting the first piece of software code into the software programming code.
A non-transitory machine-readable medium storing instructions which, when executed by one or more processors, cause the one or more processors to perform operations comprising:
- identifying, by a scripting language interface, a command in software programming code, the command defined in a scripting language interface library;
- converting the command into a user portion of a natural language prompt;
- adding a predefined system portion to the natural language prompt;
- sending the natural language prompt to a Large Language Model (LLM) to generate a first piece of software code in a first programming language based on the natural language prompt;
- validating the first piece of software code using a validation function of the first programming language;
- and
- inserting the first piece of software code into the software programming code.
Dependencies are inferred from the claim text.