0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【AIP-C01対策】タスク1.6:FMインタラクションのためのプロンプトエンジニアリング戦略とガバナンス を実施する。

Posted at

スキル 1.6.6

FMで高度なタスクを処理する複雑なプロンプトシステムを設計する(Amazon Bedrock Prompt Flowsを使用した順次プロンプトチェーン、モデル応答に基づく条件分岐、再利用可能なプロンプトコンポーネント、統合された前処理と後処理のステップなど)。

Prompt Flows の基本要素(ノード種類と役割)

  • Prompt ノード:実際にモデルへ投げるテキスト(テンプレート変数可)。再利用可能プロンプトを Prompt Management に登録して参照可能。
  • Condition ノード:モデル応答(あるいは外部評価メトリクス)に基づいて経路を分岐させる。たとえば「信頼度が低い → 別モデルへ再問い合わせ or フォールバック処理」。
  • Call / Integration ノード:Lambda、Step Functions、外部 API、Knowledge Bases(Bedrock KB)などを統合するノードで、前処理(OCR, Comprehend等)/後処理(データ保存、外部システム通知)を実行。
  • Iterator / Collector ノード:配列や複数ドキュメントを逐次処理し、集計・合成するパターンに必要。サンプルテンプレートに多数登場。
  • Cache ノード(プロンプトキャッシュ):同一入力に対してキャッシュを利用しレイテンシとコストを削減。キャッシュの有効期限・スコープ設計は重要。
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?