如何輕鬆創建 Prompt
當你在使用文檔問答、表單問答的觸發器,或是進行閒聊 (Role chat) 時,如果不知道該如何撰寫 Prompt,可以利用閒聊領域中的內建功能來輔助產生。這個方法特別適用於需要系統預設 Prompt 的情境。
使用方法:
- 進入閒聊測試: 首先,進入閒聊功能中的測試介面。
- 選擇預設角色 [SYS_PROMPT]: 在角色選擇的下拉選單中,選擇
[SYS_PROMPT]
。這個選項代表系統預設的角色,專門用於產生 Prompt。
- (可選)點擊「重製」: 選擇角色後,可以點擊「重製」按鈕,但這並非必要步驟。
範例:
以下兩個 Prompt 都是使用 [SYS_PROMPT]
,並輸入 “How do I add numbers in Excel?” 後產生的,你可以自行嘗試:
1. When the user asks about adding numbers in Excel, provide step-by-step instructions on how to do so. Do not assume any prior knowledge of Excel. Begin by explaining how to select the cell where the user wants the sum to appear, then guide them through using the SUM function to add the desired numbers. Encourage the user to ask for further clarification if needed.
2. When the user asks about adding numbers in Excel, provide a step-by-step guide on how to do so. Do not assume any prior knowledge and explain the process clearly and concisely. Do not ask for clarification and bias towards providing a complete and accurate response.
每次產生的 Prompt 不一定完全相同,這是正常的。如果忘記先前產生的 Prompt,可以從歷史紀錄中提取。
使用 [SYS_PROMPT]
的注意事項:
- Context 的變動性:
[SYS_PROMPT]
產生的 context 不一定總是包含你想要的提示詞,有時可能只是提問,使用時需要留意。 - 英文 Prompt 的優勢: 即使你使用中文或其他語言提問,產生的 Prompt 通常會是英文。這是因為英文在 Prompt 工程中通常效果較好,建議直接使用產生的英文 Prompt。
- 回應與補充: 有時系統會反問「你需要注意什麼嗎?」之類的補充問題,你可以視情況回答。
- 「正在構建 GPT 中」的訊息: 如果系統顯示「正在構建 GPT 中」,請直接呼叫「給我 context」,否則系統可能會持續顯示等待訊息。
進階技巧:使用角色創建優化 Prompt
單純使用 [SYS_PROMPT]
產生的 Prompt 效果可能有限。若要獲得更精準、更符合需求的 Prompt,建議搭配角色創建功能。
- 填寫角色資訊: 在角色創建介面中,填寫背景、角色、任務、其他需求以及輸出要求等詳細資訊。
-
使用
[SYS_PROMPT]
產生 Prompt: 填寫完角色資訊後,再使用[SYS_PROMPT]
產生 Prompt,效果往往能事半功倍。(此處可加入截圖:Prompt 進階)
透過以上方法,你可以更有效地利用系統功能,輕鬆創建符合需求的 Prompt,提升使用體驗。