Create prompt

From UBot Studio
Revision as of 16:17, 30 June 2023 by LillyT (Talk | contribs)

Jump to: navigation, search

$create prompt is a function that formats a prompt and example for use with GPT-3. This function allows you to prepare a formatted input that GPT-3 can understand and respond to.

Parameters

Text: This is the main text or prompt to be formatted.

Example: This is an example input that will follow the main text. It should be constructed in such a way as to guide the GPT-3 model to produce the response you want.

Return Value

A string containing the formatted prompt and example, ready for use with GPT-3.

Usage

$create prompt("Translate the following English sentence to French:", "The cat sat on the mat.")

In this example, the function will format the prompt "Translate the following English sentence to French:" and the example "The cat sat on the mat." to fit the specific input requirements for GPT-3. The function will then return this formatted string.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox