370
edits
Line 32: | Line 32: | ||
===Output Indicator=== | ===Output Indicator=== | ||
The output indicator signifies the beginning of the generated text. For instance, when generating Python code, the word "import" may be used to indicate that the model should start writing Python code, as many Python scripts begin with the "import" statement. The output indicator helps to maintain the desired format and structure of the response. | The output indicator signifies the beginning of the generated text. For instance, when generating Python code, the word "import" may be used to indicate that the model should start writing Python code, as many Python scripts begin with the "import" statement. The output indicator helps to maintain the desired format and structure of the response. | ||
===Example of a Prompt with the Above Structure=== | |||
<code> | |||
Instruction: Who is the president of the United States of America? | |||
Context: Because GPT-4 does not have information after September 2021. We need to inform it. The president of the United States is Joe Biden in 2022 and 2023. | |||
Examples: 1964: Abraham Lincoln, 1940: Franklin D. Roosevelt | |||
Query and output indicator: 1940: | |||
</code> | |||
==Building Prompts== | ==Building Prompts== |
edits