Skip to content

Commit d6b5e71

Browse files
author
AWS
committed
Amazon Bedrock Runtime Update: This release includes support for Search Results.
1 parent 90102ec commit d6b5e71

File tree

2 files changed

+101
-0
lines changed

2 files changed

+101
-0
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": "Amazon Bedrock Runtime",
4+
"contributor": "",
5+
"description": "This release includes support for Search Results."
6+
}

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

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,10 @@
505505
"shape":"String",
506506
"documentation":"<p>The title or identifier of the source document being cited.</p>"
507507
},
508+
"source":{
509+
"shape":"String",
510+
"documentation":"<p>The source from the original search result that provided the cited content.</p>"
511+
},
508512
"sourceContent":{
509513
"shape":"CitationSourceContentList",
510514
"documentation":"<p>The specific content from the source document that was referenced or cited in the generated response.</p>"
@@ -549,6 +553,10 @@
549553
"documentChunk":{
550554
"shape":"DocumentChunkLocation",
551555
"documentation":"<p>The chunk-level location within the document where the cited content is found, typically used for documents that have been segmented into logical chunks.</p>"
556+
},
557+
"searchResultLocation":{
558+
"shape":"SearchResultLocation",
559+
"documentation":"<p>The search result location where the cited content is found, including the search result index and block positions within the content array.</p>"
552560
}
553561
},
554562
"documentation":"<p>Specifies the precise location within a source document where cited content can be found. This can include character-level positions, page numbers, or document chunks depending on the document type and indexing method.</p>",
@@ -619,6 +627,10 @@
619627
"shape":"String",
620628
"documentation":"<p>The title or identifier of the source document being cited.</p>"
621629
},
630+
"source":{
631+
"shape":"String",
632+
"documentation":"<p>The source from the original search result that provided the cited content.</p>"
633+
},
622634
"sourceContent":{
623635
"shape":"CitationSourceContentListDelta",
624636
"documentation":"<p>The specific content from the source document that was referenced or cited in the generated response.</p>"
@@ -684,6 +696,10 @@
684696
"citationsContent":{
685697
"shape":"CitationsContentBlock",
686698
"documentation":"<p>A content block that contains both generated text and associated citation information, providing traceability between the response and source documents.</p>"
699+
},
700+
"searchResult":{
701+
"shape":"SearchResultBlock",
702+
"documentation":"<p>Search result to include in the message.</p>"
687703
}
688704
},
689705
"documentation":"<p>A block of content for a message that you pass to, or receive from, a model with the <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html\">Converse</a> or <a href=\"https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_ConverseStream.html\">ConverseStream</a> API operations.</p>",
@@ -3510,6 +3526,81 @@
35103526
"min":1,
35113527
"pattern":"s3://[a-z0-9][\\.\\-a-z0-9]{1,61}[a-z0-9](/.*)?"
35123528
},
3529+
"SearchResultBlock":{
3530+
"type":"structure",
3531+
"required":[
3532+
"source",
3533+
"title",
3534+
"content"
3535+
],
3536+
"members":{
3537+
"source":{
3538+
"shape":"String",
3539+
"documentation":"<p>The source URL or identifier for the content.</p>"
3540+
},
3541+
"title":{
3542+
"shape":"String",
3543+
"documentation":"<p>A descriptive title for the search result.</p>"
3544+
},
3545+
"content":{
3546+
"shape":"SearchResultContentBlocks",
3547+
"documentation":"<p>An array of search result content block.</p>"
3548+
},
3549+
"citations":{
3550+
"shape":"CitationsConfig",
3551+
"documentation":"<p>Configuration setting for citations</p>"
3552+
}
3553+
},
3554+
"documentation":"<p>A search result block that enables natural citations with proper source attribution for retrieved content.</p> <note> <p>This field is only supported by Anthropic Claude Opus 4.1, Opus 4, Sonnet 4.5, Sonnet 4, Sonnet 3.7, and 3.5 Haiku models.</p> </note>"
3555+
},
3556+
"SearchResultContentBlock":{
3557+
"type":"structure",
3558+
"required":["text"],
3559+
"members":{
3560+
"text":{
3561+
"shape":"String",
3562+
"documentation":"<p>The actual text content</p>"
3563+
}
3564+
},
3565+
"documentation":"<p>A block within a search result that contains the content.</p>"
3566+
},
3567+
"SearchResultContentBlocks":{
3568+
"type":"list",
3569+
"member":{"shape":"SearchResultContentBlock"}
3570+
},
3571+
"SearchResultLocation":{
3572+
"type":"structure",
3573+
"members":{
3574+
"searchResultIndex":{
3575+
"shape":"SearchResultLocationSearchResultIndexInteger",
3576+
"documentation":"<p>The index of the search result content block where the cited content is found.</p>"
3577+
},
3578+
"start":{
3579+
"shape":"SearchResultLocationStartInteger",
3580+
"documentation":"<p>The starting position in the content array where the cited content begins.</p>"
3581+
},
3582+
"end":{
3583+
"shape":"SearchResultLocationEndInteger",
3584+
"documentation":"<p>The ending position in the content array where the cited content ends.</p>"
3585+
}
3586+
},
3587+
"documentation":"<p>Specifies a search result location within the content array, providing positioning information for cited content using search result index and block positions.</p>"
3588+
},
3589+
"SearchResultLocationEndInteger":{
3590+
"type":"integer",
3591+
"box":true,
3592+
"min":0
3593+
},
3594+
"SearchResultLocationSearchResultIndexInteger":{
3595+
"type":"integer",
3596+
"box":true,
3597+
"min":0
3598+
},
3599+
"SearchResultLocationStartInteger":{
3600+
"type":"integer",
3601+
"box":true,
3602+
"min":0
3603+
},
35133604
"ServiceQuotaExceededException":{
35143605
"type":"structure",
35153606
"members":{
@@ -3940,6 +4031,10 @@
39404031
"video":{
39414032
"shape":"VideoBlock",
39424033
"documentation":"<p>A tool result that is video.</p>"
4034+
},
4035+
"searchResult":{
4036+
"shape":"SearchResultBlock",
4037+
"documentation":"<p>A tool result that is a search result.</p>"
39434038
}
39444039
},
39454040
"documentation":"<p>The tool result content block. For more information, see <a href=\"https://docs.aws.amazon.com/bedrock/latest/userguide/tool-use.html\">Call a tool with the Converse API</a> in the Amazon Bedrock User Guide.</p>",

0 commit comments

Comments
 (0)