建立時間: 2023-12-27 | 最後修改時間: 2024-12-29 | 5 分鐘閱讀
當你在使用文檔問答、表單問答的觸發器,或是進行閒聊 (Role chat) 時,如果不知道該如何撰寫 Prompt,可以利用閒聊領域中的內建功能來輔助產生。這個方法特別適用於需要系統預設 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] 的注意事項:[SYS_PROMPT] 產生的 context 不一定總是包含你想要的提示詞,有時可能只是提問,使用時需要留意。單純使用 [SYS_PROMPT] 產生的 Prompt 效果可能有限。若要獲得更精準、更符合需求的 Prompt,建議搭配角色創建功能。
使用 [SYS_PROMPT] 產生 Prompt: 填寫完角色資訊後,再使用 [SYS_PROMPT] 產生 Prompt,效果往往能事半功倍。
(此處可加入截圖:Prompt 進階)
透過以上方法,你可以更有效地利用系統功能,輕鬆創建符合需求的 Prompt,提升使用體驗。
