From b1ce6eb99db3b90a3d029d6c2fac7b5c9da812e1 Mon Sep 17 00:00:00 2001 From: Danny Banks Date: Fri, 15 Nov 2024 14:58:35 -0800 Subject: [PATCH] Updates to set up ai page --- src/pages/[platform]/ai/set-up-ai/index.mdx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/pages/[platform]/ai/set-up-ai/index.mdx b/src/pages/[platform]/ai/set-up-ai/index.mdx index 5909c2f4bc8..1bd3860dbcd 100644 --- a/src/pages/[platform]/ai/set-up-ai/index.mdx +++ b/src/pages/[platform]/ai/set-up-ai/index.mdx @@ -47,6 +47,12 @@ Before you begin, you will need: You will also need an AWS account that is [setup for local development](/[platform]/start/account-setup) and has access to the Bedrock Foundation Model(s) you want to use. You can request access to Bedrock models by going in to the [Bedrock console and requesting access](https://console.aws.amazon.com/bedrock/home#/modelaccess). + + +Running inference on large language models (LLMs) can be costly. Amazon Bedrock is a serverless service so you only pay for what you use, but be mindful of the costs associated with building generative AI applications. [See Bedrock pricing for more information](https://aws.amazon.com/bedrock/pricing/). + + + ## Create an Amplify backend Run the create amplify script in your project directory: @@ -107,6 +113,12 @@ const schema = a.schema({ }); ``` + + +Conversation routes currently ONLY support owner-based authorization and generation routes ONLY support non-owner-based authorization (`authenticated`, `guest`, `group`, `publicApiKey`). + + + If you have the Amplify sandbox running, when you save this file it will pick up the changes and redeploy the necessary resources for you. ## Connect your frontend @@ -180,6 +192,7 @@ Call `Amplify.configure()` with the **amplify_outputs.json** file where the Reac ```tsx title="src/main.tsx" import { Amplify } from 'aws-amplify'; +import '@aws-amplify/ui-react/styles.css'; import outputs from '../amplify_outputs.json'; Amplify.configure(outputs);