

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

# RAG 工作流程的產生器
<a name="rag-custom-generators"></a>

[大型語言模型 LLMs)](https://aws.amazon.com/what-is/large-language-model/) 是針對大量資料預先訓練的非常大型[深度學習](https://aws.amazon.com/what-is/deep-learning/)模型。它們非常靈活。LLMs可以執行各種任務，例如回答問題、摘要文件、翻譯語言和完成句子。他們可能會中斷內容建立，以及人們使用搜尋引擎和虛擬助理的方式。雖然不完美，但 LLMs展現了根據相對較小的提示或輸入數量進行預測的卓越能力。

LLMs是 RAG 解決方案的關鍵元件。對於自訂 RAG 架構，有兩個 AWS 服務 做為主要選項：
+ [Amazon Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-bedrock.html) 是一項全受管服務，可讓您透過統一 API 使用來自領導 AI 公司和 Amazon 的 LLMs。
+ [Amazon SageMaker AI JumpStart](https://docs.aws.amazon.com/sagemaker/latest/dg/studio-jumpstart.html) 是一種 ML 中樞，提供基礎模型、內建演算法和預先建置的 ML 解決方案。使用 SageMaker AI JumpStart，您可以存取預先訓練的模型，包括基礎模型。您也可以使用自己的資料來微調預先訓練的模型。

## Amazon Bedrock
<a name="rag-custom-generators-bedrock"></a>

Amazon Bedrock 提供來自 Anthropic、Stability AI、、MetaCohere、AI21 Labs、 Mistral AI和 Amazon 的業界領先模型。如需完整清單，請參閱 [Amazon Bedrock 中支援的基礎模型](https://docs.aws.amazon.com/bedrock/latest/userguide/models-supported.html)。Amazon Bedrock 也可讓您使用自己的資料自訂模型。

您可以[評估模型效能](https://docs.aws.amazon.com/bedrock/latest/userguide/evaluation.html)，以判斷哪些最適合您的 RAG 使用案例。您可以測試最新的模型，也可以測試哪些功能可提供最佳結果和最佳價格。Anthropic Claude Sonnet 模型是 RAG 應用程式常見的選擇，因為它擅長各種任務，並提供高度的可靠性和可預測性。

## SageMaker AI JumpStart
<a name="rag-custom-sm-jumpstart"></a>

SageMaker AI JumpStart 為各種問題類型提供預先訓練的開放原始碼模型。您可以在部署之前逐步訓練和微調這些模型。您可以透過 Amazon SageMaker AI Studio 中的 SageMaker AI JumpStart 登陸頁面或使用 [SageMaker AI Python SDK](https://docs.aws.amazon.com/sagemaker/latest/dg/jumpstart-foundation-models-use-python-sdk.html)，存取預先訓練的模型、解決方案範本和範例。 [Amazon SageMaker ](https://docs.aws.amazon.com/sagemaker/latest/dg/studio-updated.html) 

SageMaker AI JumpStart 為內容撰寫、程式碼產生、問題回答、複製、摘要、分類、資訊擷取等使用案例提供state-of-the-art基礎模型。使用 JumpStart 基礎模型建置您自己的生成式 AI 解決方案，並將自訂解決方案與其他 SageMaker AI 功能整合。如需詳細資訊，請參閱 [Amazon SageMaker AI JumpStart 入門](https://aws.amazon.com/sagemaker/jumpstart/getting-started/)。

SageMaker AI JumpStart 加入並維護可公開取得的基礎模型，供您存取、自訂和整合到您的 ML 生命週期。如需詳細資訊，請參閱[公開提供的基礎模型](https://docs.aws.amazon.com/sagemaker/latest/dg/jumpstart-foundation-models-latest.html#jumpstart-foundation-models-latest-publicly-available)。SageMaker AI JumpStart 也包含第三方供應商的專屬基礎模型。如需詳細資訊，請參閱 [專屬基礎模型](https://docs.aws.amazon.com/sagemaker/latest/dg/jumpstart-foundation-models-latest.html#jumpstart-foundation-models-latest-proprietary)。