Create prompt

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
(Created page with "'''$create prompt''' is a function used to format a prompt and an example for use with GPT-3. It accepts two parameters, "text" and "example", to form a formatted string use...")

Revision as of 16:10, 30 June 2023

$create prompt is a function used to format a prompt and an example for use with GPT-3.

It accepts two parameters, "text" and "example", to form a formatted string used as a prompt for GPT-3.

Parameters

Text: The main prompt text that you want the model to respond to.

Example: The example text that provides further instruction or context to the model.

Returns

A string, formatted using the input text and example suitable for use as a prompt with GPT-3.

Example

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

In this example, the function creates a new prompt for GPT-3 to translate the phrase "The cat sat on the mat" from English to French. The created prompt is stored in the variable '$prompt'.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox