Create prompt

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
'''$create prompt''' formats a prompt and an example for use with GPT-3.
+
'''$create prompt''' is a function that formats a prompt and example for use with GPT-3. This function allows you to prepare a formatted input that GPT-3 can understand and respond to.
 
+
This function helps to structure the input and example segment for a GPT-3 model in the right format.
+
  
 
== Parameters ==
 
== Parameters ==
  
'''Text:''' This parameter should contain the prompt that needs to be formatted for use with GPT-3.
+
'''Text:''' This is the main text or prompt to be formatted.  
  
'''Example:''' This represents the example that needs to accompany the prompt.
+
'''Example:''' This is an example input that will follow the main text. It should be constructed in such a way as to guide the GPT-3 model to produce the response you want.
  
 
== Return Value ==
 
== Return Value ==
  
This function returns a string, which is the formatted prompt and example for use with GPT-3.
+
A string containing the formatted prompt and example, ready for use with GPT-3.  
  
== Example ==
+
== Usage ==
  
 
<pre>
 
<pre>
$prompt = $create prompt("Translate the following English text to French:", "The cat sat on the mat")
+
$create prompt("Translate the following English sentence to French:", "The cat sat on the mat.")
 
</pre>
 
</pre>
  
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".
+
In this example, the function will format the prompt "Translate the following English sentence to French:" and the example "The cat sat on the mat." to fit the specific input requirements for GPT-3. The function will then return this formatted string.

Revision as of 16:17, 30 June 2023

$create prompt is a function that formats a prompt and example for use with GPT-3. This function allows you to prepare a formatted input that GPT-3 can understand and respond to.

Parameters

Text: This is the main text or prompt to be formatted.

Example: This is an example input that will follow the main text. It should be constructed in such a way as to guide the GPT-3 model to produce the response you want.

Return Value

A string containing the formatted prompt and example, ready for use with GPT-3.

Usage

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

In this example, the function will format the prompt "Translate the following English sentence to French:" and the example "The cat sat on the mat." to fit the specific input requirements for GPT-3. The function will then return this formatted string.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox