Gpt example

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
'''$create template''' generates a template for GPT-3 to follow when producing text.  
+
'''$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 function is used during conversations with a GPT-3 model to provide a structured pattern for response creation.  
+
  
 
== Parameters ==
 
== Parameters ==
 +
 
 +
'''Prompt:''' This is the initial text or prompt for the GPT-3 model.
  
'''Prompt:''' This parameter refers to the starting point the model will use to generate a response. It should be formulated in a way that guides the GPT-3 model to follow the desired pattern.
+
'''Completion:''' This is the expected completion of the prompt, demonstrating how GPT-3 should respond.
 
+
'''Completion:''' This parameter refers to the expected response or ending part of the text. This is used as an example for the GPT-3 model to understand how to complete a response based on the provided prompt.  
+
  
 
== Return Value ==
 
== Return Value ==
  
This function returns a string, which represents the template for GPT-3 to follow. The template will use both the provided prompt and completion.
+
A string containing the template which includes the prompt and completion.  
  
== Example ==
+
== Usage ==
  
 
<pre>
 
<pre>
$template = $create template("Translate the following english text to french:", "The cat sat on the mat.")
+
$create gpt template("Translate the following English sentence to French:", "The cat sat on the mat.")
 
</pre>
 
</pre>
  
In this script the function creates a template with the prompt "Translate the following english text to french:" and the completion "The cat sat on the mat.". The generated template is then stored in the variable named "template".
+
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.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox