Gpt example
From UBot Studio
(Difference between revisions)
Line 1: | Line 1: | ||
− | '''$create template''' | + | '''$create gpt template''' is a function that creates a template for GPT-3 to follow. This template allows you to define a proper structure that GPT-3 can understand and respond to accurately. |
− | + | ||
− | This | + | |
== Parameters == | == Parameters == | ||
+ | |||
+ | '''Prompt:''' This is the initial text or prompt for the GPT-3 model. | ||
− | + | '''Completion:''' This is the expected completion of the prompt, demonstrating how GPT-3 should respond. | |
− | + | ||
− | '''Completion:''' This | + | |
== Return Value == | == Return Value == | ||
− | + | A string containing the template which includes the prompt and completion. | |
− | == | + | == Usage == |
<pre> | <pre> | ||
− | + | $create gpt template("Translate the following English sentence to French:", "The cat sat on the mat.") | |
</pre> | </pre> | ||
− | In this | + | In this example, the function will format a template for GPT-3. The prompt is "Translate the following English sentence to French:" and the completion is "The cat sat on the mat.". The function then returns this formatted string. |
Revision as of 16:18, 30 June 2023
$create gpt template is a function that creates a template for GPT-3 to follow. This template allows you to define a proper structure that GPT-3 can understand and respond to accurately.
Parameters
Prompt: This is the initial text or prompt for the GPT-3 model.
Completion: This is the expected completion of the prompt, demonstrating how GPT-3 should respond.
Return Value
A string containing the template which includes the prompt and completion.
Usage
$create gpt template("Translate the following English sentence to French:", "The cat sat on the mat.")
In this example, the function will format a template for GPT-3. The prompt is "Translate the following English sentence to French:" and the completion is "The cat sat on the mat.". The function then returns this formatted string.