Skip to content

Commit 6b7f813

Browse files
authored
Introduce Titan Text Embedding V2 (#495)
* Introduce Titan Text Embedding V2
1 parent 879aa53 commit 6b7f813

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

apidocs/classes/bedrock.BedrockFoundationModel.md

+7
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ can instantiate a `BedrockFoundationModel` object, e.g: `new BedrockFoundationMo
3131
- [COHERE\_EMBED\_ENGLISH\_V3](bedrock.BedrockFoundationModel.md#cohere_embed_english_v3)
3232
- [COHERE\_EMBED\_MULTILINGUAL\_V3](bedrock.BedrockFoundationModel.md#cohere_embed_multilingual_v3)
3333
- [TITAN\_EMBED\_TEXT\_V1](bedrock.BedrockFoundationModel.md#titan_embed_text_v1)
34+
- [TITAN\_EMBED\_TEXT\_V2\_1024](bedrock.BedrockFoundationModel.md#titan_embed_text_v2_1024)
3435

3536
### Methods
3637

@@ -138,6 +139,12 @@ ___
138139

139140
`Static` `Readonly` **TITAN\_EMBED\_TEXT\_V1**: [`BedrockFoundationModel`](bedrock.BedrockFoundationModel.md)
140141

142+
___
143+
144+
### TITAN\_EMBED\_TEXT\_V2\_1024
145+
146+
`Static` `Readonly` **TITAN\_EMBED\_TEXT\_V2\_1024**: [`BedrockFoundationModel`](bedrock.BedrockFoundationModel.md)
147+
141148
## Methods
142149

143150
### asArn

src/cdk-lib/bedrock/models.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,14 @@ export class BedrockFoundationModel {
6969
'amazon.titan-text-premier-v1:0',
7070
{ supportsAgents: true },
7171
);
72-
7372
public static readonly TITAN_EMBED_TEXT_V1 = new BedrockFoundationModel(
7473
'amazon.titan-embed-text-v1',
7574
{ supportsKnowledgeBase: true, vectorDimensions: 1536 },
7675
);
76+
public static readonly TITAN_EMBED_TEXT_V2_1024 = new BedrockFoundationModel(
77+
'amazon.titan-embed-text-v2:0',
78+
{ supportsKnowledgeBase: true, vectorDimensions: 1024 },
79+
);
7780
public static readonly COHERE_EMBED_ENGLISH_V3 = new BedrockFoundationModel(
7881
'cohere.embed-english-v3',
7982
{ supportsKnowledgeBase: true, vectorDimensions: 1024 },
@@ -102,4 +105,4 @@ export class BedrockFoundationModel {
102105
const region = cdk.Stack.of(construct).region;
103106
return `arn:aws:bedrock:${region}::foundation-model/${this.modelId}`;
104107
}
105-
}
108+
}

0 commit comments

Comments
 (0)