本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
Amazon Nova Sonic 系統提示詞最佳實務
本文件適用於 Amazon Nova 第 1 版。如需 Amazon Nova 2 Speech-to-Speech提示工程指南,請造訪語音對話提示。
為 Amazon Nova Sonic 設計系統提示詞時,您應該了解,語音型互動不同於文字型互動。雖然許多提示 Amazon Nova 理解模型的最佳實務可套用至 Amazon Nova Sonic,但它們必須調適口語對話的獨特動態。例如,使用者敲入的回應是可靠的輸入來源。不過,對應的語音互動在上下文上可能受到限制,並且在繼續對話之前需要透過來回互動要求更多資訊。此外,滿足長格式輸出需求的提示詞可能會因爲使用者必須花時間聆聽以找到正確答案,導致使用者體驗不佳。
如 Amazon Nova 提示指引中所述,提示詞工程會將輸入最佳化,以改善模型輸出品質。對於 Amazon Nova Sonic,這些原則必須針對對話語音模式量身打造。
撰寫系統提示詞時,請考慮下列詳細資訊:
清晰度和精準度
文字中清晰的指示可能需要針對語音上下文進行重述。確保您的提示詞會在採取行動前透過工具尋求確認理解,以防止錯誤發生。
| Task |
Traditional prompt |
Speech-optimized prompt |
首先,驗證使用者的身分資訊和預約號碼 |
Verify the user's identity by requesting their username, email address, and reservation number. Validate that the reservation number follows the format XXX-YYYYY.
|
When asking for verification, request one piece of information at a time. First ask for their name, then wait for their response and confirm it. Next, ask for their email and repeat it back for verification. Finally, ask for their booking code, listening for the three parts separated by dashes (XXX-YYYYY). After collecting the booking code, read it back character by character to confirm accuracy before proceeding.
|
對話流程
相較於正式教學結構,優先考慮自然對話流程。
| Task |
Traditional prompt |
Speech-optimized prompt |
Wi-Fi 連線問題疑難排解 |
Provide step-by-step instructions for troubleshooting Wi-Fi connectivity issues. Include diagnostic steps, common error codes, and resolutions for each potential problem.
|
Guide the customer through Wi-Fi troubleshooting as a conversation. Start by asking what they've already tried, then suggest one simple step at a time. After each step, pause to check if it is clear before moving on to the next solution. Use everyday language instead of technical terms.
|
記憶體限制條件
請記住,與文字相比,口語互動具有不同的記憶動態。例如,接聽程式無法像在説出來時那樣輕鬆地「回頭參考」先前的文字。
| Task |
Traditional prompt |
Speech-optimized prompt |
說明傳回政策 |
Reference sections 1.3, 2.7, and 4.2 from the attached document when answering the user's questions about regulatory compliance. Include specific paragraph numbers in your citations.
|
When explaining our return policy, focus on one key point at a time. First cover the 30-day window, then shipping requirements, and finally condition standards. Summarize all three points together at the end to reinforce the main requirements without overwhelming the customer.
|