Amazon SageMaker AI Canvas
Amazon SageMaker AI Canvas helps you use machine learning to generate predictions without needing to write any code. It provides a no-code visual interface that empowers you to prepare data, build, and deploy ML models, streamlining the end-to-end ML lifecycle in a unified environment. The complexities of data preparation, model development, bias detection, explainability, and monitoring are abstracted away behind an intuitive interface. Users don't need to be SageMaker AI or machine learning operations (MLOps) experts to develop, operationalize, and monitor models with SageMaker AI Canvas.
With SageMaker AI Canvas, the RAG functionality is provided through a no-code, document querying feature. You can enrich the chat experience in SageMaker AI Canvas by using an Amazon Kendra index as the underlying enterprise search. For more information, see Extract information from documents with document querying.
Connecting SageMaker AI Canvas to the Amazon Kendra index requires a one-time setup. As part of the domain configuration, a cloud administrator can choose one or more Kendra indexes that the user can query when interacting with SageMaker Canvas. For instructions about how to enable the document querying feature, see Getting started with using Amazon SageMaker AI Canvas.
SageMaker AI Canvas manages the underlying communication between Amazon Kendra and the selected foundation model. For more information about the foundation models that SageMaker AI Canvas supports, see Generative AI foundation models in SageMaker AI Canvas. The following diagram shows how the document querying feature works after the cloud administrator has connected SageMaker AI Canvas to an Amazon Kendra index.

The diagram shows the following workflow:
-
The user starts a new chat in SageMaker AI Canvas, turns on Query documents, selects the target index, and then submits a question.
-
SageMaker AI Canvas uses the query to search the Amazon Kendra index for relevant data.
-
SageMaker AI Canvas retrieves the data and its sources from the Amazon Kendra index.
-
SageMaker AI Canvas updates the prompt to include the retrieved context from the Amazon Kendra index and submits the prompt to the foundation model.
-
The foundation model uses the original question and the retrieved context to generate an answer.
-
SageMaker AI Canvas provides the generated answer to the user. It includes references to the data sources, such as documents, that were used to generate the response.