選項 1:提供您自己的資料準備提示 - Amazon Bedrock

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

選項 1:提供您自己的資料準備提示

收集提示並以 .jsonl 檔案格式存放這些提示。JSONL 中的每筆記錄都必須在下列結構中使用 OpenAI 聊天完成格式:

  • 在訊息欄位中,包含使用者、系統或助理角色,其中包含提供給模型的輸入提示。

  • 【選用】 您可以新增分級器 Lambda 用於分級的欄位。

範例格式:

{ "messages": [ {"role": "system", "content": "You are a helpful assistant"}, {"role": "user", "content": "What is machine learning?"} ], "reference_answer": "Machine learning is a subset of artificial intelligence that enables computers to learn and make decisions from data without being explicitly programmed." }