Create prompt

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

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

$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