Create prompt
From UBot Studio
$create prompt formats a prompt and an example for use with GPT-3.
This function helps to structure the input and example segment for a GPT-3 model in the right format.
Parameters
Text: This parameter should contain the prompt that needs to be formatted for use with GPT-3.
Example: This represents the example that needs to accompany the prompt.
Return Value
This function returns a string, which is the formatted prompt and example for use with GPT-3.
Example
$prompt = $create prompt("Translate the following English text to French:", "The cat sat on the mat")
In this script, the prompt "Translate the following English text to French:" and the example "The cat sat on the mat" are formatted for use with GPT-3. The returned formatted string is then stored in the variable named "prompt".