Amazon Nova Sonic 系统提示最佳实践
本文档适用于 Amazon Nova 版本 1。有关 Amazon Nova 2 语音到语音的提示工程指南,请访问语音对话提示。
在为 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.
|