Microsoft’s immediate engine is a library for serving to builders create prompts for Giant Language Fashions (LLMs).
Immediate engineering, a way for enabling particular conduct out of LLMs like GPT-3 and Codex, includes crafting inputs that coax the mannequin to provide sure sorts of outputs. Additionally, few-shot prompting is a self-discipline that gives examples of inputs and outputs, so the mannequin has a reference for the kind of output desired.
Immediate engineering can embrace formatting a query and passing it to the mannequin, however may require substantial code to govern and replace strings.
Microsoft created this library to codify patterns and practices round immediate engineering, in line with the mission’s GitHub web page.
The library presently helps three distinct engines, one among which is Immediate Engine. The Code Engine creates prompts for Pure Language to Code situations and Chat Engine creates prompts with descriptions and examples.
The mission presents a solution to symbolize prompts as YAML and to load it right into a prompt-engine class.