Skip to content

Commit d1e5cdb

Browse files
author
AWS
committed
Agents for Amazon Bedrock Runtime Update: Knowledge Bases for Amazon Bedrock now supports custom prompts and model parameters in the orchestrationConfiguration of the RetrieveAndGenerate API. The modelArn field accepts Custom Models and Imported Models ARNs.
1 parent 458eae3 commit d1e5cdb

File tree

2 files changed

+36
-7
lines changed

2 files changed

+36
-7
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Agents for Amazon Bedrock Runtime",
4+
"contributor": "",
5+
"description": "Knowledge Bases for Amazon Bedrock now supports custom prompts and model parameters in the orchestrationConfiguration of the RetrieveAndGenerate API. The modelArn field accepts Custom Models and Imported Models ARNs."
6+
}

services/bedrockagentruntime/src/main/resources/codegen-resources/service-2.json

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@
394394
"type":"string",
395395
"max":2048,
396396
"min":1,
397-
"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][_-]?)+)$"
397+
"pattern":"^(arn:aws(-[^:]{1,10})?:bedrock:[a-z0-9-]{1,20}:([0-9]{12})?:([a-z-]{1,20}/)?)?([a-z0-9.-]{1,63}){0,2}(([:][a-z0-9-]{1,63}){0,2})?(/[a-z0-9]{1,12})?$"
398398
},
399399
"Boolean":{
400400
"type":"boolean",
@@ -2144,8 +2144,19 @@
21442144
},
21452145
"OrchestrationConfiguration":{
21462146
"type":"structure",
2147-
"required":["queryTransformationConfiguration"],
21482147
"members":{
2148+
"additionalModelRequestFields":{
2149+
"shape":"AdditionalModelRequestFields",
2150+
"documentation":"<p> Additional model parameters and corresponding values not included in the textInferenceConfig structure for a knowledge base. This allows users to provide custom model parameters specific to the language model being used. </p>"
2151+
},
2152+
"inferenceConfig":{
2153+
"shape":"InferenceConfig",
2154+
"documentation":"<p> Configuration settings for inference when using RetrieveAndGenerate to generate responses while using a knowledge base as a source. </p>"
2155+
},
2156+
"promptTemplate":{
2157+
"shape":"PromptTemplate",
2158+
"documentation":"<p>Contains the template for the prompt that's sent to the model for response generation.</p>"
2159+
},
21492160
"queryTransformationConfiguration":{
21502161
"shape":"QueryTransformationConfiguration",
21512162
"documentation":"<p>To split up the prompt and retrieve multiple sources, set the transformation type to <code>QUERY_DECOMPOSITION</code>.</p>"
@@ -2158,7 +2169,7 @@
21582169
"members":{
21592170
"metadata":{
21602171
"shape":"Metadata",
2161-
"documentation":"<p>Contains information about the foundation model output.</p>"
2172+
"documentation":"<p>Contains information about the foundation model output from the orchestration step.</p>"
21622173
},
21632174
"rawResponse":{
21642175
"shape":"RawResponse",
@@ -2280,12 +2291,18 @@
22802291
"PostProcessingModelInvocationOutput":{
22812292
"type":"structure",
22822293
"members":{
2283-
"metadata":{"shape":"Metadata"},
2294+
"metadata":{
2295+
"shape":"Metadata",
2296+
"documentation":"<p> Contains information about the foundation model output from the post-processing step. </p>"
2297+
},
22842298
"parsedResponse":{
22852299
"shape":"PostProcessingParsedResponse",
22862300
"documentation":"<p>Details about the response from the Lambda parsing of the output of the post-processing step.</p>"
22872301
},
2288-
"rawResponse":{"shape":"RawResponse"},
2302+
"rawResponse":{
2303+
"shape":"RawResponse",
2304+
"documentation":"<p> Details of the raw response from the foundation model output. </p>"
2305+
},
22892306
"traceId":{
22902307
"shape":"TraceId",
22912308
"documentation":"<p>The unique identifier of the trace.</p>"
@@ -2324,12 +2341,18 @@
23242341
"PreProcessingModelInvocationOutput":{
23252342
"type":"structure",
23262343
"members":{
2327-
"metadata":{"shape":"Metadata"},
2344+
"metadata":{
2345+
"shape":"Metadata",
2346+
"documentation":"<p> Contains information about the foundation model output from the pre-processing step. </p>"
2347+
},
23282348
"parsedResponse":{
23292349
"shape":"PreProcessingParsedResponse",
23302350
"documentation":"<p>Details about the response from the Lambda parsing of the output of the pre-processing step.</p>"
23312351
},
2332-
"rawResponse":{"shape":"RawResponse"},
2352+
"rawResponse":{
2353+
"shape":"RawResponse",
2354+
"documentation":"<p> Details of the raw response from the foundation model output. </p>"
2355+
},
23332356
"traceId":{
23342357
"shape":"TraceId",
23352358
"documentation":"<p>The unique identifier of the trace.</p>"

0 commit comments

Comments
 (0)