View a markdown version of this page

Amazon Nova Sonic システムプロンプトのベストプラクティス - Amazon Nova

Amazon Nova Sonic システムプロンプトのベストプラクティス

注記

このドキュメントは Amazon Nova バージョン 1 を対象としています。Amazon Nova 2 Speech-to-Speech プロンプトエンジニアリングガイドについては、「音声会話プロンプト」(Voice conversation prompt) を参照してください。

Amazon Nova Sonic のシステムプロンプトを作成する際、音声ベースのやり取りはテキストベースのインタラクションとは異なることを理解する必要があります。Amazon Nova の理解モデルのプロンプトに関するベストプラクティスの多くは Amazon Nova Sonic に適用されますが、口頭による会話の固有のダイナミクスに適応する必要があります。例えば、ユーザーの入力されたレスポンスは、信頼性の高い入力のソースです。ただし、対応する音声のやり取りはコンテキストで制限され、会話を進める前に詳細を尋ねるために相互的なインタラクションが必要になる場合があります。さらに、長い形式の出力に対応するプロンプトは、正しい回答を見つけるためにリスニングにかかる時間により、ユーザーにとって不快な体験をもたらす可能性があります。

Amazon Nova のプロンプトガイダンスで説明されているように、プロンプトエンジニアリングは入力を最適化してモデルの出力品質を向上させます。Amazon Nova Sonic の場合、これらの原則は会話型音声パターンにカスタマイズする必要があります。

システムプロンプトを記述する際、次の詳細を考慮してください。

明確性と精度

テキストで明確な指示は、音声コンテキスト用に再フォーマットが必要な場合があります。誤動作を防ぐため、プロンプトが理解の確認を求めてからツールでアクションを実行してください。

Task Traditional prompt Speech-optimized prompt

まず、ユーザーの ID 情報および予約番号を確認します。

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.