Skip to content

Commit a70cc8d

Browse files
author
awstools
committed
feat(client-bedrock-agent-runtime): Amazon Bedrock Knowledge Bases now supports using inference profiles to increase throughput and improve resilience.
1 parent 85d62db commit a70cc8d

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

clients/client-bedrock-agent-runtime/src/commands/RetrieveAndGenerateCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export interface RetrieveAndGenerateCommandInput extends RetrieveAndGenerateRequ
3737
export interface RetrieveAndGenerateCommandOutput extends RetrieveAndGenerateResponse, __MetadataBearer {}
3838

3939
/**
40-
* <p>Queries a knowledge base and generates responses based on the retrieved results. The response only cites sources that are relevant to the query.</p>
40+
* <p>Queries a knowledge base and generates responses based on the retrieved results and using the specified foundation model or <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html">inference profile</a>. The response only cites sources that are relevant to the query.</p>
4141
* @example
4242
* Use a bare-bones client and the command you need to make an API call.
4343
* ```javascript

clients/client-bedrock-agent-runtime/src/models/models_0.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4840,13 +4840,13 @@ export interface KnowledgeBaseConfiguration {
48404840
*/
48414841
export interface KnowledgeBaseRetrieveAndGenerateConfiguration {
48424842
/**
4843-
* <p>The unique identifier of the knowledge base that is queried and the foundation model used for generation.</p>
4843+
* <p>The unique identifier of the knowledge base that is queried.</p>
48444844
* @public
48454845
*/
48464846
knowledgeBaseId: string | undefined;
48474847

48484848
/**
4849-
* <p>The ARN of the foundation model used to generate a response.</p>
4849+
* <p>The ARN of the foundation model or <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html">inference profile</a> used to generate a response.</p>
48504850
* @public
48514851
*/
48524852
modelArn: string | undefined;

codegen/sdk-codegen/aws-models/bedrock-agent-runtime.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,10 +1061,10 @@
10611061
"type": "string",
10621062
"traits": {
10631063
"smithy.api#length": {
1064-
"min": 20,
1065-
"max": 1011
1064+
"min": 1,
1065+
"max": 2048
10661066
},
1067-
"smithy.api#pattern": "^arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:(([0-9]{12}:custom-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}/[a-z0-9]{12})|(:foundation-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}))$"
1067+
"smithy.api#pattern": "^(arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}:(([0-9]{12}:custom-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}/[a-z0-9]{12})|(:foundation-model/[a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))))|(arn:aws(|-us-gov|-cn|-iso|-iso-b):bedrock:(|[0-9a-z-]{1,20}):(|[0-9]{12}):inference-profile/[a-zA-Z0-9-:.]+)|([a-z0-9-]{1,63}[.]{1}[a-z0-9-]{1,63}([.:]?[a-z0-9-]{1,63}))|(([0-9a-zA-Z][_-]?)+)$"
10681068
}
10691069
},
10701070
"com.amazonaws.bedrockagentruntime#ByteContentBlob": {
@@ -3627,14 +3627,14 @@
36273627
"knowledgeBaseId": {
36283628
"target": "com.amazonaws.bedrockagentruntime#KnowledgeBaseId",
36293629
"traits": {
3630-
"smithy.api#documentation": "<p>The unique identifier of the knowledge base that is queried and the foundation model used for generation.</p>",
3630+
"smithy.api#documentation": "<p>The unique identifier of the knowledge base that is queried.</p>",
36313631
"smithy.api#required": {}
36323632
}
36333633
},
36343634
"modelArn": {
36353635
"target": "com.amazonaws.bedrockagentruntime#BedrockModelArn",
36363636
"traits": {
3637-
"smithy.api#documentation": "<p>The ARN of the foundation model used to generate a response.</p>",
3637+
"smithy.api#documentation": "<p>The ARN of the foundation model or <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html\">inference profile</a> used to generate a response.</p>",
36383638
"smithy.api#required": {}
36393639
}
36403640
},
@@ -5024,7 +5024,7 @@
50245024
}
50255025
],
50265026
"traits": {
5027-
"smithy.api#documentation": "<p>Queries a knowledge base and generates responses based on the retrieved results. The response only cites sources that are relevant to the query.</p>",
5027+
"smithy.api#documentation": "<p>Queries a knowledge base and generates responses based on the retrieved results and using the specified foundation model or <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html\">inference profile</a>. The response only cites sources that are relevant to the query.</p>",
50285028
"smithy.api#http": {
50295029
"code": 200,
50305030
"method": "POST",

0 commit comments

Comments
 (0)