Skip to content

Commit 098110c

Browse files
author
AWS
committed
Agents for Amazon Bedrock Runtime Update: This release introduces zero-setup file upload support for the RetrieveAndGenerate API. This allows you to chat with your data without setting up a Knowledge Base.
1 parent e4f927f commit 098110c

File tree

2 files changed

+134
-1
lines changed

2 files changed

+134
-1
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": "This release introduces zero-setup file upload support for the RetrieveAndGenerate API. This allows you to chat with your data without setting up a Knowledge Base."
6+
}

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

Lines changed: 128 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,35 @@
291291
"type":"boolean",
292292
"box":true
293293
},
294+
"ByteContentBlob":{
295+
"type":"blob",
296+
"max":10485760,
297+
"min":1,
298+
"sensitive":true
299+
},
300+
"ByteContentDoc":{
301+
"type":"structure",
302+
"required":[
303+
"contentType",
304+
"data",
305+
"identifier"
306+
],
307+
"members":{
308+
"contentType":{
309+
"shape":"ContentType",
310+
"documentation":"<p>The MIME type of the document contained in the wrapper object.</p>"
311+
},
312+
"data":{
313+
"shape":"ByteContentBlob",
314+
"documentation":"<p>The byte value of the file to upload, encoded as a Base-64 string.</p>"
315+
},
316+
"identifier":{
317+
"shape":"Identifier",
318+
"documentation":"<p>The file name of the document contained in the wrapper object.</p>"
319+
}
320+
},
321+
"documentation":"<p>This property contains the document to chat with, along with its attributes.</p>"
322+
},
294323
"Citation":{
295324
"type":"structure",
296325
"members":{
@@ -336,6 +365,10 @@
336365
"key":{"shape":"String"},
337366
"value":{"shape":"Parameters"}
338367
},
368+
"ContentType":{
369+
"type":"string",
370+
"pattern":"[a-z]{1,20}/.{1,20}"
371+
},
339372
"CreationMode":{
340373
"type":"string",
341374
"enum":[
@@ -363,6 +396,70 @@
363396
"type":"double",
364397
"box":true
365398
},
399+
"ExternalSource":{
400+
"type":"structure",
401+
"required":["sourceType"],
402+
"members":{
403+
"byteContent":{
404+
"shape":"ByteContentDoc",
405+
"documentation":"<p>The identifier, contentType, and data of the external source wrapper object.</p>"
406+
},
407+
"s3Location":{
408+
"shape":"S3ObjectDoc",
409+
"documentation":"<p>The S3 location of the external source wrapper object.</p>"
410+
},
411+
"sourceType":{
412+
"shape":"ExternalSourceType",
413+
"documentation":"<p>The source type of the external source wrapper object.</p>"
414+
}
415+
},
416+
"documentation":"<p>The unique external source of the content contained in the wrapper object.</p>"
417+
},
418+
"ExternalSourceType":{
419+
"type":"string",
420+
"enum":[
421+
"S3",
422+
"BYTE_CONTENT"
423+
]
424+
},
425+
"ExternalSources":{
426+
"type":"list",
427+
"member":{"shape":"ExternalSource"},
428+
"max":1,
429+
"min":1
430+
},
431+
"ExternalSourcesGenerationConfiguration":{
432+
"type":"structure",
433+
"members":{
434+
"promptTemplate":{
435+
"shape":"PromptTemplate",
436+
"documentation":"<p>Contain the textPromptTemplate string for the external source wrapper object.</p>"
437+
}
438+
},
439+
"documentation":"<p>Contains the generation configuration of the external source wrapper object.</p>"
440+
},
441+
"ExternalSourcesRetrieveAndGenerateConfiguration":{
442+
"type":"structure",
443+
"required":[
444+
"modelArn",
445+
"sources"
446+
],
447+
"members":{
448+
"generationConfiguration":{
449+
"shape":"ExternalSourcesGenerationConfiguration",
450+
"documentation":"<p>The prompt used with the external source wrapper object with the retrieveAndGenerate function.</p>"
451+
},
452+
"modelArn":{
453+
"shape":"BedrockModelArn",
454+
"documentation":"<p>The modelArn used with the external source wrapper object in the retrieveAndGenerate function.</p>"
455+
},
456+
"sources":{
457+
"shape":"ExternalSources",
458+
"documentation":"<p>The document used with the external source wrapper object in the retrieveAndGenerate function.</p>"
459+
}
460+
},
461+
"documentation":"<p>The configurations of the external source wrapper object in the retrieveAndGenerate function.</p>"
462+
},
366463
"FailureReasonString":{
367464
"type":"string",
368465
"sensitive":true
@@ -513,6 +610,12 @@
513610
},
514611
"documentation":"<p>Contains configurations for response generation based on the knowledge base query results.</p> <p>This data type is used in the following API operations:</p> <ul> <li> <p> <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_RequestSyntax\">RetrieveAndGenerate request</a> </p> </li> </ul>"
515612
},
613+
"Identifier":{
614+
"type":"string",
615+
"max":1024,
616+
"min":1,
617+
"sensitive":true
618+
},
516619
"InferenceConfiguration":{
517620
"type":"structure",
518621
"members":{
@@ -1375,6 +1478,10 @@
13751478
"type":"structure",
13761479
"required":["type"],
13771480
"members":{
1481+
"externalSourcesConfiguration":{
1482+
"shape":"ExternalSourcesRetrieveAndGenerateConfiguration",
1483+
"documentation":"<p>The configuration used with the external source wrapper object in the retrieveAndGenerate function.</p>"
1484+
},
13781485
"knowledgeBaseConfiguration":{
13791486
"shape":"KnowledgeBaseRetrieveAndGenerateConfiguration",
13801487
"documentation":"<p>Contains details about the resource being queried.</p>"
@@ -1471,7 +1578,10 @@
14711578
},
14721579
"RetrieveAndGenerateType":{
14731580
"type":"string",
1474-
"enum":["KNOWLEDGE_BASE"]
1581+
"enum":[
1582+
"KNOWLEDGE_BASE",
1583+
"EXTERNAL_SOURCES"
1584+
]
14751585
},
14761586
"RetrieveRequest":{
14771587
"type":"structure",
@@ -1558,6 +1668,23 @@
15581668
"event":true,
15591669
"sensitive":true
15601670
},
1671+
"S3ObjectDoc":{
1672+
"type":"structure",
1673+
"required":["uri"],
1674+
"members":{
1675+
"uri":{
1676+
"shape":"S3Uri",
1677+
"documentation":"<p>The file location of the S3 wrapper object.</p>"
1678+
}
1679+
},
1680+
"documentation":"<p>The unique wrapper object of the document from the S3 location.</p>"
1681+
},
1682+
"S3Uri":{
1683+
"type":"string",
1684+
"max":1024,
1685+
"min":1,
1686+
"pattern":"^s3://[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]/.{1,1024}$"
1687+
},
15611688
"SearchType":{
15621689
"type":"string",
15631690
"enum":[

0 commit comments

Comments
 (0)