aws-sdk-bedrockagentruntime 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrockagentruntime/client.rb +9 -2
- data/lib/aws-sdk-bedrockagentruntime/client_api.rb +4 -1
- data/lib/aws-sdk-bedrockagentruntime/types.rb +15 -5
- data/lib/aws-sdk-bedrockagentruntime.rb +1 -1
- data/sig/client.rbs +9 -2
- data/sig/types.rbs +5 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1d4472fd40fedc45f494e9f5129562bdd972073c9b1bd7ef308f30b74935924
|
4
|
+
data.tar.gz: b3a5a22d247241afd94a114c0afb5cc80e3ef4e468f635f8c3e287e31bfd2677
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 292befa190a22a5ea57dd546882ba2fbf465553cbb8fd998a8ddd66779073a36c19297dac8d22482c90a0d207b702b9d662f8b1d4120281e2c42bbec2be67f6c
|
7
|
+
data.tar.gz: 1d57994919acfb2ee86fbfd68be0a7acf2b78511dc26bbc49aea544fdb8e3182751a6fba2a3209cae27a97bd90a333c8e7d7ec6eb0682d077f7d7e4ba6cc90fc
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.2.0 (2024-02-28)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release adds support to override search strategy performed by the Retrieve and RetrieveAndGenerate APIs for Amazon Bedrock Agents
|
8
|
+
|
4
9
|
1.1.0 (2024-01-26)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.2.0
|
@@ -805,7 +805,8 @@ module Aws::BedrockAgentRuntime
|
|
805
805
|
# },
|
806
806
|
# retrieval_configuration: {
|
807
807
|
# vector_search_configuration: { # required
|
808
|
-
# number_of_results: 1,
|
808
|
+
# number_of_results: 1,
|
809
|
+
# override_search_type: "HYBRID", # accepts HYBRID, SEMANTIC
|
809
810
|
# },
|
810
811
|
# },
|
811
812
|
# next_token: "NextToken",
|
@@ -861,6 +862,12 @@ module Aws::BedrockAgentRuntime
|
|
861
862
|
# knowledge_base_configuration: {
|
862
863
|
# knowledge_base_id: "KnowledgeBaseId", # required
|
863
864
|
# model_arn: "BedrockModelArn", # required
|
865
|
+
# retrieval_configuration: {
|
866
|
+
# vector_search_configuration: { # required
|
867
|
+
# number_of_results: 1,
|
868
|
+
# override_search_type: "HYBRID", # accepts HYBRID, SEMANTIC
|
869
|
+
# },
|
870
|
+
# },
|
864
871
|
# },
|
865
872
|
# },
|
866
873
|
# session_configuration: {
|
@@ -903,7 +910,7 @@ module Aws::BedrockAgentRuntime
|
|
903
910
|
params: params,
|
904
911
|
config: config)
|
905
912
|
context[:gem_name] = 'aws-sdk-bedrockagentruntime'
|
906
|
-
context[:gem_version] = '1.
|
913
|
+
context[:gem_version] = '1.2.0'
|
907
914
|
Seahorse::Client::Request.new(handlers, context)
|
908
915
|
end
|
909
916
|
|
@@ -101,6 +101,7 @@ module Aws::BedrockAgentRuntime
|
|
101
101
|
RetrieveResponse = Shapes::StructureShape.new(name: 'RetrieveResponse')
|
102
102
|
RetrievedReference = Shapes::StructureShape.new(name: 'RetrievedReference')
|
103
103
|
RetrievedReferences = Shapes::ListShape.new(name: 'RetrievedReferences')
|
104
|
+
SearchType = Shapes::StringShape.new(name: 'SearchType')
|
104
105
|
ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
|
105
106
|
SessionAttributesMap = Shapes::MapShape.new(name: 'SessionAttributesMap')
|
106
107
|
SessionId = Shapes::StringShape.new(name: 'SessionId')
|
@@ -224,9 +225,11 @@ module Aws::BedrockAgentRuntime
|
|
224
225
|
|
225
226
|
KnowledgeBaseRetrieveAndGenerateConfiguration.add_member(:knowledge_base_id, Shapes::ShapeRef.new(shape: KnowledgeBaseId, required: true, location_name: "knowledgeBaseId"))
|
226
227
|
KnowledgeBaseRetrieveAndGenerateConfiguration.add_member(:model_arn, Shapes::ShapeRef.new(shape: BedrockModelArn, required: true, location_name: "modelArn"))
|
228
|
+
KnowledgeBaseRetrieveAndGenerateConfiguration.add_member(:retrieval_configuration, Shapes::ShapeRef.new(shape: KnowledgeBaseRetrievalConfiguration, location_name: "retrievalConfiguration"))
|
227
229
|
KnowledgeBaseRetrieveAndGenerateConfiguration.struct_class = Types::KnowledgeBaseRetrieveAndGenerateConfiguration
|
228
230
|
|
229
|
-
KnowledgeBaseVectorSearchConfiguration.add_member(:number_of_results, Shapes::ShapeRef.new(shape: KnowledgeBaseVectorSearchConfigurationNumberOfResultsInteger,
|
231
|
+
KnowledgeBaseVectorSearchConfiguration.add_member(:number_of_results, Shapes::ShapeRef.new(shape: KnowledgeBaseVectorSearchConfigurationNumberOfResultsInteger, location_name: "numberOfResults", metadata: {"box"=>true}))
|
232
|
+
KnowledgeBaseVectorSearchConfiguration.add_member(:override_search_type, Shapes::ShapeRef.new(shape: SearchType, location_name: "overrideSearchType"))
|
230
233
|
KnowledgeBaseVectorSearchConfiguration.struct_class = Types::KnowledgeBaseVectorSearchConfiguration
|
231
234
|
|
232
235
|
ModelInvocationInput.add_member(:trace_id, Shapes::ShapeRef.new(shape: TraceId, location_name: "traceId"))
|
@@ -209,7 +209,7 @@ module Aws::BedrockAgentRuntime
|
|
209
209
|
#
|
210
210
|
class GeneratedResponsePart < Struct.new(
|
211
211
|
:text_response_part)
|
212
|
-
SENSITIVE = []
|
212
|
+
SENSITIVE = [:text_response_part]
|
213
213
|
include Aws::Structure
|
214
214
|
end
|
215
215
|
|
@@ -446,7 +446,7 @@ module Aws::BedrockAgentRuntime
|
|
446
446
|
:content,
|
447
447
|
:location,
|
448
448
|
:score)
|
449
|
-
SENSITIVE = []
|
449
|
+
SENSITIVE = [:content, :location]
|
450
450
|
include Aws::Structure
|
451
451
|
end
|
452
452
|
|
@@ -460,11 +460,16 @@ module Aws::BedrockAgentRuntime
|
|
460
460
|
# Arn of a Bedrock model.
|
461
461
|
# @return [String]
|
462
462
|
#
|
463
|
+
# @!attribute [rw] retrieval_configuration
|
464
|
+
# Search parameters for retrieving from knowledge base.
|
465
|
+
# @return [Types::KnowledgeBaseRetrievalConfiguration]
|
466
|
+
#
|
463
467
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/KnowledgeBaseRetrieveAndGenerateConfiguration AWS API Documentation
|
464
468
|
#
|
465
469
|
class KnowledgeBaseRetrieveAndGenerateConfiguration < Struct.new(
|
466
470
|
:knowledge_base_id,
|
467
|
-
:model_arn
|
471
|
+
:model_arn,
|
472
|
+
:retrieval_configuration)
|
468
473
|
SENSITIVE = []
|
469
474
|
include Aws::Structure
|
470
475
|
end
|
@@ -475,10 +480,15 @@ module Aws::BedrockAgentRuntime
|
|
475
480
|
# Top-K results to retrieve from knowledge base.
|
476
481
|
# @return [Integer]
|
477
482
|
#
|
483
|
+
# @!attribute [rw] override_search_type
|
484
|
+
# Override the type of query to be performed on data store
|
485
|
+
# @return [String]
|
486
|
+
#
|
478
487
|
# @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/KnowledgeBaseVectorSearchConfiguration AWS API Documentation
|
479
488
|
#
|
480
489
|
class KnowledgeBaseVectorSearchConfiguration < Struct.new(
|
481
|
-
:number_of_results
|
490
|
+
:number_of_results,
|
491
|
+
:override_search_type)
|
482
492
|
SENSITIVE = []
|
483
493
|
include Aws::Structure
|
484
494
|
end
|
@@ -1064,7 +1074,7 @@ module Aws::BedrockAgentRuntime
|
|
1064
1074
|
class RetrievedReference < Struct.new(
|
1065
1075
|
:content,
|
1066
1076
|
:location)
|
1067
|
-
SENSITIVE = []
|
1077
|
+
SENSITIVE = [:content, :location]
|
1068
1078
|
include Aws::Structure
|
1069
1079
|
end
|
1070
1080
|
|
data/sig/client.rbs
CHANGED
@@ -109,7 +109,8 @@ module Aws
|
|
109
109
|
},
|
110
110
|
?retrieval_configuration: {
|
111
111
|
vector_search_configuration: {
|
112
|
-
number_of_results: ::Integer
|
112
|
+
number_of_results: ::Integer?,
|
113
|
+
override_search_type: ("HYBRID" | "SEMANTIC")?
|
113
114
|
}
|
114
115
|
},
|
115
116
|
?next_token: ::String
|
@@ -132,7 +133,13 @@ module Aws
|
|
132
133
|
type: ("KNOWLEDGE_BASE"),
|
133
134
|
knowledge_base_configuration: {
|
134
135
|
knowledge_base_id: ::String,
|
135
|
-
model_arn: ::String
|
136
|
+
model_arn: ::String,
|
137
|
+
retrieval_configuration: {
|
138
|
+
vector_search_configuration: {
|
139
|
+
number_of_results: ::Integer?,
|
140
|
+
override_search_type: ("HYBRID" | "SEMANTIC")?
|
141
|
+
}
|
142
|
+
}?
|
136
143
|
}?
|
137
144
|
},
|
138
145
|
?session_configuration: {
|
data/sig/types.rbs
CHANGED
@@ -72,7 +72,7 @@ module Aws::BedrockAgentRuntime
|
|
72
72
|
|
73
73
|
class GeneratedResponsePart
|
74
74
|
attr_accessor text_response_part: Types::TextResponsePart
|
75
|
-
SENSITIVE: []
|
75
|
+
SENSITIVE: [:text_response_part]
|
76
76
|
end
|
77
77
|
|
78
78
|
class InferenceConfiguration
|
@@ -141,17 +141,19 @@ module Aws::BedrockAgentRuntime
|
|
141
141
|
attr_accessor content: Types::RetrievalResultContent
|
142
142
|
attr_accessor location: Types::RetrievalResultLocation
|
143
143
|
attr_accessor score: ::Float
|
144
|
-
SENSITIVE: []
|
144
|
+
SENSITIVE: [:content, :location]
|
145
145
|
end
|
146
146
|
|
147
147
|
class KnowledgeBaseRetrieveAndGenerateConfiguration
|
148
148
|
attr_accessor knowledge_base_id: ::String
|
149
149
|
attr_accessor model_arn: ::String
|
150
|
+
attr_accessor retrieval_configuration: Types::KnowledgeBaseRetrievalConfiguration
|
150
151
|
SENSITIVE: []
|
151
152
|
end
|
152
153
|
|
153
154
|
class KnowledgeBaseVectorSearchConfiguration
|
154
155
|
attr_accessor number_of_results: ::Integer
|
156
|
+
attr_accessor override_search_type: ("HYBRID" | "SEMANTIC")
|
155
157
|
SENSITIVE: []
|
156
158
|
end
|
157
159
|
|
@@ -353,7 +355,7 @@ module Aws::BedrockAgentRuntime
|
|
353
355
|
class RetrievedReference
|
354
356
|
attr_accessor content: Types::RetrievalResultContent
|
355
357
|
attr_accessor location: Types::RetrievalResultLocation
|
356
|
-
SENSITIVE: []
|
358
|
+
SENSITIVE: [:content, :location]
|
357
359
|
end
|
358
360
|
|
359
361
|
class ServiceQuotaExceededException
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-bedrockagentruntime
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|