Create prompt
From UBot Studio
(Difference between revisions)
Line 1: | Line 1: | ||
− | '''$create prompt''' formats a prompt and | + | '''$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 | + | |
== Parameters == | == Parameters == | ||
− | '''Text:''' This | + | '''Text:''' This is the main text or prompt to be formatted. |
− | '''Example:''' This | + | '''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 == | ||
− | + | A string containing the formatted prompt and example, ready for use with GPT-3. | |
− | == | + | == Usage == |
<pre> | <pre> | ||
− | + | $create prompt("Translate the following English sentence to French:", "The cat sat on the mat.") | |
</pre> | </pre> | ||
− | In this | + | 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.