Elements of a Prompt
提示的元素
As we cover more and more examples and applications that are possible with prompt engineering, you will notice that there are certain elements that make up a prompt.
隨著我們涵蓋越來越多的例子和應用,您會注意到構成提示的某些元素。
A prompt can contain any of the following components:
提示符可以包含以下任何元件:
Instruction - a specific task or instruction you want the model to perform
指示 - 您希望模型執行的特定任務或指令
Context - can involve external information or additional context that can steer the model to better responses
背景 - 可能涉及外部資訊或附加上下文,可以引導模型做出更好的響應。
Input Data - is the input or question that we are interested to find a response for
輸入資料 - 是我們有興趣找到回答的輸入或問題
Output Indicator - indicates the type or format of the output.
輸出指標 - 表示輸出的型別或格式。
Not all the components are required for a prompt and the format depends on the task at hand. We will touch on more concrete examples in upcoming guides.
不是所有的元件都需要用於提示,格式取決於手頭的任務。我們將在即將推出的指南中提供更具體的例子。