Skip to content

add supported models callout w link to relevant pages #8261

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/pages/[platform]/ai/conversation/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ export function getStaticProps(context) {

The conversation route simplifies the creation of AI-powered conversation interfaces in your application. It automatically sets up the necessary AppSync API components and Lambda functions to handle streaming multi-turn interactions with Amazon Bedrock foundation models.

<Callout type="info">
See [Supported Providers and Models](/[platform]/ai/concepts/models/#supported-providers-and-models) for a list of supported AI models.
</Callout>

## Key Components

1. **AppSync API**: Gateway to the conversation route.
Expand Down
4 changes: 4 additions & 0 deletions src/pages/[platform]/ai/generation/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ AI generation routes are a request-response API used to generate structured outp
- generated structured data from unstructured input
- summarization

<Callout type="info">
See [Supported Providers and Models](/[platform]/ai/concepts/models/#supported-providers-and-models) for a list of supported AI models.
</Callout>

Under the hood, a generation route is an AWS AppSync query that ensures the AI model responds with the response type defined for the route.

## Generate Typed Objects
Expand Down
8 changes: 6 additions & 2 deletions src/pages/[platform]/ai/set-up-ai/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Then run the [Amplify sandbox](/[platform]/deploy-and-host/sandbox-environments/
npx ampx sandbox
```

This will provision the cloud resources you define in your amplify folder and watch for updates and redeploy them.
This will provision the cloud resources you define in your amplify folder and watch for updates and redeploy them.


## Build your AI backend
Expand All @@ -77,6 +77,10 @@ To build an AI backend, you define AI 'routes' in your Amplify Data schema. An A
* **Conversation:** A conversation route is a streaming, multi-turn API. Conversations and messages are automatically stored in DynamoDB so users can resume conversations. Examples of this are any chat-based AI experience or conversational UI.
* **Generation:** A single synchronous request-response API. A generation route is just an AppSync Query. Examples of this are: generating alt text for an image, generating structured data from unstructured input, summarization, etc.

<Callout type="info">
See [Supported Providers and Models](/[platform]/ai/concepts/models/#supported-providers-and-models) for a list of supported AI models.
</Callout>

To define AI routes, open your **amplify/data/resource.ts** file and use `a.generation()` and `a.conversation()` in your schema.

```ts title="amplify/data/resources.ts"
Expand Down Expand Up @@ -119,7 +123,7 @@ Conversation routes currently ONLY support owner-based authorization and generat

</Callout>

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.
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

Expand Down
Loading