Skip to content

Commit d41febe

Browse files
Update docs to use Claude 3.5 Haiku (#8124)
Co-authored-by: josef <[email protected]>
1 parent 6e71ea0 commit d41febe

File tree

8 files changed

+28
-23
lines changed

8 files changed

+28
-23
lines changed

src/pages/[platform]/ai/concepts/inference-configuration/index.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ All generative AI routes in Amplify accept inference configuration as optional p
5050

5151
```ts
5252
a.generation({
53-
aiModel: a.ai.model("Claude 3 Haiku"),
53+
aiModel: a.ai.model("Claude 3.5 Haiku"),
5454
systemPrompt: `You are a helpful assistant`,
5555
inferenceConfiguration: {
5656
temperature: 0.2,

src/pages/[platform]/ai/concepts/models/index.mdx

+12-7
Original file line numberDiff line numberDiff line change
@@ -58,27 +58,32 @@ Always refer to [Bedrock pricing](https://aws.amazon.com/bedrock/pricing/) for t
5858
The Amplify AI Kit uses Bedrock's [Converse API](https://docs.aws.amazon.com/bedrock/latest/userguide/conversation-inference.html) to leverage a unified API across models. Most models have different structures to how they best work with input and how they format their output. For example, ...
5959

6060
### AI21 Labs
61-
* [Jamba 1.5 Large](https://aws.amazon.com/blogs/aws/jamba-1-5-family-of-models-by-ai21-labs-is-now-available-in-amazon-bedrock/)
62-
* [Jamba 1.5 Mini](https://aws.amazon.com/blogs/aws/jamba-1-5-family-of-models-by-ai21-labs-is-now-available-in-amazon-bedrock/)
63-
61+
* Jamba 1.5 Large
62+
* Jamba 1.5 Mini
63+
[Bedrock documentation about AI21 models](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters-ai21.html)
6464

6565
### Anthropic
6666
* Claude 3 Haiku
67+
* Claude 3.5 Haiku
6768
* Claude 3 Sonnet
6869
* Claude 3 Opus
6970
* Claude 3.5 Sonnet
70-
https://docs.anthropic.com/en/docs/about-claude/models
71+
* Claude 3.5 Sonnet v2
72+
[Bedrock documentation about Anthropic models](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters-claude.html)
7173

7274
### Cohere
7375
* Command R
7476
* Command R+
77+
[Bedrock documentation about Cohere models](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters-cohere.html)
7578

76-
### Meta
79+
### Meta Llama
7780
* Llama 3.1
81+
[Bedrock documentation about Meta Llama models](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters-meta.html)
7882

79-
### Mistral
83+
### Mistral AI
8084
* Large
8185
* Large 2
86+
[Bedrock documentation about Mistral AI models](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters-mistral.html)
8287

8388

8489
The Amplify AI Kit makes use of ["tools"](/[platform]/ai/concepts/tools) for both generation and conversation routes. [The models it supports must support tool use in the Converse API](https://docs.aws.amazon.com/bedrock/latest/userguide/conversation-inference-supported-models-features.html).
@@ -115,7 +120,7 @@ Using the Amplify AI Kit you can easily use different models for different funct
115120
```ts
116121
const schema = a.schema({
117122
summarizer: a.generation({
118-
aiModel: a.ai.model("Claude 3 Haiku")
123+
aiModel: a.ai.model("Claude 3.5 Haiku")
119124
})
120125
})
121126
```

src/pages/[platform]/ai/concepts/prompting/index.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ All AI routes in the Amplify AI kit require a system prompt. This will be used i
5252

5353
```ts
5454
reviewSummarizer: a.generation({
55-
aiModel: a.ai.model("Claude 3.5 Sonnet"),
55+
aiModel: a.ai.model("Claude 3.5 Haiku"),
5656
systemPrompt: `
5757
You are a helpful assistant that summarizes reviews
5858
for an ecommerce site.

src/pages/[platform]/ai/conversation/knowledge-base/index.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const schema = a.schema({
6262
// highlight-end
6363

6464
chat: a.conversation({
65-
aiModel: a.ai.model("Claude 3.5 Sonnet"),
65+
aiModel: a.ai.model("Claude 3.5 Haiku"),
6666
systemPrompt: `You are a helpful assistant.`,
6767
// highlight-start
6868
tools: [

src/pages/[platform]/ai/conversation/tools/index.mdx

+4-4
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const schema = a.schema({
7272
.authorization(allow => allow.owner()),
7373

7474
chat: a.conversation({
75-
aiModel: a.ai.model('Claude 3 Haiku'),
75+
aiModel: a.ai.model('Claude 3.5 Haiku'),
7676
systemPrompt: 'Hello, world!',
7777
tools: [
7878
a.ai.dataTool({
@@ -126,7 +126,7 @@ const schema = a.schema({
126126
.authorization((allow) => allow.authenticated()),
127127

128128
chat: a.conversation({
129-
aiModel: a.ai.model('Claude 3 Haiku'),
129+
aiModel: a.ai.model('Claude 3.5 Haiku'),
130130
systemPrompt: 'You are a helpful assistant',
131131
tools: [
132132
a.ai.dataTool({
@@ -235,13 +235,13 @@ export const chatHandler = defineConversationHandlerFunction({
235235
entry: './chatHandler.ts',
236236
name: 'customChatHandler',
237237
models: [
238-
{ modelId: a.ai.model("Claude 3 Haiku") }
238+
{ modelId: a.ai.model("Claude 3.5 Haiku") }
239239
]
240240
});
241241

242242
const schema = a.schema({
243243
chat: a.conversation({
244-
aiModel: a.ai.model('Claude 3 Haiku'),
244+
aiModel: a.ai.model('Claude 3.5 Haiku'),
245245
systemPrompt: "You are a helpful assistant",
246246
handler: chatHandler,
247247
})

src/pages/[platform]/ai/generation/data-extraction/index.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const schema = a.schema({
4242
}),
4343

4444
extractProductDetails: a.generation({
45-
aiModel: a.ai.model('Claude 3 Haiku'),
45+
aiModel: a.ai.model('Claude 3.5 Haiku'),
4646
systemPrompt: 'Extract the property details from the text provided',
4747
})
4848
.arguments({

src/pages/[platform]/ai/generation/index.mdx

+6-6
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Under the hood, a generation route is an AWS AppSync query that ensures the AI m
4141
```ts title="Schema Definition"
4242
const schema = a.schema({
4343
generateRecipe: a.generation({
44-
aiModel: a.ai.model('Claude 3 Haiku'),
44+
aiModel: a.ai.model('Claude 3.5 Haiku'),
4545
systemPrompt: 'You are a helpful assistant that generates recipes.',
4646
})
4747
.arguments({ description: a.string() })
@@ -117,7 +117,7 @@ export default function Example() {
117117
```ts title="Schema Definition"
118118
const schema = ({
119119
summarize: a.generation({
120-
aiModel: a.ai.model('Claude 3 Haiku'),
120+
aiModel: a.ai.model('Claude 3.5 Haiku'),
121121
systemPrompt: 'Provide an accurate, clear, and concise summary of the input provided'
122122
})
123123
.arguments({ input: a.string() })
@@ -141,7 +141,7 @@ This ability to control the randomness and diversity of responses is useful for
141141
```ts title="Inference Parameters"
142142
const schema = a.schema({
143143
generateHaiku: a.generation({
144-
aiModel: a.ai.model('Claude 3 Haiku'),
144+
aiModel: a.ai.model('Claude 3.5 Haiku'),
145145
systemPrompt: 'You are a helpful assistant that generates haikus.',
146146
// highlight-start
147147
inferenceConfiguration: {
@@ -168,7 +168,7 @@ const schema = a.schema({
168168
instructions: a.string(),
169169
}),
170170
generateRecipe: a.generation({
171-
aiModel: a.ai.model('Claude 3 Haiku'),
171+
aiModel: a.ai.model('Claude 3.5 Haiku'),
172172
systemPrompt: 'You are a helpful assistant that generates recipes.',
173173
})
174174
.arguments({ description: a.string() })
@@ -187,7 +187,7 @@ const schema = a.schema({
187187
instructions: a.string(),
188188
}),
189189
generateRecipe: a.generation({
190-
aiModel: a.ai.model('Claude 3 Haiku'),
190+
aiModel: a.ai.model('Claude 3.5 Haiku'),
191191
systemPrompt: 'You are a helpful assistant that generates recipes.',
192192
})
193193
.arguments({ description: a.string() })
@@ -211,7 +211,7 @@ The following AppSync scalar types are not supported as **required** fields in r
211211
```ts title="Unsupported Required Type"
212212
const schema = a.schema({
213213
generateUser: a.generation({
214-
aiModel: a.ai.model('Claude 3 Haiku'),
214+
aiModel: a.ai.model('Claude 3.5 Haiku'),
215215
systemPrompt: 'You are a helpful assistant that generates users.',
216216
})
217217
.arguments({ description: a.string() })

src/pages/[platform]/ai/set-up-ai/index.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ const schema = a.schema({
8686
// This will add a new conversation route to your Amplify Data backend.
8787
// highlight-start
8888
chat: a.conversation({
89-
aiModel: a.ai.model('Claude 3 Haiku'),
89+
aiModel: a.ai.model('Claude 3.5 Haiku'),
9090
systemPrompt: 'You are a helpful assistant',
9191
})
9292
.authorization((allow) => allow.owner()),
@@ -95,7 +95,7 @@ const schema = a.schema({
9595
// This adds a new generation route to your Amplify Data backend.
9696
// highlight-start
9797
generateRecipe: a.generation({
98-
aiModel: a.ai.model('Claude 3 Haiku'),
98+
aiModel: a.ai.model('Claude 3.5 Haiku'),
9999
systemPrompt: 'You are a helpful assistant that generates recipes.',
100100
})
101101
.arguments({

0 commit comments

Comments
 (0)