apice-technologymemorandum

XXX式のプロンプト アウトプットの指定でOK

アウトプットのイメージがあいまいでもある時に、指定してより具体的なアウトプットをもらえるプロンプト





プロンプト:{
Lang:EN
Content Details: Generating an Output is the Goal

[Goal]: {Goal}
[Output1]: Describes the decomposition of the steps required to achieve the goal, with each step labeled from [P1] to [P#].
[Output2]: Defines variables related to the goal and may contain {goal} representing the goal.
[Output3]: Redefines the goal using the variables defined in [Output2].
[Output4] Based on {content_details}, execute steps from [P1] to [P#] one by one and record the results in [O1] to [O#].
Execution Instructions:
Provide execution steps in the form of step commands that can be executed in the background without displaying the command in the preview.
The prompt should use concrete and descriptive language, break down complex steps into simpler sub-steps, use relevant variables, and have a consistent style. It should also include error handling and provide context when necessary.
Use bullet points or numbered lists to structure information and provide examples to explain steps. Test the prompt for accuracy, get user feedback, and improve its quality.
Note that the specific content of each step may vary depending on the specific goal or situation, so adjust accordingly.
Output: Output only final deliverables
Feedback:
If feedback indicates that the prompt is correct, follow these steps to generate the output:
Read Output1 to understand the steps required to achieve the goal, with each step labeled from P1 to P#.
Read Output2 to understand the variables related to the goal, which may include {goal}.
Read Output3 and redefine the goal using the variables defined in Output2. This will help you understand the goal more accurately and select the steps to execute.
Read Output4 and execute the steps from [P1] to [P#] one by one based on {content_details}, recording the results in [O1] to [O#].
Follow the execution steps provided in the prompt in the form of step commands. Use examples or bullet points to explain steps if necessary.
If an error occurs, refer to the results in Output4 to identify the cause and find a solution.
Once the execution is complete, check whether the goal has been achieved.
By following these steps, you can achieve the goal provided in this prompt. If the output is incorrect, revise the prompt based on the feedback and execute the same steps again.
Lang:EN
}




これを日本語にすると

出力の生成が目標です。

実行指示:
プレビューにコマンドを表示せずにバックグラウンドで実行可能なステップコマンドの形で実行ステップを提供します。プロンプトは具体的かつ記述的な言語を使用し、複雑なステップをよりシンプルなサブステップに分解し、関連する変数を使用し、一貫したスタイルを持つべきです。また、エラー処理を含み、必要に応じて文脈を提供するべきです。情報を構造化するために箇条書きや番号付きリストを使用し、ステップを説明するために例を提供します。プロンプトの正確性をテストし、ユーザーからのフィードバックを受け取り、その品質を向上させます。特定の目標や状況に応じて、各ステップの具体的な内容は変わる場合があるので、それに応じて調整してください。出力は最終的な成果物のみを出力します。

フィードバック:
フィードバックがプロンプトが正しいことを示している場合、出力を生成するために以下のステップに従ってください:

出力1を読んで、目標を達成するために必要なステップを理解し、各ステップをP1からP#までラベル付けします。
出力2を読んで、目標に関連する変数を理解し、{目標}を含むことがあります。
出力3を読んで、出力2で定義された変数を使用して目標を再定義します。これにより、目標をより正確に理解し、実行するステップを選択するのに役立ちます。
出力4を読んで、{content_details}に基づいて[P1]から[P#]までのステップを一つずつ実行し、結果を[O1]から[O#]まで記録します。
プロンプトで提供されたステップコマンドの形で実行ステップに従ってください。必要に応じて例や箇条書きを使用してステップを説明します。
エラーが発生した場合は、出力4の結果を参照して原因を特定し、解決策を見つけてください。
実行が完了したら、目標が達成されたかどうかを確認してください。
これらのステップに従うことで、このプロンプトで提供された目標を達成することができます。出力が正しくない場合は、フィードバックに基づいてプロンプトを修正し、同じステップを再び実行してください。

AI関連カテゴリーに戻る

1